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 // Note on Mips implementation: | 7 // Note on Mips implementation: |
8 // | 8 // |
9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
(...skipping 3428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3439 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 3439 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
3440 __ LoadRoot(t0, Heap::kTrueValueRootIndex); | 3440 __ LoadRoot(t0, Heap::kTrueValueRootIndex); |
3441 Split(eq, v0, Operand(t0), if_true, if_false, fall_through); | 3441 Split(eq, v0, Operand(t0), if_true, if_false, fall_through); |
3442 break; | 3442 break; |
3443 | 3443 |
3444 case Token::INSTANCEOF: { | 3444 case Token::INSTANCEOF: { |
3445 VisitForAccumulatorValue(expr->right()); | 3445 VisitForAccumulatorValue(expr->right()); |
3446 SetExpressionPosition(expr); | 3446 SetExpressionPosition(expr); |
3447 __ mov(a0, result_register()); | 3447 __ mov(a0, result_register()); |
3448 PopOperand(a1); | 3448 PopOperand(a1); |
3449 __ EmitLoadTypeFeedbackVector(a3); | 3449 InstanceOfStub stub(isolate()); |
3450 __ li(t0, Operand(SlotToIndex(expr->CompareOperationFeedbackSlot()))); | |
3451 InstanceOfWithFeedbackStub stub(isolate()); | |
3452 __ CallStub(&stub); | 3450 __ CallStub(&stub); |
3453 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 3451 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
3454 __ LoadRoot(at, Heap::kTrueValueRootIndex); | 3452 __ LoadRoot(at, Heap::kTrueValueRootIndex); |
3455 Split(eq, v0, Operand(at), if_true, if_false, fall_through); | 3453 Split(eq, v0, Operand(at), if_true, if_false, fall_through); |
3456 break; | 3454 break; |
3457 } | 3455 } |
3458 | 3456 |
3459 default: { | 3457 default: { |
3460 VisitForAccumulatorValue(expr->right()); | 3458 VisitForAccumulatorValue(expr->right()); |
3461 SetExpressionPosition(expr); | 3459 SetExpressionPosition(expr); |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3697 reinterpret_cast<uint32_t>( | 3695 reinterpret_cast<uint32_t>( |
3698 isolate->builtins()->OnStackReplacement()->entry())); | 3696 isolate->builtins()->OnStackReplacement()->entry())); |
3699 return ON_STACK_REPLACEMENT; | 3697 return ON_STACK_REPLACEMENT; |
3700 } | 3698 } |
3701 | 3699 |
3702 | 3700 |
3703 } // namespace internal | 3701 } // namespace internal |
3704 } // namespace v8 | 3702 } // namespace v8 |
3705 | 3703 |
3706 #endif // V8_TARGET_ARCH_MIPS | 3704 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |