https://codereview.chromium.org/631433002/diff/20001/src/preparser.h
File src/preparser.h (right):
https://codereview.chromium.org/631433002/diff/20001/src/preparser.h#newcode153
src/preparser.h:153: *scope_stack_ = scope_;
On 2014/10/07 15:09:37, Dmitry Lomov (chromium) wrote:
On 2014/10/07 14:47:09, arv wrote:
> On 2014/10/07 10:28:32, Dmitry Lomov (chromium) wrote:
> > Why do you need this constructor?
>
> This is due to how parser and preparser typedef Scope differently.
>
> We have the same duplication of the constructor for FunctionState.
Could we investigate the possibility of removing this discrepancy
between
prepaser and parser? This is very confusing (not necessarily in this
CL)
I agree that this is confusing. I struggled quite a bit to understand
what was going on here.
https://codereview.chromium.org/631433002/diff/40001/src/globals.h
File src/globals.h (right):
https://codereview.chromium.org/631433002/diff/40001/src/globals.h#newcode769
src/globals.h:769: kConstructorMethod = kNormalFunction
On 2014/10/07 15:09:37, Dmitry Lomov (chromium) wrote:
Set but unused? Let's remove it.
It is used in preparser.h. I can change that to use kNormalFunction but
I found that this makes it more clear what is going on.
https://codereview.chromium.org/631433002/diff/40001/src/runtime/runtime.cc
File src/runtime/runtime.cc (right):
https://codereview.chromium.org/631433002/diff/40001/src/runtime/runtime.cc#newcode433
src/runtime/runtime.cc:433: if (has_constructor_parent) {
On 2014/10/07 15:09:37, Dmitry Lomov (chromium) wrote:
Replace with constructor_parent.is_null() and remove flag?
Good idea. Done.
https://codereview.chromium.org/631433002/diff/40001/test/mjsunit/mjsunit.status
File test/mjsunit/mjsunit.status (right):
https://codereview.chromium.org/631433002/diff/40001/test/mjsunit/mjsunit.status#newcode74
test/mjsunit/mjsunit.status:74: 'harmony/classes': [PASS, NO_VARIANTS],
On 2014/10/07 15:09:37, Dmitry Lomov (chromium) wrote:
You should not need this after
https://code.google.com/p/v8/source/detail?r=24435.
Don't forget to remove after you rebase.
Acknowledged.
https://codereview.chromium.org/631433002/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.