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

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

Issue 2497243002: [stubs] Port builtin for Array.push fast-case from Crankshaft to TF (Closed)
Patch Set: Fix GC mole Created 4 years 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/arm64/code-stubs-arm64.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 15 matching lines...) Expand all
26 26
27 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { 27 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) {
28 __ lsl(r5, r0, Operand(kPointerSizeLog2)); 28 __ lsl(r5, r0, Operand(kPointerSizeLog2));
29 __ str(r1, MemOperand(sp, r5)); 29 __ str(r1, MemOperand(sp, r5));
30 __ Push(r1); 30 __ Push(r1);
31 __ Push(r2); 31 __ Push(r2);
32 __ add(r0, r0, Operand(3)); 32 __ add(r0, r0, Operand(3));
33 __ TailCallRuntime(Runtime::kNewArray); 33 __ TailCallRuntime(Runtime::kNewArray);
34 } 34 }
35 35
36 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
37 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry;
38 descriptor->Initialize(r0, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
39 }
40
41 void FastFunctionBindStub::InitializeDescriptor( 36 void FastFunctionBindStub::InitializeDescriptor(
42 CodeStubDescriptor* descriptor) { 37 CodeStubDescriptor* descriptor) {
43 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry; 38 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry;
44 descriptor->Initialize(r0, deopt_handler, -1, JS_FUNCTION_STUB_MODE); 39 descriptor->Initialize(r0, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
45 } 40 }
46 41
47 static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow, 42 static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow,
48 Condition cond); 43 Condition cond);
49 static void EmitSmiNonsmiComparison(MacroAssembler* masm, 44 static void EmitSmiNonsmiComparison(MacroAssembler* masm,
50 Register lhs, 45 Register lhs,
(...skipping 4278 matching lines...) Expand 10 before | Expand all | Expand 10 after
4329 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 4324 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
4330 kStackUnwindSpace, NULL, return_value_operand, NULL); 4325 kStackUnwindSpace, NULL, return_value_operand, NULL);
4331 } 4326 }
4332 4327
4333 #undef __ 4328 #undef __
4334 4329
4335 } // namespace internal 4330 } // namespace internal
4336 } // namespace v8 4331 } // namespace v8
4337 4332
4338 #endif // V8_TARGET_ARCH_ARM 4333 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698