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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 1816553002: Introduce a code stub version of Array.prototype.push (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 4 years, 9 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 | « no previous file | src/arm/interface-descriptors-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #if V8_TARGET_ARCH_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 CodeStubDescriptor* descriptor) { 71 CodeStubDescriptor* descriptor) {
72 InitializeArrayConstructorDescriptor(isolate(), descriptor, -1); 72 InitializeArrayConstructorDescriptor(isolate(), descriptor, -1);
73 } 73 }
74 74
75 75
76 void InternalArrayNoArgumentConstructorStub::InitializeDescriptor( 76 void InternalArrayNoArgumentConstructorStub::InitializeDescriptor(
77 CodeStubDescriptor* descriptor) { 77 CodeStubDescriptor* descriptor) {
78 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 0); 78 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 0);
79 } 79 }
80 80
81 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
82 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry;
83 descriptor->Initialize(r0, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
84 }
81 85
82 void InternalArraySingleArgumentConstructorStub::InitializeDescriptor( 86 void InternalArraySingleArgumentConstructorStub::InitializeDescriptor(
83 CodeStubDescriptor* descriptor) { 87 CodeStubDescriptor* descriptor) {
84 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 1); 88 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 1);
85 } 89 }
86 90
87 91
88 void InternalArrayNArgumentsConstructorStub::InitializeDescriptor( 92 void InternalArrayNArgumentsConstructorStub::InitializeDescriptor(
89 CodeStubDescriptor* descriptor) { 93 CodeStubDescriptor* descriptor) {
90 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1); 94 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1);
(...skipping 5471 matching lines...) Expand 10 before | Expand all | Expand 10 after
5562 kStackUnwindSpace, NULL, return_value_operand, NULL); 5566 kStackUnwindSpace, NULL, return_value_operand, NULL);
5563 } 5567 }
5564 5568
5565 5569
5566 #undef __ 5570 #undef __
5567 5571
5568 } // namespace internal 5572 } // namespace internal
5569 } // namespace v8 5573 } // namespace v8
5570 5574
5571 #endif // V8_TARGET_ARCH_ARM 5575 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/interface-descriptors-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698