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

Side by Side Diff: src/runtime/runtime-array.cc

Issue 2189663002: Add a flag to help platform ports bootstrap V8 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename flag Created 4 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 unified diff | Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/conversions-inl.h" 9 #include "src/conversions-inl.h"
10 #include "src/elements.h" 10 #include "src/elements.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 handle(isolate->builtins()->builtin(builtin_name), isolate)); 46 handle(isolate->builtins()->builtin(builtin_name), isolate));
47 } 47 }
48 48
49 RUNTIME_FUNCTION(Runtime_SpecialArrayFunctions) { 49 RUNTIME_FUNCTION(Runtime_SpecialArrayFunctions) {
50 HandleScope scope(isolate); 50 HandleScope scope(isolate);
51 DCHECK(args.length() == 0); 51 DCHECK(args.length() == 0);
52 Handle<JSObject> holder = 52 Handle<JSObject> holder =
53 isolate->factory()->NewJSObject(isolate->object_function()); 53 isolate->factory()->NewJSObject(isolate->object_function());
54 54
55 InstallBuiltin(isolate, holder, "pop", Builtins::kArrayPop); 55 InstallBuiltin(isolate, holder, "pop", Builtins::kArrayPop);
56 FastArrayPushStub stub(isolate); 56 if (FLAG_minimal) {
57 InstallCode(isolate, holder, "push", stub.GetCode()); 57 InstallBuiltin(isolate, holder, "push", Builtins::kArrayPush);
58 } else {
59 FastArrayPushStub stub(isolate);
60 InstallCode(isolate, holder, "push", stub.GetCode());
61 }
58 InstallBuiltin(isolate, holder, "shift", Builtins::kArrayShift); 62 InstallBuiltin(isolate, holder, "shift", Builtins::kArrayShift);
59 InstallBuiltin(isolate, holder, "unshift", Builtins::kArrayUnshift); 63 InstallBuiltin(isolate, holder, "unshift", Builtins::kArrayUnshift);
60 InstallBuiltin(isolate, holder, "slice", Builtins::kArraySlice); 64 InstallBuiltin(isolate, holder, "slice", Builtins::kArraySlice);
61 InstallBuiltin(isolate, holder, "splice", Builtins::kArraySplice); 65 InstallBuiltin(isolate, holder, "splice", Builtins::kArraySplice);
62 66
63 return *holder; 67 return *holder;
64 } 68 }
65 69
66 70
67 RUNTIME_FUNCTION(Runtime_FixedArrayGet) { 71 RUNTIME_FUNCTION(Runtime_FixedArrayGet) {
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 RUNTIME_FUNCTION(Runtime_ArraySpeciesConstructor) { 438 RUNTIME_FUNCTION(Runtime_ArraySpeciesConstructor) {
435 HandleScope scope(isolate); 439 HandleScope scope(isolate);
436 DCHECK(args.length() == 1); 440 DCHECK(args.length() == 1);
437 CONVERT_ARG_HANDLE_CHECKED(Object, original_array, 0); 441 CONVERT_ARG_HANDLE_CHECKED(Object, original_array, 0);
438 RETURN_RESULT_OR_FAILURE( 442 RETURN_RESULT_OR_FAILURE(
439 isolate, Object::ArraySpeciesConstructor(isolate, original_array)); 443 isolate, Object::ArraySpeciesConstructor(isolate, original_array));
440 } 444 }
441 445
442 } // namespace internal 446 } // namespace internal
443 } // namespace v8 447 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698