| 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 25 matching lines...) Expand all Loading... |
| 36 if (constant_stack_parameter_count == 0) { | 36 if (constant_stack_parameter_count == 0) { |
| 37 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, | 37 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, |
| 38 JS_FUNCTION_STUB_MODE); | 38 JS_FUNCTION_STUB_MODE); |
| 39 } else { | 39 } else { |
| 40 descriptor->Initialize(x0, deopt_handler, constant_stack_parameter_count, | 40 descriptor->Initialize(x0, deopt_handler, constant_stack_parameter_count, |
| 41 JS_FUNCTION_STUB_MODE); | 41 JS_FUNCTION_STUB_MODE); |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 | 45 |
| 46 void ArraySingleArgumentConstructorStub::InitializeDescriptor( | |
| 47 CodeStubDescriptor* descriptor) { | |
| 48 InitializeArrayConstructorDescriptor(isolate(), descriptor, 1); | |
| 49 } | |
| 50 | |
| 51 | |
| 52 void ArrayNArgumentsConstructorStub::InitializeDescriptor( | 46 void ArrayNArgumentsConstructorStub::InitializeDescriptor( |
| 53 CodeStubDescriptor* descriptor) { | 47 CodeStubDescriptor* descriptor) { |
| 54 InitializeArrayConstructorDescriptor(isolate(), descriptor, -1); | 48 InitializeArrayConstructorDescriptor(isolate(), descriptor, -1); |
| 55 } | 49 } |
| 56 | 50 |
| 57 | 51 |
| 58 static void InitializeInternalArrayConstructorDescriptor( | 52 static void InitializeInternalArrayConstructorDescriptor( |
| 59 Isolate* isolate, CodeStubDescriptor* descriptor, | 53 Isolate* isolate, CodeStubDescriptor* descriptor, |
| 60 int constant_stack_parameter_count) { | 54 int constant_stack_parameter_count) { |
| 61 Address deopt_handler = Runtime::FunctionForId( | 55 Address deopt_handler = Runtime::FunctionForId( |
| 62 Runtime::kInternalArrayConstructor)->entry; | 56 Runtime::kInternalArrayConstructor)->entry; |
| 63 | 57 |
| 64 if (constant_stack_parameter_count == 0) { | 58 if (constant_stack_parameter_count == 0) { |
| 65 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, | 59 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, |
| 66 JS_FUNCTION_STUB_MODE); | 60 JS_FUNCTION_STUB_MODE); |
| 67 } else { | 61 } else { |
| 68 descriptor->Initialize(x0, deopt_handler, constant_stack_parameter_count, | 62 descriptor->Initialize(x0, deopt_handler, constant_stack_parameter_count, |
| 69 JS_FUNCTION_STUB_MODE); | 63 JS_FUNCTION_STUB_MODE); |
| 70 } | 64 } |
| 71 } | 65 } |
| 72 | 66 |
| 73 | 67 |
| 74 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 68 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 75 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry; | 69 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry; |
| 76 descriptor->Initialize(x0, deopt_handler, -1, JS_FUNCTION_STUB_MODE); | 70 descriptor->Initialize(x0, deopt_handler, -1, JS_FUNCTION_STUB_MODE); |
| 77 } | 71 } |
| 78 | 72 |
| 79 void InternalArraySingleArgumentConstructorStub::InitializeDescriptor( | |
| 80 CodeStubDescriptor* descriptor) { | |
| 81 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 1); | |
| 82 } | |
| 83 | |
| 84 | |
| 85 void InternalArrayNArgumentsConstructorStub::InitializeDescriptor( | 73 void InternalArrayNArgumentsConstructorStub::InitializeDescriptor( |
| 86 CodeStubDescriptor* descriptor) { | 74 CodeStubDescriptor* descriptor) { |
| 87 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1); | 75 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1); |
| 88 } | 76 } |
| 89 | 77 |
| 90 | 78 |
| 91 #define __ ACCESS_MASM(masm) | 79 #define __ ACCESS_MASM(masm) |
| 92 | 80 |
| 93 | 81 |
| 94 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, | 82 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, |
| (...skipping 5737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5832 kStackUnwindSpace, NULL, spill_offset, | 5820 kStackUnwindSpace, NULL, spill_offset, |
| 5833 return_value_operand, NULL); | 5821 return_value_operand, NULL); |
| 5834 } | 5822 } |
| 5835 | 5823 |
| 5836 #undef __ | 5824 #undef __ |
| 5837 | 5825 |
| 5838 } // namespace internal | 5826 } // namespace internal |
| 5839 } // namespace v8 | 5827 } // namespace v8 |
| 5840 | 5828 |
| 5841 #endif // V8_TARGET_ARCH_ARM64 | 5829 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |