Lock the prototype of internal classes.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 5 Sep 2011 07:30:35 +0000 (07:30 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 5 Sep 2011 07:30:35 +0000 (07:30 +0000)
commitffffa716c57d60bc99d40c509e7b999db0c31713
treeb3de839086fb6464d20624a726299af99ba435c1
parentf6c063e1434faa0167aa2657f0484cf32f5f3997
Lock the prototype of internal classes.

Prototypes and their properties and methods are locked down to prevent fiddling with their operation, even if the build-in object leaks.

Made some built-in functions only work during bootstrapping.

Review URL: http://codereview.chromium.org/7799027

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9122 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
13 files changed:
src/array.js
src/date.js
src/json.js
src/math.js
src/messages.js
src/regexp.js
src/runtime.cc
src/runtime.h
src/string.js
src/uri.js
src/v8natives.js
src/weakmap.js
test/mjsunit/builtins.js [new file with mode: 0644]