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

Issue 14423: Experimental: introduce a helper class to delmite a scope where the... (Closed)

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

Description

Experimental: introduce a helper class to delmite a scope where the virtual frame is expected to be spilled. Add versions of code generator helper functions that spill the virtual frame before returning. This change should preserve semantics (one redundant spill was removed) and is mostly for documentation purposes. It should make reading and reviewing the code easier. Committed: http://code.google.com/p/v8/source/detail?r=980

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -247 lines) Patch
M src/codegen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/codegen-ia32.h View 1 6 chunks +79 lines, -0 lines 0 comments Download
M src/codegen-ia32.cc View 1 115 chunks +185 lines, -246 lines 0 comments Download
M src/virtual-frame-ia32.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
M src/virtual-frame-ia32.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Chromium)
Mads, can you take a quick look at this? I'm hoping it makes it easier ...
12 years ago (2008-12-15 09:13:56 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/14423/diff/1/2 File src/codegen-ia32.h (right): http://codereview.chromium.org/14423/diff/1/2#newcode86 Line 86: // stack and then spill the stack ...
12 years ago (2008-12-15 09:43:12 UTC) #2
Kevin Millikin (Chromium)
12 years ago (2008-12-15 15:46:18 UTC) #3
http://codereview.chromium.org/14423/diff/1/2
File src/codegen-ia32.h (right):

http://codereview.chromium.org/14423/diff/1/2#newcode86
Line 86: // stack and then spill the stack frame.  This function is used
temporarily while
On 2008/12/15 09:43:12, Mads Ager wrote:
> Is this line too long?

Yes, fixed.

http://codereview.chromium.org/14423/diff/1/3
File src/virtual-frame-ia32.h (right):

http://codereview.chromium.org/14423/diff/1/3#newcode187
Line 187: class SpilledScope BASE_EMBEDDED {
On 2008/12/15 09:43:12, Mads Ager wrote:
> As we discussed, it would be nice to have a spilled scope block calls to the
> Load functions that do not spill at the end.

Done.  SpilledScope now sets a flag in the code generator.  The ...AndSpill
versions should only be called when it's set, and the raw versions when it's
cleared.  It adds some extra (usually no-op) spills where we were either using
an ...AndSpill function to establish a region of spill code, or allowing one of
the raw functions to end one.

Since all of those will go away eventually, I think it's OK.

Powered by Google App Engine
This is Rietveld 408576698