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 // 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(a4, Heap::kTrueValueRootIndex); | 3440 __ LoadRoot(a4, Heap::kTrueValueRootIndex); |
3441 Split(eq, v0, Operand(a4), if_true, if_false, fall_through); | 3441 Split(eq, v0, Operand(a4), 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(a4, 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(a4, Heap::kTrueValueRootIndex); | 3452 __ LoadRoot(a4, Heap::kTrueValueRootIndex); |
3455 Split(eq, v0, Operand(a4), if_true, if_false, fall_through); | 3453 Split(eq, v0, Operand(a4), 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3704 reinterpret_cast<uint64_t>( | 3702 reinterpret_cast<uint64_t>( |
3705 isolate->builtins()->OnStackReplacement()->entry())); | 3703 isolate->builtins()->OnStackReplacement()->entry())); |
3706 return ON_STACK_REPLACEMENT; | 3704 return ON_STACK_REPLACEMENT; |
3707 } | 3705 } |
3708 | 3706 |
3709 | 3707 |
3710 } // namespace internal | 3708 } // namespace internal |
3711 } // namespace v8 | 3709 } // namespace v8 |
3712 | 3710 |
3713 #endif // V8_TARGET_ARCH_MIPS64 | 3711 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |