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

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

Issue 2497243002: [stubs] Port builtin for Array.push fast-case from Crankshaft to TF (Closed)
Patch Set: Cleanup Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 15 matching lines...) Expand all
26 26
27 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { 27 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) {
28 __ Mov(x5, Operand(x0, LSL, kPointerSizeLog2)); 28 __ Mov(x5, Operand(x0, LSL, kPointerSizeLog2));
29 __ Str(x1, MemOperand(jssp, x5)); 29 __ Str(x1, MemOperand(jssp, x5));
30 __ Push(x1); 30 __ Push(x1);
31 __ Push(x2); 31 __ Push(x2);
32 __ Add(x0, x0, Operand(3)); 32 __ Add(x0, x0, 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(x0, 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(x0, deopt_handler, -1, JS_FUNCTION_STUB_MODE); 39 descriptor->Initialize(x0, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
45 } 40 }
46 41
47 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, 42 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm,
48 ExternalReference miss) { 43 ExternalReference miss) {
49 // Update the static counter each time a new code stub is generated. 44 // Update the static counter each time a new code stub is generated.
50 isolate()->counters()->code_stubs()->Increment(); 45 isolate()->counters()->code_stubs()->Increment();
(...skipping 4861 matching lines...) Expand 10 before | Expand all | Expand 10 after
4912 kStackUnwindSpace, NULL, spill_offset, 4907 kStackUnwindSpace, NULL, spill_offset,
4913 return_value_operand, NULL); 4908 return_value_operand, NULL);
4914 } 4909 }
4915 4910
4916 #undef __ 4911 #undef __
4917 4912
4918 } // namespace internal 4913 } // namespace internal
4919 } // namespace v8 4914 } // namespace v8
4920 4915
4921 #endif // V8_TARGET_ARCH_ARM64 4916 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698