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

Issue 113455: Clean up the Result class. Reduce the size of Result from four words... (Closed)

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

Description

Clean up the Result class. Reduce the size of Result from four words to one by keeping a stack of active code generators and by using indirection to handles. Mainly a cleanup. No visible performance impact. Committed: http://code.google.com/p/v8/source/detail?r=1965

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -108 lines) Patch
M src/codegen.h View 1 chunk +18 lines, -0 lines 2 comments Download
M src/codegen.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler.h View 1 chunk +4 lines, -1 line 0 comments Download
M src/ia32/codegen-ia32.cc View 34 chunks +37 lines, -37 lines 1 comment Download
M src/ia32/register-allocator-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/virtual-frame-ia32.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/virtual-frame-ia32.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M src/register-allocator.h View 1 4 chunks +49 lines, -28 lines 2 comments Download
M src/register-allocator.cc View 5 chunks +17 lines, -32 lines 0 comments Download
M src/register-allocator-inl.h View 1 chunk +7 lines, -1 line 0 comments Download
M src/virtual-frame.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M test/cctest/test-log-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mads Ager (chromium)
11 years, 7 months ago (2009-05-15 10:38:37 UTC) #1
Kevin Millikin (Chromium)
LGTM. http://codereview.chromium.org/113455/diff/1010/1017 File src/codegen.h (right): http://codereview.chromium.org/113455/diff/1010/1017#newcode99 Line 99: previous = Result::cgen_; Does the static top ...
11 years, 7 months ago (2009-05-15 10:50:49 UTC) #2
William Hesse
LGTM.
11 years, 7 months ago (2009-05-15 11:02:15 UTC) #3
Kasper Lund
LGTM.
11 years, 7 months ago (2009-05-15 11:04:50 UTC) #4
Mads Ager (chromium)
11 years, 7 months ago (2009-05-15 11:05:25 UTC) #5
http://codereview.chromium.org/113455/diff/1010/1017
File src/codegen.h (right):

http://codereview.chromium.org/113455/diff/1010/1017#newcode99
Line 99: previous = Result::cgen_;
On 2009/05/15 10:50:49, Kevin Millikin wrote:
> Does the static top code generator belong to the Result?  I can see it being
> used elsewhere (JumpTarget).  Maybe it fits better in CodeGeneratorScope or
> CodeGenerator.

Good point.  I moved it to the CodeGeneratorScope.  Whenever you need the
current CodeGenerator you can get it as CodeGeneratorScope::Current().

http://codereview.chromium.org/113455/diff/1010/1012
File src/register-allocator.h (right):

http://codereview.chromium.org/113455/diff/1010/1012#newcode125
Line 125: explicit Result() { invalidate(); }
On 2009/05/15 10:50:49, Kevin Millikin wrote:
> Doesn't need explicit anymore.

Done.

Powered by Google App Engine
This is Rietveld 408576698