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 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
6 | 6 |
7 #include "src/interface-descriptors.h" | 7 #include "src/interface-descriptors.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 CallInterfaceDescriptorData* data) { | 149 CallInterfaceDescriptorData* data) { |
150 // a1: target | 150 // a1: target |
151 // a0: number of arguments | 151 // a0: number of arguments |
152 Register registers[] = {a1, a0}; | 152 Register registers[] = {a1, a0}; |
153 data->InitializePlatformSpecific(arraysize(registers), registers); | 153 data->InitializePlatformSpecific(arraysize(registers), registers); |
154 } | 154 } |
155 | 155 |
156 void CallForwardVarargsDescriptor::InitializePlatformSpecific( | 156 void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
157 CallInterfaceDescriptorData* data) { | 157 CallInterfaceDescriptorData* data) { |
158 // a1: the target to call | 158 // a1: the target to call |
| 159 // a0: number of arguments |
159 // a2: start index (to support rest parameters) | 160 // a2: start index (to support rest parameters) |
160 Register registers[] = {a1, a2}; | 161 Register registers[] = {a1, a0, a2}; |
161 data->InitializePlatformSpecific(arraysize(registers), registers); | 162 data->InitializePlatformSpecific(arraysize(registers), registers); |
162 } | 163 } |
163 | 164 |
| 165 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
| 166 CallInterfaceDescriptorData* data) { |
| 167 // a1: the target to call |
| 168 // a3: new target |
| 169 // a0: number of arguments |
| 170 // a2: start index (to support rest parameters) |
| 171 Register registers[] = {a1, a3, a0, a2}; |
| 172 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 173 } |
| 174 |
164 void ConstructStubDescriptor::InitializePlatformSpecific( | 175 void ConstructStubDescriptor::InitializePlatformSpecific( |
165 CallInterfaceDescriptorData* data) { | 176 CallInterfaceDescriptorData* data) { |
166 // a1: target | 177 // a1: target |
167 // a3: new target | 178 // a3: new target |
168 // a0: number of arguments | 179 // a0: number of arguments |
169 // a2: allocation site or undefined | 180 // a2: allocation site or undefined |
170 Register registers[] = {a1, a3, a0, a2}; | 181 Register registers[] = {a1, a3, a0, a2}; |
171 data->InitializePlatformSpecific(arraysize(registers), registers); | 182 data->InitializePlatformSpecific(arraysize(registers), registers); |
172 } | 183 } |
173 | 184 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 Register registers[] = { | 379 Register registers[] = { |
369 a1, // loaded new FP | 380 a1, // loaded new FP |
370 }; | 381 }; |
371 data->InitializePlatformSpecific(arraysize(registers), registers); | 382 data->InitializePlatformSpecific(arraysize(registers), registers); |
372 } | 383 } |
373 | 384 |
374 } // namespace internal | 385 } // namespace internal |
375 } // namespace v8 | 386 } // namespace v8 |
376 | 387 |
377 #endif // V8_TARGET_ARCH_MIPS | 388 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |