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 2668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2679 __ LoadRoot(a4, Heap::kTrueValueRootIndex); | 2679 __ LoadRoot(a4, Heap::kTrueValueRootIndex); |
2680 Split(eq, v0, Operand(a4), if_true, if_false, fall_through); | 2680 Split(eq, v0, Operand(a4), if_true, if_false, fall_through); |
2681 break; | 2681 break; |
2682 | 2682 |
2683 case Token::INSTANCEOF: { | 2683 case Token::INSTANCEOF: { |
2684 VisitForAccumulatorValue(expr->right()); | 2684 VisitForAccumulatorValue(expr->right()); |
2685 SetExpressionPosition(expr); | 2685 SetExpressionPosition(expr); |
2686 __ mov(a0, result_register()); | 2686 __ mov(a0, result_register()); |
2687 PopOperand(a1); | 2687 PopOperand(a1); |
2688 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); | 2688 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); |
| 2689 RestoreContext(); |
2689 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2690 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2690 __ LoadRoot(a4, Heap::kTrueValueRootIndex); | 2691 __ LoadRoot(a4, Heap::kTrueValueRootIndex); |
2691 Split(eq, v0, Operand(a4), if_true, if_false, fall_through); | 2692 Split(eq, v0, Operand(a4), if_true, if_false, fall_through); |
2692 break; | 2693 break; |
2693 } | 2694 } |
2694 | 2695 |
2695 default: { | 2696 default: { |
2696 VisitForAccumulatorValue(expr->right()); | 2697 VisitForAccumulatorValue(expr->right()); |
2697 SetExpressionPosition(expr); | 2698 SetExpressionPosition(expr); |
2698 Condition cc = CompareIC::ComputeCondition(op); | 2699 Condition cc = CompareIC::ComputeCondition(op); |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2877 reinterpret_cast<uint64_t>( | 2878 reinterpret_cast<uint64_t>( |
2878 isolate->builtins()->OnStackReplacement()->entry())); | 2879 isolate->builtins()->OnStackReplacement()->entry())); |
2879 return ON_STACK_REPLACEMENT; | 2880 return ON_STACK_REPLACEMENT; |
2880 } | 2881 } |
2881 | 2882 |
2882 | 2883 |
2883 } // namespace internal | 2884 } // namespace internal |
2884 } // namespace v8 | 2885 } // namespace v8 |
2885 | 2886 |
2886 #endif // V8_TARGET_ARCH_MIPS64 | 2887 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |