Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 887023003: Always emit bailout id for inlining property access (even for keyed access). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ppc/full-codegen-ppc.cc ('k') | src/x87/full-codegen-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ppc/full-codegen-ppc.cc ('k') | src/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698