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

Issue 7003058: A collection of context-related refactoring changes. (Closed)

Created:
9 years, 6 months ago by Kevin Millikin (Chromium)
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

A collection of context-related refactoring changes. Introduce separate maps for function and with contexts. Use the function context map for testing whether a context is a function context (global contexts are no longer function contexts). Split the paths for allocating with and catch contexts. Rename some functions. Generally refactor code to make it simpler. R=ager@chromium.org BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=8231

Patch Set 1 #

Total comments: 16
Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -277 lines) Patch
M src/arm/code-stubs-arm.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ast.h View 2 chunks +4 lines, -4 lines 1 comment Download
M src/ast.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/contexts.h View 1 chunk +11 lines, -2 lines 1 comment Download
M src/contexts.cc View 4 chunks +7 lines, -7 lines 4 comments Download
M src/factory.h View 2 chunks +6 lines, -3 lines 0 comments Download
M src/factory.cc View 2 chunks +12 lines, -6 lines 0 comments Download
M src/full-codegen.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M src/heap.h View 2 chunks +6 lines, -3 lines 0 comments Download
M src/heap.cc View 3 chunks +29 lines, -14 lines 0 comments Download
M src/hydrogen.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/mark-compact.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 chunk +6 lines, -11 lines 1 comment Download
M src/parser.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M src/prettyprinter.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M src/rewriter.cc View 1 chunk +5 lines, -120 lines 0 comments Download
M src/runtime.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/runtime.cc View 12 chunks +73 lines, -73 lines 9 comments Download
M src/x64/code-stubs-x64.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Kevin Millikin (Chromium)
It includes some renaming so it's not as big as it looks. http://codereview.chromium.org/7003058/diff/1/src/contexts.cc File src/contexts.cc ...
9 years, 6 months ago (2011-06-08 16:35:51 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/7003058/diff/1/src/ast.h File src/ast.h (right): http://codereview.chromium.org/7003058/diff/1/src/ast.h#newcode63 src/ast.h:63: V(WithEnterStatement) \ Do we want to call this ...
9 years, 6 months ago (2011-06-09 07:31:00 UTC) #2
Kevin Millikin (Chromium)
http://codereview.chromium.org/7003058/diff/1/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/7003058/diff/1/src/runtime.cc#newcode10280 src/runtime.cc:10280: (context_->IsGlobalContext() || (context_->IsFunctionContext()))) { On 2011/06/09 07:31:00, Mads Ager ...
9 years, 6 months ago (2011-06-09 11:09:40 UTC) #3
Mads Ager (chromium)
9 years, 6 months ago (2011-06-09 11:12:53 UTC) #4
http://codereview.chromium.org/7003058/diff/1/src/runtime.cc
File src/runtime.cc (right):

http://codereview.chromium.org/7003058/diff/1/src/runtime.cc#newcode10280
src/runtime.cc:10280: (context_->IsGlobalContext() ||
(context_->IsFunctionContext()))) {
On 2011/06/09 11:09:40, Kevin Millikin wrote:
> On 2011/06/09 07:31:00, Mads Ager wrote:
> > Can't we remove the IsGlobalContext here as well since we would return if
> > context_ is global above?
> 
> Not here, because this context_ is already the next ("previous") one in the
> chain.

Oh, yeah. Thanks!

Powered by Google App Engine
This is Rietveld 408576698