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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 CodeStubInterfaceDescriptor* descriptor) { | 94 CodeStubInterfaceDescriptor* descriptor) { |
95 // x2: feedback vector | 95 // x2: feedback vector |
96 // x3: call feedback slot | 96 // x3: call feedback slot |
97 static Register registers[] = { x2, x3 }; | 97 static Register registers[] = { x2, x3 }; |
98 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); | 98 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); |
99 descriptor->register_params_ = registers; | 99 descriptor->register_params_ = registers; |
100 descriptor->deoptimization_handler_ = NULL; | 100 descriptor->deoptimization_handler_ = NULL; |
101 } | 101 } |
102 | 102 |
103 | 103 |
| 104 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor( |
| 105 CodeStubInterfaceDescriptor* descriptor) { |
| 106 static Register registers[] = { x1, x0 }; |
| 107 descriptor->register_param_count_ = 2; |
| 108 descriptor->register_params_ = registers; |
| 109 descriptor->deoptimization_handler_ = |
| 110 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry; |
| 111 } |
| 112 |
| 113 |
| 114 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( |
| 115 CodeStubInterfaceDescriptor* descriptor) { |
| 116 // x1: receiver |
| 117 // x0: key |
| 118 static Register registers[] = { x1, x0 }; |
| 119 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); |
| 120 descriptor->register_params_ = registers; |
| 121 descriptor->deoptimization_handler_ = |
| 122 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); |
| 123 } |
| 124 |
| 125 |
| 126 void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor( |
| 127 CodeStubInterfaceDescriptor* descriptor) { |
| 128 // x1: receiver |
| 129 // x0: key |
| 130 static Register registers[] = { x1, x0 }; |
| 131 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); |
| 132 descriptor->register_params_ = registers; |
| 133 descriptor->deoptimization_handler_ = |
| 134 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); |
| 135 } |
| 136 |
| 137 |
104 void RegExpConstructResultStub::InitializeInterfaceDescriptor( | 138 void RegExpConstructResultStub::InitializeInterfaceDescriptor( |
105 CodeStubInterfaceDescriptor* descriptor) { | 139 CodeStubInterfaceDescriptor* descriptor) { |
106 // x2: length | 140 // x2: length |
107 // x1: index (of last match) | 141 // x1: index (of last match) |
108 // x0: string | 142 // x0: string |
109 static Register registers[] = { x2, x1, x0 }; | 143 static Register registers[] = { x2, x1, x0 }; |
110 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); | 144 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); |
111 descriptor->register_params_ = registers; | 145 descriptor->register_params_ = registers; |
112 descriptor->deoptimization_handler_ = | 146 descriptor->deoptimization_handler_ = |
113 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; | 147 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; |
(...skipping 5398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5512 MemOperand(fp, 6 * kPointerSize), | 5546 MemOperand(fp, 6 * kPointerSize), |
5513 NULL); | 5547 NULL); |
5514 } | 5548 } |
5515 | 5549 |
5516 | 5550 |
5517 #undef __ | 5551 #undef __ |
5518 | 5552 |
5519 } } // namespace v8::internal | 5553 } } // namespace v8::internal |
5520 | 5554 |
5521 #endif // V8_TARGET_ARCH_ARM64 | 5555 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |