|
Make eval consider anything on the form eval(args...) a potential direct cal
Previously we omitted all cases where the global eval property was shadowed,
even if by a variable holding the same value. ES5 requires us to treat these
as direct calls.
We still throw if calling indirect eval with a detached global object.
BUG= v8:994
TEST=mjsunit/eval.js
Committed: http://code.google.com/p/v8/source/detail?r=9838
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+68 lines, -251 lines) |
Patch |
|
M |
src/arm/full-codegen-arm.cc
|
View
|
|
3 chunks |
+3 lines, -23 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.h
|
View
|
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
|
M |
src/ia32/full-codegen-ia32.cc
|
View
|
|
3 chunks |
+3 lines, -23 lines |
0 comments
|
Download
|
|
M |
src/mips/full-codegen-mips.cc
|
View
|
|
3 chunks |
+3 lines, -23 lines |
0 comments
|
Download
|
|
M |
src/parser.cc
|
View
|
|
1 chunk |
+3 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/runtime.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/runtime.cc
|
View
|
1
|
1 chunk |
+5 lines, -73 lines |
0 comments
|
Download
|
|
M |
src/v8natives.js
|
View
|
|
1 chunk |
+5 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/variables.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
src/x64/full-codegen-x64.cc
|
View
|
|
3 chunks |
+3 lines, -23 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-api.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/eval.js
|
View
|
1
|
5 chunks |
+36 lines, -13 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-221.js
|
View
|
1
|
1 chunk |
+0 lines, -34 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/strict-mode-implicit-receiver.js
|
View
|
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|