OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM | 7 #if V8_TARGET_ARCH_ARM |
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 void RegExpConstructResultStub::InitializeInterfaceDescriptor( | 81 void RegExpConstructResultStub::InitializeInterfaceDescriptor( |
82 CodeStubInterfaceDescriptor* descriptor) { | 82 CodeStubInterfaceDescriptor* descriptor) { |
83 Register registers[] = { r2, r1, r0 }; | 83 Register registers[] = { r2, r1, r0 }; |
84 descriptor->Initialize( | 84 descriptor->Initialize( |
85 ARRAY_SIZE(registers), registers, | 85 ARRAY_SIZE(registers), registers, |
86 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry); | 86 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry); |
87 } | 87 } |
88 | 88 |
89 | 89 |
90 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( | |
91 CodeStubInterfaceDescriptor* descriptor) { | |
92 Register registers[] = { r2, r1, r0 }; | |
93 descriptor->Initialize( | |
94 ARRAY_SIZE(registers), registers, | |
95 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); | |
96 } | |
97 | |
98 | |
99 void TransitionElementsKindStub::InitializeInterfaceDescriptor( | 90 void TransitionElementsKindStub::InitializeInterfaceDescriptor( |
100 CodeStubInterfaceDescriptor* descriptor) { | 91 CodeStubInterfaceDescriptor* descriptor) { |
101 Register registers[] = { r0, r1 }; | 92 Register registers[] = { r0, r1 }; |
102 Address entry = | 93 Address entry = |
103 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; | 94 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; |
104 descriptor->Initialize(ARRAY_SIZE(registers), registers, | 95 descriptor->Initialize(ARRAY_SIZE(registers), registers, |
105 FUNCTION_ADDR(entry)); | 96 FUNCTION_ADDR(entry)); |
106 } | 97 } |
107 | 98 |
108 | 99 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 InitializeInternalArrayConstructorDescriptor(descriptor, 1); | 214 InitializeInternalArrayConstructorDescriptor(descriptor, 1); |
224 } | 215 } |
225 | 216 |
226 | 217 |
227 void InternalArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor( | 218 void InternalArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor( |
228 CodeStubInterfaceDescriptor* descriptor) { | 219 CodeStubInterfaceDescriptor* descriptor) { |
229 InitializeInternalArrayConstructorDescriptor(descriptor, -1); | 220 InitializeInternalArrayConstructorDescriptor(descriptor, -1); |
230 } | 221 } |
231 | 222 |
232 | 223 |
233 void StoreGlobalStub::InitializeInterfaceDescriptor( | |
234 CodeStubInterfaceDescriptor* descriptor) { | |
235 Register registers[] = { r1, r2, r0 }; | |
236 descriptor->Initialize(ARRAY_SIZE(registers), registers, | |
237 FUNCTION_ADDR(StoreIC_MissFromStubFailure)); | |
238 } | |
239 | |
240 | |
241 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( | 224 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( |
242 CodeStubInterfaceDescriptor* descriptor) { | 225 CodeStubInterfaceDescriptor* descriptor) { |
243 Register registers[] = { r0, r3, r1, r2 }; | 226 Register registers[] = { r0, r3, r1, r2 }; |
244 descriptor->Initialize(ARRAY_SIZE(registers), registers, | 227 descriptor->Initialize(ARRAY_SIZE(registers), registers, |
245 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss)); | 228 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss)); |
246 } | 229 } |
247 | 230 |
248 | 231 |
249 void BinaryOpICStub::InitializeInterfaceDescriptor( | 232 void BinaryOpICStub::InitializeInterfaceDescriptor( |
250 CodeStubInterfaceDescriptor* descriptor) { | 233 CodeStubInterfaceDescriptor* descriptor) { |
(...skipping 4829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5080 MemOperand(fp, 6 * kPointerSize), | 5063 MemOperand(fp, 6 * kPointerSize), |
5081 NULL); | 5064 NULL); |
5082 } | 5065 } |
5083 | 5066 |
5084 | 5067 |
5085 #undef __ | 5068 #undef __ |
5086 | 5069 |
5087 } } // namespace v8::internal | 5070 } } // namespace v8::internal |
5088 | 5071 |
5089 #endif // V8_TARGET_ARCH_ARM | 5072 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |