On 2015/02/27 11:24:25, Dmitry Lomov (chromium) wrote:
The approach looks good to me. Can you send an intent-to-implement? I for one
will be super happy to see this getting in!


Will do that today.

BTW, do you have an opinion on the weirdness in the bootstrapper? It seems
really weird to me that initializing that `InitializeExperimentalGlobal()` runs after `InstallExperimentalNatives()`, since I need to install the Reflect global
before putting things in it. Maybe there's a better approach for that

On 2015/02/20 00:33:21, arv wrote:
> On 2015/02/19 23:10:32, caitp wrote:
> > On 2015/02/18 22:44:57, caitp wrote:
> > > Basic work on an implementation of Reflect.apply() (x64 only) which
shares
> > code
> > > with FunctionApply.
> > >
> > > Establishing this and ReflectConstruct should help simplify the
> implementation
> > > of spreadcalls, so I'd love to get these in
> >
> > ReflectConstruct is proving to be a lot more difficult to implement :[
>
> Yeah. We need to implement new.target too. We need to track usage of
new.target
> and then use a different construct stub if that is present.

In fact, ReflectConstruct is independent from new.target syntax support.
All construct stubs are already ready to accept NewTarget argument.
What you need to do is to implement an INLINE runtime function (see e.g.
DefaultConstructorSuperCall for inspiration) and in that function, generate a
call to CallConstructStub (SUPER_CONSTRUCTOR_CALL variant).
Here is an example for that:

https://code.google.com/p/chromium/codesearch#chromium/src/v8/src/x64/full-codegen-x64.cc&rcl=1425002564&l=4121

I'll take another look at ReflectConstruct today

https://codereview.chromium.org/913073003/

--
--
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.

Reply via email to