• 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
json.js 7.01 KB