LGTM after addressing comments below.

http://codereview.chromium.org/6266007/diff/2001/src/scopes.cc
File src/scopes.cc (right):

http://codereview.chromium.org/6266007/diff/2001/src/scopes.cc#newcode161
src/scopes.cc:161: // and thread access to this scope's parameters via
arguments shadow.
Suggested rewording, something like:

This scope's arguments shadow (if present) is context-allocated if an
inner scope accesses this one's parameters.  Allocate the
arguments_shadow_ variable if necessary.

http://codereview.chromium.org/6266007/diff/2001/src/scopes.cc#newcode261
src/scopes.cc:261: // as it is impllicitly present in any scope.
Could you fix the spelling of "implicitly"?

http://codereview.chromium.org/6266007/diff/2001/src/scopes.cc#newcode269
src/scopes.cc:269: ASSERT(scope_info_->StackSlotIndex(*name) < 0);
This assert could be lifted higher (up to the previous assert), couldn't
it?  The comment should say "assert" not "check".

http://codereview.chromium.org/6266007/diff/2001/src/scopes.cc#newcode286
src/scopes.cc:286: new Literal(Handle<Object>(Smi::FromInt(index))),
Indentation is a bit off here.

http://codereview.chromium.org/6266007/diff/2001/src/scopes.cc#newcode299
src/scopes.cc:299: variables_.Declare(this, name, mode, true,
Variable::NORMAL);
Will this be the right mode?

http://codereview.chromium.org/6266007/diff/2001/test/mjsunit/compiler/regress-serialized-slots.js
File test/mjsunit/compiler/regress-serialized-slots.js (right):

http://codereview.chromium.org/6266007/diff/2001/test/mjsunit/compiler/regress-serialized-slots.js#newcode28
test/mjsunit/compiler/regress-serialized-slots.js:28: function runner(f,
expected) {
Test code is complicated enough that it needs a comment saying what it's
testing.

Think of the person who finds a test failure (wrong result) here.

http://codereview.chromium.org/6266007/

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to