OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/ast/compile-time-value.h" | 7 #include "src/ast/compile-time-value.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/builtins/builtins-constructor.h" | 9 #include "src/builtins/builtins-constructor.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2664 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2664 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2665 __ CompareRoot(r3, Heap::kTrueValueRootIndex); | 2665 __ CompareRoot(r3, Heap::kTrueValueRootIndex); |
2666 Split(eq, if_true, if_false, fall_through); | 2666 Split(eq, if_true, if_false, fall_through); |
2667 break; | 2667 break; |
2668 | 2668 |
2669 case Token::INSTANCEOF: { | 2669 case Token::INSTANCEOF: { |
2670 VisitForAccumulatorValue(expr->right()); | 2670 VisitForAccumulatorValue(expr->right()); |
2671 SetExpressionPosition(expr); | 2671 SetExpressionPosition(expr); |
2672 PopOperand(r4); | 2672 PopOperand(r4); |
2673 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); | 2673 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); |
| 2674 RestoreContext(); |
2674 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2675 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2675 __ CompareRoot(r3, Heap::kTrueValueRootIndex); | 2676 __ CompareRoot(r3, Heap::kTrueValueRootIndex); |
2676 Split(eq, if_true, if_false, fall_through); | 2677 Split(eq, if_true, if_false, fall_through); |
2677 break; | 2678 break; |
2678 } | 2679 } |
2679 | 2680 |
2680 default: { | 2681 default: { |
2681 VisitForAccumulatorValue(expr->right()); | 2682 VisitForAccumulatorValue(expr->right()); |
2682 SetExpressionPosition(expr); | 2683 SetExpressionPosition(expr); |
2683 Condition cond = CompareIC::ComputeCondition(op); | 2684 Condition cond = CompareIC::ComputeCondition(op); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2846 | 2847 |
2847 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 2848 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
2848 | 2849 |
2849 DCHECK(interrupt_address == | 2850 DCHECK(interrupt_address == |
2850 isolate->builtins()->OnStackReplacement()->entry()); | 2851 isolate->builtins()->OnStackReplacement()->entry()); |
2851 return ON_STACK_REPLACEMENT; | 2852 return ON_STACK_REPLACEMENT; |
2852 } | 2853 } |
2853 } // namespace internal | 2854 } // namespace internal |
2854 } // namespace v8 | 2855 } // namespace v8 |
2855 #endif // V8_TARGET_ARCH_PPC | 2856 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |