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 FastFunctionBindStub::InitializeDescriptor( | |
37 CodeStubDescriptor* descriptor) { | |
38 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry; | |
39 descriptor->Initialize(x0, deopt_handler, -1, JS_FUNCTION_STUB_MODE); | |
40 } | |
41 | |
42 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, | 36 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, |
43 ExternalReference miss) { | 37 ExternalReference miss) { |
44 // Update the static counter each time a new code stub is generated. | 38 // Update the static counter each time a new code stub is generated. |
45 isolate()->counters()->code_stubs()->Increment(); | 39 isolate()->counters()->code_stubs()->Increment(); |
46 | 40 |
47 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); | 41 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); |
48 int param_count = descriptor.GetRegisterParameterCount(); | 42 int param_count = descriptor.GetRegisterParameterCount(); |
49 { | 43 { |
50 // Call the runtime system in a fresh internal frame. | 44 // Call the runtime system in a fresh internal frame. |
51 FrameScope scope(masm, StackFrame::INTERNAL); | 45 FrameScope scope(masm, StackFrame::INTERNAL); |
(...skipping 4627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4679 kStackUnwindSpace, NULL, spill_offset, | 4673 kStackUnwindSpace, NULL, spill_offset, |
4680 return_value_operand, NULL); | 4674 return_value_operand, NULL); |
4681 } | 4675 } |
4682 | 4676 |
4683 #undef __ | 4677 #undef __ |
4684 | 4678 |
4685 } // namespace internal | 4679 } // namespace internal |
4686 } // namespace v8 | 4680 } // namespace v8 |
4687 | 4681 |
4688 #endif // V8_TARGET_ARCH_ARM64 | 4682 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |