Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Unified Diff: src/prologue.js

Issue 1294803004: Native context: run prologue.js before runtime.js (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: also change BUILD.gn Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | src/runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/prologue.js
diff --git a/src/prologue.js b/src/prologue.js
index 720f1de075431decb1ac2c98c7d5a80f6de0f51e..d41146fb5bdef0d61c515bcab233fcf909aaa0eb 100644
--- a/src/prologue.js
+++ b/src/prologue.js
@@ -76,17 +76,7 @@ function InstallConstants(object, constants) {
function InstallFunctions(object, attributes, functions) {
- %CheckIsBootstrapping();
- %OptimizeObjectForAddingMultipleProperties(object, functions.length >> 1);
- for (var i = 0; i < functions.length; i += 2) {
- var key = functions[i];
- var f = functions[i + 1];
- SetFunctionName(f, key);
- %FunctionRemovePrototype(f);
- %AddNamedProperty(object, key, f, attributes);
- %SetNativeFlag(f);
- }
- %ToFastProperties(object);
+ %InstallFunctionsFromArray(object, attributes, functions);
}
@@ -266,12 +256,4 @@ InstallFunctions(utils, NONE, [
"PostDebug", PostDebug,
]);
-// TODO(yangguo): run prologue.js before runtime.js
-ExportToRuntime(function(to) {
- to.ToNumber = $toNumber;
- to.ToString = $toString;
- to.ToInteger = $toInteger;
- to.ToLength = $toLength;
-});
-
})
« no previous file with comments | « src/bootstrapper.cc ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698