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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 const Register InterfaceDescriptor::ContextRegister() { return rsi; } | 14 const Register CallInterfaceDescriptor::ContextRegister() { return rsi; } |
15 | 15 |
16 | 16 |
17 void CallDescriptors::InitializeForIsolate(Isolate* isolate) { | 17 void CallDescriptors::InitializeForIsolate(Isolate* isolate) { |
18 InitializeForIsolateAllPlatforms(isolate); | 18 InitializeForIsolateAllPlatforms(isolate); |
19 | 19 |
20 { | 20 { |
21 CallInterfaceDescriptor* descriptor = | 21 CallInterfaceDescriptor* descriptor = |
22 isolate->call_descriptor(CallDescriptorKey::FastNewClosureCall); | 22 isolate->call_descriptor(CallDescriptorKey::FastNewClosureCall); |
23 Register registers[] = {rsi, rbx}; | 23 Register registers[] = {rsi, rbx}; |
24 descriptor->Initialize(arraysize(registers), registers, NULL); | 24 descriptor->Initialize(arraysize(registers), registers, NULL); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 Representation::Tagged(), // holder | 238 Representation::Tagged(), // holder |
239 Representation::External(), // api_function_address | 239 Representation::External(), // api_function_address |
240 }; | 240 }; |
241 descriptor->Initialize(arraysize(registers), registers, representations); | 241 descriptor->Initialize(arraysize(registers), registers, representations); |
242 } | 242 } |
243 } | 243 } |
244 } | 244 } |
245 } // namespace v8::internal | 245 } // namespace v8::internal |
246 | 246 |
247 #endif // V8_TARGET_ARCH_X64 | 247 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |