Native context: debug.js does not load from js builtins object anymore.
authoryangguo <yangguo@chromium.org>
Wed, 19 Aug 2015 08:34:21 +0000 (01:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 19 Aug 2015 08:34:34 +0000 (08:34 +0000)
commiteb8c092822c7745b49d3d97ec93edc2b0af72827
tree0c29c4ad73f239c8aa7944f66d9c1a0105adab10
parent7fc7957be57d1cdfb0b7e1d76bdee78f4699774f
Native context: debug.js does not load from js builtins object anymore.

This mainly changes how we share ToBoolean, ToNumber and ToString between
native scripts. Instead of putting them on the js builtins object, we now
explicitly export and import those functions.

I also had to change the import/export mechanism slightly. Previously,
exports and imports are hooked up after all native scripts have been
executed. This means that imported functions cannot be called at the time
the native script is executed.

However, since ToBoolean (and also e.g. ObjectDefineProperties) is called
in v8natives.js, I changed the mechanism so that exports from previous
native scripts (runtime.js for ToBoolean) is imported immediately and can
be called.

R=cbruni@chromium.org

Review URL: https://codereview.chromium.org/1302533002

Cr-Commit-Position: refs/heads/master@{#30244}
22 files changed:
src/array.js
src/arraybuffer.js
src/date.js
src/debug/debug.js
src/debug/mirrors.js
src/harmony-array.js
src/harmony-atomics.js
src/harmony-object.js
src/harmony-regexp.js
src/harmony-typedarray.js
src/i18n.js
src/json.js
src/macros.py
src/messages.js
src/prologue.js
src/regexp.js
src/runtime.js
src/string.js
src/symbol.js
src/typedarray.js
src/uri.js
src/v8natives.js