Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Issue 17354: Do not cache functions until we know they are fully constructed. (Closed)

Created:
11 years, 11 months ago by olehougaard
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Do not cache functions until we know they are fully constructed. This is needed in case of a stack overflow during construction. Committed: http://code.google.com/p/v8/source/detail?r=1056

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -14 lines) Patch
M src/apinatives.js View 1 1 chunk +24 lines, -13 lines 5 comments Download
M src/execution.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
olehougaard
11 years, 11 months ago (2009-01-12 09:48:34 UTC) #1
Mads Ager (chromium)
LGTM
11 years, 11 months ago (2009-01-12 09:58:39 UTC) #2
Christian Plesner Hansen
This causes recursive use of a function template to break. For instance, if it has ...
11 years, 11 months ago (2009-01-12 09:59:02 UTC) #3
Mads Ager (chromium)
LGTM http://codereview.chromium.org/17354/diff/203/8 File src/apinatives.js (right): http://codereview.chromium.org/17354/diff/203/8#newcode67 Line 67: (serialNumber in kApiFunctionCache) && Use the local ...
11 years, 11 months ago (2009-01-13 07:00:39 UTC) #4
olehougaard
http://codereview.chromium.org/17354/diff/203/8 File src/apinatives.js (right): http://codereview.chromium.org/17354/diff/203/8#newcode67 Line 67: (serialNumber in kApiFunctionCache) && On 2009/01/13 07:00:39, Mads ...
11 years, 11 months ago (2009-01-13 07:13:05 UTC) #5
olehougaard
11 years, 11 months ago (2009-01-13 07:15:41 UTC) #6
http://codereview.chromium.org/17354/diff/203/8
File src/apinatives.js (right):

http://codereview.chromium.org/17354/diff/203/8#newcode68
Line 68: (kApiFunctionCache[serialNumber] != -1);
On 2009/01/13 07:13:05, olehougaard wrote:
> On 2009/01/13 07:00:39, Mads Ager wrote:
> > How about introducing a named constants in macros.py for the -1? 
> 
> I would, but I wouldn't be able to look it up in the exception handler, so
> there's not much use for it.

Uh, this is rubbish. I guess I can introduce a constant in macros.py. I'll do it
in a separate cl.

Powered by Google App Engine
This is Rietveld 408576698