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( | 104 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( |
115 CodeStubInterfaceDescriptor* descriptor) { | 105 CodeStubInterfaceDescriptor* descriptor) { |
116 // x1: receiver | 106 // x1: receiver |
117 // x0: key | 107 // x0: key |
118 static Register registers[] = { x1, x0 }; | 108 static Register registers[] = { x1, x0 }; |
119 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); | 109 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); |
120 descriptor->register_params_ = registers; | 110 descriptor->register_params_ = registers; |
121 descriptor->deoptimization_handler_ = | 111 descriptor->deoptimization_handler_ = |
122 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | 112 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); |
123 } | 113 } |
(...skipping 5422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5546 MemOperand(fp, 6 * kPointerSize), | 5536 MemOperand(fp, 6 * kPointerSize), |
5547 NULL); | 5537 NULL); |
5548 } | 5538 } |
5549 | 5539 |
5550 | 5540 |
5551 #undef __ | 5541 #undef __ |
5552 | 5542 |
5553 } } // namespace v8::internal | 5543 } } // namespace v8::internal |
5554 | 5544 |
5555 #endif // V8_TARGET_ARCH_ARM64 | 5545 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |