Reviewers: Lasse Reichstein, Mads Ager,
Message:
This change implements strict more poison pill functions for
Function.arguments
and Function.caller for strict mode functions.
Solution is to create alternative function object maps for strict mode
functions
which have custom callback pair for caller/arguments which always throws.
The arguments object poison pills coming soon (now that I know how to custom
craft v8 objects and their maps)
Thank you!
Martin
Description:
Strict mode poision pills.
- function.caller
- function.arguments
BUG=
TEST=test/mjsunit/strict-mode.js
Please review this at http://codereview.chromium.org/6691003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/arm/codegen-arm.cc
M src/arm/full-codegen-arm.cc
M src/arm/lithium-codegen-arm.cc
M src/bootstrapper.cc
M src/builtins.h
M src/builtins.cc
M src/contexts.h
M src/factory.h
M src/factory.cc
M src/handles.h
M src/handles.cc
M src/ia32/codegen-ia32.cc
M src/ia32/full-codegen-ia32.cc
M src/ia32/lithium-codegen-ia32.cc
M src/messages.js
M src/objects.cc
M src/runtime.cc
M src/x64/codegen-x64.cc
M src/x64/full-codegen-x64.cc
M src/x64/lithium-codegen-x64.cc
M test/mjsunit/strict-mode.js
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev