|
[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
Committed: https://crrev.com/c403ede42ab9ab8e1c6e6788de5c140b16502746
Cr-Commit-Position: refs/heads/master@{#30435}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+83 lines, -35 lines) |
Patch |
|
M |
src/compiler/js-generic-lowering.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/linkage.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/contexts.h
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/debug/mirrors.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/full-codegen/full-codegen.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/macros.py
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime.js
|
View
|
|
8 chunks |
+1 line, -18 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-object.cc
|
View
|
|
2 chunks |
+16 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/v8natives.js
|
View
|
|
10 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/harmony/to-name.js
|
View
|
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 14 (6 generated)
|