One round of nits, otherwise it's looking good. I'll hold off with the final
ElGeTeEm until all tests pass though.


https://chromiumcodereview.appspot.com/10836133/diff/8017/src/hydrogen.cc
File src/hydrogen.cc (right):

https://chromiumcodereview.appspot.com/10836133/diff/8017/src/hydrogen.cc#newcode188
src/hydrogen.cc:188: AddInstruction(new(zone())
HLeaveInlined(state->arguments_pushed()));
Can we keep the drop_extra and arguments_pushed as local variables at
the top, IMHO that's cleaner. And maybe also move the target block into
a separate local variable.

HBasicBlock* block = state->function_return();

https://chromiumcodereview.appspot.com/10836133/diff/8017/src/hydrogen.cc#newcode6969
src/hydrogen.cc:6969: receiver,
Can we also rename "receiver" to "implicit_return_value" here for
consistency?

https://chromiumcodereview.appspot.com/10836133/diff/8017/src/hydrogen.h
File src/hydrogen.h (right):

https://chromiumcodereview.appspot.com/10836133/diff/8017/src/hydrogen.h#newcode745
src/hydrogen.h:745: InliningKind inlining_kind_;
Can we have a one-liner comment that says this specifies the kind of
call that was inlined.

https://chromiumcodereview.appspot.com/10836133/diff/8017/test/mjsunit/compiler/inline-accessors.js
File test/mjsunit/compiler/inline-accessors.js (right):

https://chromiumcodereview.appspot.com/10836133/diff/8017/test/mjsunit/compiler/inline-accessors.js#newcode79
test/mjsunit/compiler/inline-accessors.js:79: function getter1() {
It might be a good idea to assert that the receiver is passed correctly
in all of the getters and setters. Something like the following ...

assertSame(obj, this);

https://chromiumcodereview.appspot.com/10836133/

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

Reply via email to