| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index d11ff347545489aa55d735e822fbc738a27b8748..b6e8dc5bc8faa3bf21d1f80fb5e920a29ec0f31f 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -231,6 +231,7 @@ class Genesis BASE_EMBEDDED {
|
| // Installs the contents of the native .js files on the global objects.
|
| // Used for creating a context from scratch.
|
| void InstallNativeFunctions();
|
| + void InstallExperimentalBuiltinFunctionIds();
|
| void InstallExperimentalNativeFunctions();
|
| Handle<JSFunction> InstallInternalArray(Handle<JSBuiltinsObject> builtins,
|
| const char* name,
|
| @@ -2060,7 +2061,7 @@ bool Genesis::InstallExperimentalNatives() {
|
| }
|
|
|
| InstallExperimentalNativeFunctions();
|
| -
|
| + InstallExperimentalBuiltinFunctionIds();
|
| return true;
|
| }
|
|
|
| @@ -2110,6 +2111,15 @@ void Genesis::InstallBuiltinFunctionIds() {
|
| }
|
|
|
|
|
| +void Genesis::InstallExperimentalBuiltinFunctionIds() {
|
| + HandleScope scope(isolate());
|
| + if (FLAG_harmony_maths) {
|
| + Handle<JSObject> holder = ResolveBuiltinIdHolder(native_context(), "Math");
|
| + InstallBuiltinFunctionId(holder, "clz32", kMathClz32);
|
| + }
|
| +}
|
| +
|
| +
|
| // Do not forget to update macros.py with named constant
|
| // of cache id.
|
| #define JSFUNCTION_RESULT_CACHE_LIST(F) \
|
|
|