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

Issue 113121: Changed the flags that indicate the status of running vs dead... (Closed)

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

Description

Changed the flags that indicate the status of running vs dead This allows us to optimized the EnsureInitialized() function so it doesn't require a function call when we're running Committed: http://code.google.com/p/v8/source/detail?r=2048

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -37 lines) Patch
M src/api.cc View 1 2 3 13 chunks +22 lines, -27 lines 4 comments Download
M src/bootstrapper.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/v8.h View 1 2 3 4 1 chunk +6 lines, -2 lines 1 comment Download
M src/v8.cc View 1 2 3 4 4 chunks +18 lines, -6 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
DaveMoore
11 years, 7 months ago (2009-05-07 21:41:07 UTC) #1
iposva
11 years, 7 months ago (2009-05-07 23:04:06 UTC) #2
Some more comments below. Otherwise LGTM.

-Ivan

http://codereview.chromium.org/113121/diff/1017/29
File src/api.cc (right):

http://codereview.chromium.org/113121/diff/1017/29#newcode212
Line 212: return ApiCheck(v8::V8::Initialize(), location, "Error initializing
V8");
Thinking about it further it might be helpful to call IsDeadCheck here to get a
more meaningful error message. In a way recreating what
ImplementationUtilities::Undefined() had below.

http://codereview.chromium.org/113121/diff/1017/29#newcode3059
Line 3059: i::StatsTable::SetCounterFunction(callback);
Should we reintroduce the IsDeadCheck here?

http://codereview.chromium.org/113121/diff/1017/29#newcode3063
Line 3063: i::StatsTable::SetCreateHistogramFunction(callback);
ditto

http://codereview.chromium.org/113121/diff/1017/29#newcode3067
Line 3067: i::StatsTable::SetAddHistogramSampleFunction(callback);
ditto

http://codereview.chromium.org/113121/diff/1017/31
File src/v8.h (right):

http://codereview.chromium.org/113121/diff/1017/31#newcode99
Line 99: static bool has_been_disposed_;
Can you add comments about the exact meaning of these four flags. When adding
them we had plenty of discussion what each of them meant and it might be good to
spell that out here. The lack of documentation was contributing to the time it
took to implement this change. The other was the distributed nature of the data
which you are addressing here by consolidating in one file.

Powered by Google App Engine
This is Rietveld 408576698