| 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 2667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2678 __ LoadRoot(t0, Heap::kTrueValueRootIndex); | 2678 __ LoadRoot(t0, Heap::kTrueValueRootIndex); |
| 2679 Split(eq, v0, Operand(t0), if_true, if_false, fall_through); | 2679 Split(eq, v0, Operand(t0), if_true, if_false, fall_through); |
| 2680 break; | 2680 break; |
| 2681 | 2681 |
| 2682 case Token::INSTANCEOF: { | 2682 case Token::INSTANCEOF: { |
| 2683 VisitForAccumulatorValue(expr->right()); | 2683 VisitForAccumulatorValue(expr->right()); |
| 2684 SetExpressionPosition(expr); | 2684 SetExpressionPosition(expr); |
| 2685 __ mov(a0, result_register()); | 2685 __ mov(a0, result_register()); |
| 2686 PopOperand(a1); | 2686 PopOperand(a1); |
| 2687 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); | 2687 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); |
| 2688 RestoreContext(); |
| 2688 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2689 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
| 2689 __ LoadRoot(at, Heap::kTrueValueRootIndex); | 2690 __ LoadRoot(at, Heap::kTrueValueRootIndex); |
| 2690 Split(eq, v0, Operand(at), if_true, if_false, fall_through); | 2691 Split(eq, v0, Operand(at), if_true, if_false, fall_through); |
| 2691 break; | 2692 break; |
| 2692 } | 2693 } |
| 2693 | 2694 |
| 2694 default: { | 2695 default: { |
| 2695 VisitForAccumulatorValue(expr->right()); | 2696 VisitForAccumulatorValue(expr->right()); |
| 2696 SetExpressionPosition(expr); | 2697 SetExpressionPosition(expr); |
| 2697 Condition cc = CompareIC::ComputeCondition(op); | 2698 Condition cc = CompareIC::ComputeCondition(op); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2868 reinterpret_cast<uint32_t>( | 2869 reinterpret_cast<uint32_t>( |
| 2869 isolate->builtins()->OnStackReplacement()->entry())); | 2870 isolate->builtins()->OnStackReplacement()->entry())); |
| 2870 return ON_STACK_REPLACEMENT; | 2871 return ON_STACK_REPLACEMENT; |
| 2871 } | 2872 } |
| 2872 | 2873 |
| 2873 | 2874 |
| 2874 } // namespace internal | 2875 } // namespace internal |
| 2875 } // namespace v8 | 2876 } // namespace v8 |
| 2876 | 2877 |
| 2877 #endif // V8_TARGET_ARCH_MIPS | 2878 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |