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

Issue 6696107: Cleanup more isolate usage in ia32 files. (Closed)

Created:
9 years, 9 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
Reviewers:
Vitaly Repeshko
CC:
v8-dev
Visibility:
Public.

Description

Cleanup more isolate usage in ia32 files. Committed: http://code.google.com/p/v8/source/detail?r=7367

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -173 lines) Patch
M src/ia32/assembler-ia32.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M src/ia32/assembler-ia32-inl.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/builtins-ia32.cc View 17 chunks +27 lines, -20 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 42 chunks +71 lines, -53 lines 0 comments Download
M src/ia32/deoptimizer-ia32.cc View 1 4 chunks +10 lines, -7 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 5 chunks +5 lines, -5 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 18 chunks +21 lines, -20 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 49 chunks +77 lines, -63 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mads Ager (chromium)
9 years, 9 months ago (2011-03-25 12:46:31 UTC) #1
Vitaly Repeshko
LGTM! http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc File src/ia32/deoptimizer-ia32.cc (right): http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc#newcode134 src/ia32/deoptimizer-ia32.cc:134: HandleScope scope; Is this really needed? http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc#newcode137 src/ia32/deoptimizer-ia32.cc:137: ...
9 years, 9 months ago (2011-03-25 12:57:51 UTC) #2
Mads Ager (chromium)
Thanks Vitaly. http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc File src/ia32/deoptimizer-ia32.cc (right): http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc#newcode134 src/ia32/deoptimizer-ia32.cc:134: HandleScope scope; On 2011/03/25 12:57:51, Vitaly Repeshko ...
9 years, 9 months ago (2011-03-25 13:09:26 UTC) #3
Mads Ager (chromium)
http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc File src/ia32/deoptimizer-ia32.cc (right): http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc#newcode134 src/ia32/deoptimizer-ia32.cc:134: HandleScope scope; On 2011/03/25 13:09:26, Mads Ager wrote: > ...
9 years, 9 months ago (2011-03-25 13:15:52 UTC) #4
Vitaly Repeshko
http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc File src/ia32/deoptimizer-ia32.cc (right): http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc#newcode134 src/ia32/deoptimizer-ia32.cc:134: HandleScope scope; On 2011/03/25 13:15:53, Mads Ager wrote: > ...
9 years, 9 months ago (2011-03-25 13:25:03 UTC) #5
Mads Ager (chromium)
http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc File src/ia32/deoptimizer-ia32.cc (right): http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc#newcode134 src/ia32/deoptimizer-ia32.cc:134: HandleScope scope; On 2011/03/25 13:25:03, Vitaly Repeshko wrote: > ...
9 years, 9 months ago (2011-03-25 13:37:42 UTC) #6
Vitaly Repeshko
9 years, 9 months ago (2011-03-25 13:45:21 UTC) #7
http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc
File src/ia32/deoptimizer-ia32.cc (right):

http://codereview.chromium.org/6696107/diff/1/src/ia32/deoptimizer-ia32.cc#ne...
src/ia32/deoptimizer-ia32.cc:134: HandleScope scope;
On 2011/03/25 13:37:42, Mads Ager wrote:
> On 2011/03/25 13:25:03, Vitaly Repeshko wrote:
> > On 2011/03/25 13:15:53, Mads Ager wrote:
> > > On 2011/03/25 13:09:26, Mads Ager wrote:
> > > > On 2011/03/25 12:57:51, Vitaly Repeshko wrote:
> > > > > Is this really needed?
> > > > 
> > > > No you are right. That is not needed. I have extracted the isolate
earlier
> > in
> > > > the method above and passed it to the handlescope constructor.
> > > 
> > > I was wrong. We need it. The code patcher allocates handles to put in the
> code
> > > and there is no other handle scope here. I'll get the isolate early and
use
> it
> > > for handle scope construction.
> > 
> > Is it only the self-reference code handle or are there more?
> 
> That is the only one that I found by quick inspection. With the isolate
> extracted early the cost of the handle scope is very little compared to the
rest
> of the work here.

Sure. The performance is not a concern here. I just was worried that we have
hidden handlified code that may allocate when not caught by the debug mode
AssertNoAllocation.

Powered by Google App Engine
This is Rietveld 408576698