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_X64 | 5 #if V8_TARGET_ARCH_X64 |
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 2558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2569 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2569 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2570 __ CompareRoot(rax, Heap::kTrueValueRootIndex); | 2570 __ CompareRoot(rax, Heap::kTrueValueRootIndex); |
2571 Split(equal, if_true, if_false, fall_through); | 2571 Split(equal, if_true, if_false, fall_through); |
2572 break; | 2572 break; |
2573 | 2573 |
2574 case Token::INSTANCEOF: { | 2574 case Token::INSTANCEOF: { |
2575 VisitForAccumulatorValue(expr->right()); | 2575 VisitForAccumulatorValue(expr->right()); |
2576 SetExpressionPosition(expr); | 2576 SetExpressionPosition(expr); |
2577 PopOperand(rdx); | 2577 PopOperand(rdx); |
2578 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); | 2578 __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); |
| 2579 RestoreContext(); |
2579 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); | 2580 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
2580 __ CompareRoot(rax, Heap::kTrueValueRootIndex); | 2581 __ CompareRoot(rax, Heap::kTrueValueRootIndex); |
2581 Split(equal, if_true, if_false, fall_through); | 2582 Split(equal, if_true, if_false, fall_through); |
2582 break; | 2583 break; |
2583 } | 2584 } |
2584 | 2585 |
2585 default: { | 2586 default: { |
2586 VisitForAccumulatorValue(expr->right()); | 2587 VisitForAccumulatorValue(expr->right()); |
2587 SetExpressionPosition(expr); | 2588 SetExpressionPosition(expr); |
2588 Condition cc = CompareIC::ComputeCondition(op); | 2589 Condition cc = CompareIC::ComputeCondition(op); |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2760 DCHECK_EQ( | 2761 DCHECK_EQ( |
2761 isolate->builtins()->OnStackReplacement()->entry(), | 2762 isolate->builtins()->OnStackReplacement()->entry(), |
2762 Assembler::target_address_at(call_target_address, unoptimized_code)); | 2763 Assembler::target_address_at(call_target_address, unoptimized_code)); |
2763 return ON_STACK_REPLACEMENT; | 2764 return ON_STACK_REPLACEMENT; |
2764 } | 2765 } |
2765 | 2766 |
2766 } // namespace internal | 2767 } // namespace internal |
2767 } // namespace v8 | 2768 } // namespace v8 |
2768 | 2769 |
2769 #endif // V8_TARGET_ARCH_X64 | 2770 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |