| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 181c20052734e217138906ee13d72c53a2e8c613..0addb20a0c4fa69feddb5a56c4a743ab97da909c 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1156,13 +1156,18 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
| SimpleInstallFunction(prototype, factory->apply_string(),
|
| Builtins::kFunctionPrototypeApply, 2, false);
|
|
|
| - FastFunctionBindStub bind_stub(isolate);
|
| - Handle<JSFunction> bind_function = factory->NewFunctionWithoutPrototype(
|
| - factory->bind_string(), bind_stub.GetCode(), false);
|
| - bind_function->shared()->DontAdaptArguments();
|
| - bind_function->shared()->set_length(1);
|
| - InstallFunction(prototype, bind_function, factory->bind_string(),
|
| - DONT_ENUM);
|
| + if (FLAG_minimal) {
|
| + SimpleInstallFunction(prototype, factory->bind_string(),
|
| + Builtins::kFunctionPrototypeBind, 1, false);
|
| + } else {
|
| + FastFunctionBindStub bind_stub(isolate);
|
| + Handle<JSFunction> bind_function = factory->NewFunctionWithoutPrototype(
|
| + factory->bind_string(), bind_stub.GetCode(), false);
|
| + bind_function->shared()->DontAdaptArguments();
|
| + bind_function->shared()->set_length(1);
|
| + InstallFunction(prototype, bind_function, factory->bind_string(),
|
| + DONT_ENUM);
|
| + }
|
|
|
| SimpleInstallFunction(prototype, factory->call_string(),
|
| Builtins::kFunctionPrototypeCall, 1, false);
|
|
|