Revert of Store the next serial number in the function cache rather than in the isola...
authorverwaest <verwaest@chromium.org>
Mon, 9 Mar 2015 12:30:03 +0000 (05:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 9 Mar 2015 12:30:16 +0000 (12:30 +0000)
commita9a362360441ab83227d4c84d3e147209999d56a
treead89e2b9b5ce95a7645a9497aa875b02cb2332b5
parentd7f25f557c20afe13a383a331208f4a8f05db3a5
Revert of Store the next serial number in the function cache rather than in the isolate.Don't overwrite existi (patchset #4 id:60001 of https://codereview.chromium.org/988693003/)

Reason for revert:
This doesn't do what it's supposed to do. The problem seems to lie on the blink side, people aren't reusing their FunctionTemplates (or creating them when not necessary).

Original issue's description:
> Don't overwrite existing serial numbers on the function template, otherwise instantiating the function for a new context causes the serial number to bump.
>
> Committed: https://crrev.com/1e638c3610ec6938e5fb16c42018642195782fb2
> Cr-Commit-Position: refs/heads/master@{#27048}

TBR=yangguo@chromium.org,dcarney@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review URL: https://codereview.chromium.org/993533003

Cr-Commit-Position: refs/heads/master@{#27067}
src/api.cc