| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 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 cp; } | 14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } |
| 15 | 15 |
| 16 | 16 |
| 17 void CallDescriptors::InitializeForIsolate(Isolate* isolate) { | 17 void CallDescriptors::InitializeForIsolate(Isolate* isolate) { |
| 18 { | 18 { |
| 19 CallInterfaceDescriptor* descriptor = | 19 CallInterfaceDescriptor* descriptor = |
| 20 isolate->call_descriptor(CallDescriptorKey::ArgumentAdaptorCall); | 20 isolate->call_descriptor(CallDescriptorKey::ArgumentAdaptorCall); |
| 21 Register registers[] = { cp, // context | 21 Register registers[] = { cp, // context |
| 22 a1, // JSFunction | 22 a1, // JSFunction |
| 23 a0, // actual number of arguments | 23 a0, // actual number of arguments |
| 24 a2, // expected number of arguments | 24 a2, // expected number of arguments |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 Representation::Tagged(), // holder | 83 Representation::Tagged(), // holder |
| 84 Representation::External(), // api_function_address | 84 Representation::External(), // api_function_address |
| 85 }; | 85 }; |
| 86 descriptor->Initialize(arraysize(registers), registers, representations); | 86 descriptor->Initialize(arraysize(registers), registers, representations); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 } | 89 } |
| 90 } // namespace v8::internal | 90 } // namespace v8::internal |
| 91 | 91 |
| 92 #endif // V8_TARGET_ARCH_MIPS64 | 92 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |