Index: src/runtime/runtime-array.cc |
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
index 6664c814006798046ef7a6ffa279788e04146a49..0473b76246bb46e0a916da9fd0ae42b559f9f9d7 100644 |
--- a/src/runtime/runtime-array.cc |
+++ b/src/runtime/runtime-array.cc |
@@ -53,8 +53,12 @@ RUNTIME_FUNCTION(Runtime_SpecialArrayFunctions) { |
isolate->factory()->NewJSObject(isolate->object_function()); |
InstallBuiltin(isolate, holder, "pop", Builtins::kArrayPop); |
- FastArrayPushStub stub(isolate); |
- InstallCode(isolate, holder, "push", stub.GetCode()); |
+ if (FLAG_minimal) { |
+ InstallBuiltin(isolate, holder, "push", Builtins::kArrayPush); |
+ } else { |
+ FastArrayPushStub stub(isolate); |
+ InstallCode(isolate, holder, "push", stub.GetCode()); |
+ } |
InstallBuiltin(isolate, holder, "shift", Builtins::kArrayShift); |
InstallBuiltin(isolate, holder, "unshift", Builtins::kArrayUnshift); |
InstallBuiltin(isolate, holder, "slice", Builtins::kArraySlice); |