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/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 __ lw(v0, FieldMemOperand( | 1416 __ lw(v0, FieldMemOperand( |
1417 a0, JSDate::kValueOffset + | 1417 a0, JSDate::kValueOffset + |
1418 field_index * kPointerSize)); // In delay slot. | 1418 field_index * kPointerSize)); // In delay slot. |
1419 __ bind(&stamp_mismatch); | 1419 __ bind(&stamp_mismatch); |
1420 } | 1420 } |
1421 FrameScope scope(masm, StackFrame::INTERNAL); | 1421 FrameScope scope(masm, StackFrame::INTERNAL); |
1422 __ PrepareCallCFunction(2, t0); | 1422 __ PrepareCallCFunction(2, t0); |
1423 __ li(a1, Operand(Smi::FromInt(field_index))); | 1423 __ li(a1, Operand(Smi::FromInt(field_index))); |
1424 __ CallCFunction( | 1424 __ CallCFunction( |
1425 ExternalReference::get_date_field_function(masm->isolate()), 2); | 1425 ExternalReference::get_date_field_function(masm->isolate()), 2); |
1426 __ Ret(); | |
1427 } | 1426 } |
| 1427 __ Ret(); |
1428 | 1428 |
1429 // 3. Raise a TypeError if the receiver is not a date. | 1429 // 3. Raise a TypeError if the receiver is not a date. |
1430 __ bind(&receiver_not_date); | 1430 __ bind(&receiver_not_date); |
1431 __ TailCallRuntime(Runtime::kThrowNotDateError); | 1431 __ TailCallRuntime(Runtime::kThrowNotDateError); |
1432 } | 1432 } |
1433 | 1433 |
1434 | 1434 |
1435 // static | 1435 // static |
1436 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { | 1436 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { |
1437 // ----------- S t a t e ------------- | 1437 // ----------- S t a t e ------------- |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2466 } | 2466 } |
2467 } | 2467 } |
2468 | 2468 |
2469 | 2469 |
2470 #undef __ | 2470 #undef __ |
2471 | 2471 |
2472 } // namespace internal | 2472 } // namespace internal |
2473 } // namespace v8 | 2473 } // namespace v8 |
2474 | 2474 |
2475 #endif // V8_TARGET_ARCH_MIPS | 2475 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |