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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 2718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2729 VisitForAccumulatorValue(expr->obj()); | 2729 VisitForAccumulatorValue(expr->obj()); |
2730 DCHECK(!rax.is(LoadDescriptor::ReceiverRegister())); | 2730 DCHECK(!rax.is(LoadDescriptor::ReceiverRegister())); |
2731 __ movp(LoadDescriptor::ReceiverRegister(), rax); | 2731 __ movp(LoadDescriptor::ReceiverRegister(), rax); |
2732 EmitNamedPropertyLoad(expr); | 2732 EmitNamedPropertyLoad(expr); |
2733 } else { | 2733 } else { |
2734 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); | 2734 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); |
2735 EmitLoadHomeObject(expr->obj()->AsSuperReference()); | 2735 EmitLoadHomeObject(expr->obj()->AsSuperReference()); |
2736 __ Push(result_register()); | 2736 __ Push(result_register()); |
2737 EmitNamedSuperPropertyLoad(expr); | 2737 EmitNamedSuperPropertyLoad(expr); |
2738 } | 2738 } |
2739 PrepareForBailoutForId(expr->LoadId(), TOS_REG); | |
2740 context()->Plug(rax); | |
2741 } else { | 2739 } else { |
2742 if (!expr->IsSuperAccess()) { | 2740 if (!expr->IsSuperAccess()) { |
2743 VisitForStackValue(expr->obj()); | 2741 VisitForStackValue(expr->obj()); |
2744 VisitForAccumulatorValue(expr->key()); | 2742 VisitForAccumulatorValue(expr->key()); |
2745 __ Move(LoadDescriptor::NameRegister(), rax); | 2743 __ Move(LoadDescriptor::NameRegister(), rax); |
2746 __ Pop(LoadDescriptor::ReceiverRegister()); | 2744 __ Pop(LoadDescriptor::ReceiverRegister()); |
2747 EmitKeyedPropertyLoad(expr); | 2745 EmitKeyedPropertyLoad(expr); |
2748 } else { | 2746 } else { |
2749 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); | 2747 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); |
2750 EmitLoadHomeObject(expr->obj()->AsSuperReference()); | 2748 EmitLoadHomeObject(expr->obj()->AsSuperReference()); |
2751 __ Push(result_register()); | 2749 __ Push(result_register()); |
2752 VisitForStackValue(expr->key()); | 2750 VisitForStackValue(expr->key()); |
2753 EmitKeyedSuperPropertyLoad(expr); | 2751 EmitKeyedSuperPropertyLoad(expr); |
2754 } | 2752 } |
2755 context()->Plug(rax); | |
2756 } | 2753 } |
| 2754 PrepareForBailoutForId(expr->LoadId(), TOS_REG); |
| 2755 context()->Plug(rax); |
2757 } | 2756 } |
2758 | 2757 |
2759 | 2758 |
2760 void FullCodeGenerator::CallIC(Handle<Code> code, | 2759 void FullCodeGenerator::CallIC(Handle<Code> code, |
2761 TypeFeedbackId ast_id) { | 2760 TypeFeedbackId ast_id) { |
2762 ic_total_count_++; | 2761 ic_total_count_++; |
2763 __ call(code, RelocInfo::CODE_TARGET, ast_id); | 2762 __ call(code, RelocInfo::CODE_TARGET, ast_id); |
2764 } | 2763 } |
2765 | 2764 |
2766 | 2765 |
(...skipping 2531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5298 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5297 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5299 Assembler::target_address_at(call_target_address, | 5298 Assembler::target_address_at(call_target_address, |
5300 unoptimized_code)); | 5299 unoptimized_code)); |
5301 return OSR_AFTER_STACK_CHECK; | 5300 return OSR_AFTER_STACK_CHECK; |
5302 } | 5301 } |
5303 | 5302 |
5304 | 5303 |
5305 } } // namespace v8::internal | 5304 } } // namespace v8::internal |
5306 | 5305 |
5307 #endif // V8_TARGET_ARCH_X64 | 5306 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |