Reviewers: Yang,
Message:
Hey Yang,
Here's first followup cleanup for ToName. Easy peasy.
Please take a look.
Thanks,
Benedikt
Description:
[es6] Implement spec compliant ToName (actually ToPropertyKey).
This adds a %ToName runtime entry that uses the previously introduced
Object::ToName, which is based on the new Object::ToPrimitive method.
Also removes the need to expose ToName in various way via the builtins
and/or context.
Drive-by-fix: Let %HasProperty do the ToName conversion implicitly as
required.
BUG=v8:4307
LOG=n
Please review this at https://codereview.chromium.org/1319133002/
Base URL: https://chromium.googlesource.com/v8/v8.git@ToPrimitive
Affected files (+83, -35 lines):
M src/compiler/js-generic-lowering.cc
M src/compiler/linkage.cc
M src/contexts.h
M src/debug/mirrors.js
M src/full-codegen/full-codegen.cc
M src/macros.py
M src/runtime.js
M src/runtime/runtime.h
M src/runtime/runtime-object.cc
M src/v8natives.js
A test/mjsunit/harmony/to-name.js
--
--
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.