• yangguo's avatar
    Native context: debug.js does not load from js builtins object anymore. · eb8c0928
    yangguo authored
    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}
    eb8c0928
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...