|
This CL simplifies var / const by ensuring the behavior is consistent in itself, and with regular JS semantics; between regular var/const and eval-ed var/const.
Legacy const is changed so that a declaration declares a configurable, but non-writable, slot, and the initializer reconfigures it (when possible) to non-configurable non-writable. This avoids the need for "the hole" as marker value in JSContextExtensionObjects and GlobalObjects. Undefined is used instead.
BUG=
R=rossberg@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=22379
Total comments: 26
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+709 lines, -1093 lines) |
Patch |
|
M |
src/arm/full-codegen-arm.cc
|
View
|
1
|
5 chunks |
+26 lines, -32 lines |
0 comments
|
Download
|
|
M |
src/arm64/full-codegen-arm64.cc
|
View
|
1
|
5 chunks |
+28 lines, -34 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/ia32/full-codegen-ia32.cc
|
View
|
1
|
5 chunks |
+24 lines, -30 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/parser.cc
|
View
|
1
|
3 chunks |
+15 lines, -14 lines |
0 comments
|
Download
|
|
M |
src/runtime.h
|
View
|
1
|
1 chunk |
+299 lines, -299 lines |
0 comments
|
Download
|
|
M |
src/runtime.cc
|
View
|
1
2
|
9 chunks |
+215 lines, -362 lines |
0 comments
|
Download
|
|
M |
src/x64/full-codegen-x64.cc
|
View
|
1
|
5 chunks |
+24 lines, -30 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-decls.cc
|
View
|
|
10 chunks |
+26 lines, -180 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/const-eval-init.js
|
View
|
1
|
4 chunks |
+17 lines, -16 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/const-redecl.js
|
View
|
1
|
4 chunks |
+14 lines, -68 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/global-const-var-conflicts.js
|
View
|
|
1 chunk |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-1170.js
|
View
|
|
3 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-1213575.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
test/mjsunit/regress/regress-freeze-setter.js
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-global-freeze-const.js
|
View
|
1
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
test/mozilla/mozilla.status
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
tools/generate-runtime-tests.py
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|