| 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;
|
| -});
|
| -
|
| })
|
|
|