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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 2640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2651 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2651 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2652 __ CompareRoot(r0, Heap::kTrueValueRootIndex); | 2652 __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
2653 Split(eq, if_true, if_false, fall_through); | 2653 Split(eq, if_true, if_false, fall_through); |
2654 break; | 2654 break; |
2655 | 2655 |
2656 case Token::INSTANCEOF: { | 2656 case Token::INSTANCEOF: { |
2657 VisitForAccumulatorValue(expr->right()); | 2657 VisitForAccumulatorValue(expr->right()); |
2658 SetExpressionPosition(expr); | 2658 SetExpressionPosition(expr); |
2659 PopOperand(r1); | 2659 PopOperand(r1); |
2660 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); | 2660 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); |
| 2661 RestoreContext(); |
2661 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2662 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2662 __ CompareRoot(r0, Heap::kTrueValueRootIndex); | 2663 __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
2663 Split(eq, if_true, if_false, fall_through); | 2664 Split(eq, if_true, if_false, fall_through); |
2664 break; | 2665 break; |
2665 } | 2666 } |
2666 | 2667 |
2667 default: { | 2668 default: { |
2668 VisitForAccumulatorValue(expr->right()); | 2669 VisitForAccumulatorValue(expr->right()); |
2669 SetExpressionPosition(expr); | 2670 SetExpressionPosition(expr); |
2670 Condition cond = CompareIC::ComputeCondition(op); | 2671 Condition cond = CompareIC::ComputeCondition(op); |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2908 DCHECK(interrupt_address == | 2909 DCHECK(interrupt_address == |
2909 isolate->builtins()->OnStackReplacement()->entry()); | 2910 isolate->builtins()->OnStackReplacement()->entry()); |
2910 return ON_STACK_REPLACEMENT; | 2911 return ON_STACK_REPLACEMENT; |
2911 } | 2912 } |
2912 | 2913 |
2913 | 2914 |
2914 } // namespace internal | 2915 } // namespace internal |
2915 } // namespace v8 | 2916 } // namespace v8 |
2916 | 2917 |
2917 #endif // V8_TARGET_ARCH_ARM | 2918 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |