OLD | NEW |
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 Loading... |
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 4633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4684 kStackUnwindSpace, NULL, spill_offset, | 4679 kStackUnwindSpace, NULL, spill_offset, |
4685 return_value_operand, NULL); | 4680 return_value_operand, NULL); |
4686 } | 4681 } |
4687 | 4682 |
4688 #undef __ | 4683 #undef __ |
4689 | 4684 |
4690 } // namespace internal | 4685 } // namespace internal |
4691 } // namespace v8 | 4686 } // namespace v8 |
4692 | 4687 |
4693 #endif // V8_TARGET_ARCH_ARM64 | 4688 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |