| 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 | 149 |
| 150 void CallTrampolineDescriptor::InitializePlatformSpecific( | 150 void CallTrampolineDescriptor::InitializePlatformSpecific( |
| 151 CallInterfaceDescriptorData* data) { | 151 CallInterfaceDescriptorData* data) { |
| 152 // a1: target | 152 // a1: target |
| 153 // a0: number of arguments | 153 // a0: number of arguments |
| 154 Register registers[] = {a1, a0}; | 154 Register registers[] = {a1, a0}; |
| 155 data->InitializePlatformSpecific(arraysize(registers), registers); | 155 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 156 } | 156 } |
| 157 | 157 |
| 158 void CallVarargsDescriptor::InitializePlatformSpecific( |
| 159 CallInterfaceDescriptorData* data) { |
| 160 // a0 : number of arguments (on the stack, not including receiver) |
| 161 // a1 : the target to call |
| 162 // a2 : arguments list (FixedArray) |
| 163 // a4 : arguments list length (untagged) |
| 164 Register registers[] = {a1, a0, a2, a4}; |
| 165 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 166 } |
| 167 |
| 158 void CallForwardVarargsDescriptor::InitializePlatformSpecific( | 168 void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
| 159 CallInterfaceDescriptorData* data) { | 169 CallInterfaceDescriptorData* data) { |
| 160 // a1: the target to call | 170 // a1: the target to call |
| 161 // a0: number of arguments | 171 // a0: number of arguments |
| 162 // a2: start index (to support rest parameters) | 172 // a2: start index (to support rest parameters) |
| 163 Register registers[] = {a1, a0, a2}; | 173 Register registers[] = {a1, a0, a2}; |
| 164 data->InitializePlatformSpecific(arraysize(registers), registers); | 174 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 165 } | 175 } |
| 166 | 176 |
| 177 void CallWithArrayLikeDescriptor::InitializePlatformSpecific( |
| 178 CallInterfaceDescriptorData* data) { |
| 179 // a1 : the target to call |
| 180 // a2 : the arguments list |
| 181 Register registers[] = {a1, a2}; |
| 182 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 183 } |
| 184 |
| 185 void ConstructVarargsDescriptor::InitializePlatformSpecific( |
| 186 CallInterfaceDescriptorData* data) { |
| 187 // a0 : number of arguments (on the stack, not including receiver) |
| 188 // a1 : the target to call |
| 189 // a3 : the new target |
| 190 // a2 : arguments list (FixedArray) |
| 191 // a4 : arguments list length (untagged) |
| 192 Register registers[] = {a1, a3, a0, a2, a4}; |
| 193 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 194 } |
| 195 |
| 167 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( | 196 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
| 168 CallInterfaceDescriptorData* data) { | 197 CallInterfaceDescriptorData* data) { |
| 169 // a1: the target to call | 198 // a1: the target to call |
| 170 // a3: new target | 199 // a3: new target |
| 171 // a0: number of arguments | 200 // a0: number of arguments |
| 172 // a2: start index (to support rest parameters) | 201 // a2: start index (to support rest parameters) |
| 173 Register registers[] = {a1, a3, a0, a2}; | 202 Register registers[] = {a1, a3, a0, a2}; |
| 174 data->InitializePlatformSpecific(arraysize(registers), registers); | 203 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 175 } | 204 } |
| 176 | 205 |
| 206 void ConstructWithArrayLikeDescriptor::InitializePlatformSpecific( |
| 207 CallInterfaceDescriptorData* data) { |
| 208 // a1 : the target to call |
| 209 // a3 : the new target |
| 210 // a2 : the arguments list |
| 211 Register registers[] = {a1, a3, a2}; |
| 212 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 213 } |
| 214 |
| 177 void ConstructStubDescriptor::InitializePlatformSpecific( | 215 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 178 CallInterfaceDescriptorData* data) { | 216 CallInterfaceDescriptorData* data) { |
| 179 // a1: target | 217 // a1: target |
| 180 // a3: new target | 218 // a3: new target |
| 181 // a0: number of arguments | 219 // a0: number of arguments |
| 182 // a2: allocation site or undefined | 220 // a2: allocation site or undefined |
| 183 Register registers[] = {a1, a3, a0, a2}; | 221 Register registers[] = {a1, a3, a0, a2}; |
| 184 data->InitializePlatformSpecific(arraysize(registers), registers); | 222 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 185 } | 223 } |
| 186 | 224 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 Register registers[] = { | 418 Register registers[] = { |
| 381 a1, // loaded new FP | 419 a1, // loaded new FP |
| 382 }; | 420 }; |
| 383 data->InitializePlatformSpecific(arraysize(registers), registers); | 421 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 384 } | 422 } |
| 385 | 423 |
| 386 } // namespace internal | 424 } // namespace internal |
| 387 } // namespace v8 | 425 } // namespace v8 |
| 388 | 426 |
| 389 #endif // V8_TARGET_ARCH_MIPS64 | 427 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |