There are two forms.

1. __proto__ as an accessor on Object.prototype is added in v8natives.js
2. __proto__ in an object literal is handled by the compiler, making sure
that we set the [[Prototype]] of the new born object. We generate code for
this in FullCodeGenerator::VisitObjectLiteral

On Mon Oct 27 2014 at 5:11:35 AM Shang Yu <yus...@gmail.com> wrote:

> Hi dear all,
> How v8 install __proto__ on a object ? or its accessing is processed by
> the runtime ? Does it has something  with ObjectLiteralProperty::PROTOTYPE ?
>
> Many thanks !!!
>
> --
> --
> v8-dev mailing list
> v8-dev@googlegroups.com
> 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 v8-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to