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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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 2564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2575 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2575 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2576 __ cmp(eax, isolate()->factory()->true_value()); | 2576 __ cmp(eax, isolate()->factory()->true_value()); |
2577 Split(equal, if_true, if_false, fall_through); | 2577 Split(equal, if_true, if_false, fall_through); |
2578 break; | 2578 break; |
2579 | 2579 |
2580 case Token::INSTANCEOF: { | 2580 case Token::INSTANCEOF: { |
2581 VisitForAccumulatorValue(expr->right()); | 2581 VisitForAccumulatorValue(expr->right()); |
2582 SetExpressionPosition(expr); | 2582 SetExpressionPosition(expr); |
2583 PopOperand(edx); | 2583 PopOperand(edx); |
2584 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); | 2584 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); |
| 2585 RestoreContext(); |
2585 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2586 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2586 __ cmp(eax, isolate()->factory()->true_value()); | 2587 __ cmp(eax, isolate()->factory()->true_value()); |
2587 Split(equal, if_true, if_false, fall_through); | 2588 Split(equal, if_true, if_false, fall_through); |
2588 break; | 2589 break; |
2589 } | 2590 } |
2590 | 2591 |
2591 default: { | 2592 default: { |
2592 VisitForAccumulatorValue(expr->right()); | 2593 VisitForAccumulatorValue(expr->right()); |
2593 SetExpressionPosition(expr); | 2594 SetExpressionPosition(expr); |
2594 Condition cc = CompareIC::ComputeCondition(op); | 2595 Condition cc = CompareIC::ComputeCondition(op); |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2769 isolate->builtins()->OnStackReplacement()->entry(), | 2770 isolate->builtins()->OnStackReplacement()->entry(), |
2770 Assembler::target_address_at(call_target_address, unoptimized_code)); | 2771 Assembler::target_address_at(call_target_address, unoptimized_code)); |
2771 return ON_STACK_REPLACEMENT; | 2772 return ON_STACK_REPLACEMENT; |
2772 } | 2773 } |
2773 | 2774 |
2774 | 2775 |
2775 } // namespace internal | 2776 } // namespace internal |
2776 } // namespace v8 | 2777 } // namespace v8 |
2777 | 2778 |
2778 #endif // V8_TARGET_ARCH_X87 | 2779 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |