| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 #include "bootstrapper.h" | 9 #include "bootstrapper.h" |
| 10 #include "code-stubs.h" | 10 #include "code-stubs.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( | 299 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( |
| 300 CodeStubInterfaceDescriptor* descriptor) { | 300 CodeStubInterfaceDescriptor* descriptor) { |
| 301 static Register registers[] = { a0, a3, a1, a2 }; | 301 static Register registers[] = { a0, a3, a1, a2 }; |
| 302 descriptor->register_param_count_ = 4; | 302 descriptor->register_param_count_ = 4; |
| 303 descriptor->register_params_ = registers; | 303 descriptor->register_params_ = registers; |
| 304 descriptor->deoptimization_handler_ = | 304 descriptor->deoptimization_handler_ = |
| 305 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); | 305 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); |
| 306 } | 306 } |
| 307 | 307 |
| 308 | 308 |
| 309 void ArrayShiftStub::InitializeInterfaceDescriptor( |
| 310 CodeStubInterfaceDescriptor* descriptor) { |
| 311 static Register registers[] = { a0 }; |
| 312 descriptor->register_param_count_ = 1; |
| 313 descriptor->register_params_ = registers; |
| 314 descriptor->deoptimization_handler_ = |
| 315 Builtins::c_function_address(Builtins::c_ArrayShift); |
| 316 } |
| 317 |
| 318 |
| 309 void BinaryOpICStub::InitializeInterfaceDescriptor( | 319 void BinaryOpICStub::InitializeInterfaceDescriptor( |
| 310 CodeStubInterfaceDescriptor* descriptor) { | 320 CodeStubInterfaceDescriptor* descriptor) { |
| 311 static Register registers[] = { a1, a0 }; | 321 static Register registers[] = { a1, a0 }; |
| 312 descriptor->register_param_count_ = 2; | 322 descriptor->register_param_count_ = 2; |
| 313 descriptor->register_params_ = registers; | 323 descriptor->register_params_ = registers; |
| 314 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss); | 324 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss); |
| 315 descriptor->SetMissHandler( | 325 descriptor->SetMissHandler( |
| 316 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); | 326 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); |
| 317 } | 327 } |
| 318 | 328 |
| (...skipping 5102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5421 MemOperand(fp, 6 * kPointerSize), | 5431 MemOperand(fp, 6 * kPointerSize), |
| 5422 NULL); | 5432 NULL); |
| 5423 } | 5433 } |
| 5424 | 5434 |
| 5425 | 5435 |
| 5426 #undef __ | 5436 #undef __ |
| 5427 | 5437 |
| 5428 } } // namespace v8::internal | 5438 } } // namespace v8::internal |
| 5429 | 5439 |
| 5430 #endif // V8_TARGET_ARCH_MIPS | 5440 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |