OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 2593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2604 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2604 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2605 __ CompareRoot(r2, Heap::kTrueValueRootIndex); | 2605 __ CompareRoot(r2, Heap::kTrueValueRootIndex); |
2606 Split(eq, if_true, if_false, fall_through); | 2606 Split(eq, if_true, if_false, fall_through); |
2607 break; | 2607 break; |
2608 | 2608 |
2609 case Token::INSTANCEOF: { | 2609 case Token::INSTANCEOF: { |
2610 VisitForAccumulatorValue(expr->right()); | 2610 VisitForAccumulatorValue(expr->right()); |
2611 SetExpressionPosition(expr); | 2611 SetExpressionPosition(expr); |
2612 PopOperand(r3); | 2612 PopOperand(r3); |
2613 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); | 2613 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); |
| 2614 RestoreContext(); |
2614 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2615 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2615 __ CompareRoot(r2, Heap::kTrueValueRootIndex); | 2616 __ CompareRoot(r2, Heap::kTrueValueRootIndex); |
2616 Split(eq, if_true, if_false, fall_through); | 2617 Split(eq, if_true, if_false, fall_through); |
2617 break; | 2618 break; |
2618 } | 2619 } |
2619 | 2620 |
2620 default: { | 2621 default: { |
2621 VisitForAccumulatorValue(expr->right()); | 2622 VisitForAccumulatorValue(expr->right()); |
2622 SetExpressionPosition(expr); | 2623 SetExpressionPosition(expr); |
2623 Condition cond = CompareIC::ComputeCondition(op); | 2624 Condition cond = CompareIC::ComputeCondition(op); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2786 USE(kOSRBranchInstruction); | 2787 USE(kOSRBranchInstruction); |
2787 DCHECK(kOSRBranchInstruction == br_instr); | 2788 DCHECK(kOSRBranchInstruction == br_instr); |
2788 | 2789 |
2789 DCHECK(interrupt_address == | 2790 DCHECK(interrupt_address == |
2790 isolate->builtins()->OnStackReplacement()->entry()); | 2791 isolate->builtins()->OnStackReplacement()->entry()); |
2791 return ON_STACK_REPLACEMENT; | 2792 return ON_STACK_REPLACEMENT; |
2792 } | 2793 } |
2793 } // namespace internal | 2794 } // namespace internal |
2794 } // namespace v8 | 2795 } // namespace v8 |
2795 #endif // V8_TARGET_ARCH_S390 | 2796 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |