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

Issue 2310003: Create a new class v8::internal::Isolate in isolate.h/isolate.cc.... (Closed)

Created:
10 years, 7 months ago by zarko
Modified:
9 years, 7 months ago
CC:
v8-dev, Dmitry Titov
Visibility:
Public.

Description

Create a new class v8::internal::Isolate in isolate.h/isolate.cc. Add isolate.cc to the build system. Move code from v8::internal::V8::Initialize to Isolate::Initialize. V8::Initialize now calls Isolate::Initialize to do almost all of its work. From here, statics from the rest of the V8 code will gradually move into an Isolate object (created on the first call to Isolate::current() and initialized in V8::initialize). Once the statics have been moved, the API will be extended to allow for the creation and use of multiple isolates. Backward compatibility can be maintained using a single isolate (similar to how this changelist operates). Committed: http://code.google.com/p/v8/source/detail?r=4758

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -73 lines) Patch
M src/SConscript View 1 chunk +1 line, -0 lines 0 comments Download
A src/isolate.h View 1 2 3 4 5 1 chunk +66 lines, -0 lines 0 comments Download
A src/isolate.cc View 1 2 3 4 5 1 chunk +153 lines, -0 lines 0 comments Download
M src/v8.cc View 1 2 3 3 chunks +3 lines, -73 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
zarko
10 years, 7 months ago (2010-05-27 20:28:09 UTC) #1
Vitaly Repeshko
http://codereview.chromium.org/2310003/diff/1/4 File src/isolate.h (right): http://codereview.chromium.org/2310003/diff/1/4#newcode40 src/isolate.h:40: static Isolate* current(); I think we should only allow ...
10 years, 7 months ago (2010-05-28 14:59:55 UTC) #2
iposva
http://codereview.chromium.org/2310003/diff/1/4 File src/isolate.h (right): http://codereview.chromium.org/2310003/diff/1/4#newcode40 src/isolate.h:40: static Isolate* current(); On 2010/05/28 14:59:55, Vitaly wrote: > ...
10 years, 6 months ago (2010-05-31 03:48:58 UTC) #3
Mads Ager (chromium)
http://codereview.chromium.org/2310003/diff/8001/9002 File src/isolate.cc (right): http://codereview.chromium.org/2310003/diff/8001/9002#newcode45 src/isolate.cc:45: static Isolate* gTempGlobalIsolate = NULL; Drive-by: please use lower-case ...
10 years, 6 months ago (2010-05-31 10:48:41 UTC) #4
Vitaly Repeshko
http://codereview.chromium.org/2310003/diff/14001/10003 File src/isolate.cc (right): http://codereview.chromium.org/2310003/diff/14001/10003#newcode56 src/isolate.cc:56: Isolate* newIsolate = new Isolate(); No camel case please. ...
10 years, 6 months ago (2010-05-31 12:06:11 UTC) #5
zarko
Got these; updated the CL. On 2010/05/31 12:06:11, Vitaly wrote: > http://codereview.chromium.org/2310003/diff/14001/10003 > File src/isolate.cc ...
10 years, 6 months ago (2010-05-31 12:26:51 UTC) #6
Vitaly Repeshko
LGTM. Moving TearDown-related stuff there seems like a logical next step. Thanks, Vitaly http://codereview.chromium.org/2310003/diff/19001/18004 File ...
10 years, 6 months ago (2010-05-31 12:32:49 UTC) #7
zarko
10 years, 6 months ago (2010-05-31 12:41:21 UTC) #8
Fixed.

On 2010/05/31 12:32:49, Vitaly wrote:
> LGTM.
> 
> Moving TearDown-related stuff there seems like a logical next step.
> 
> 
> Thanks,
> Vitaly
> 
> http://codereview.chromium.org/2310003/diff/19001/18004
> File src/isolate.h (right):
> 
> http://codereview.chromium.org/2310003/diff/19001/18004#newcode58
> src/isolate.h:58: bool CreateInternal(Deserializer* des);
> One last nitpick. I'd still call this "Init" because it initializes an already
> created object.

Powered by Google App Engine
This is Rietveld 408576698