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

Side by Side Diff: src/arm64/lithium-codegen-arm64.cc

Issue 1189153002: Revert of [strong] Implement strong mode restrictions on property access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/arm64/full-codegen-arm64.cc ('k') | src/builtins.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/arm64/lithium-gap-resolver-arm64.h" 8 #include "src/arm64/lithium-gap-resolver-arm64.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 3288 matching lines...) Expand 10 before | Expand all | Expand 10 after
3299 3299
3300 3300
3301 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 3301 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
3302 DCHECK(ToRegister(instr->context()).is(cp)); 3302 DCHECK(ToRegister(instr->context()).is(cp));
3303 DCHECK(ToRegister(instr->global_object()) 3303 DCHECK(ToRegister(instr->global_object())
3304 .is(LoadDescriptor::ReceiverRegister())); 3304 .is(LoadDescriptor::ReceiverRegister()));
3305 DCHECK(ToRegister(instr->result()).Is(x0)); 3305 DCHECK(ToRegister(instr->result()).Is(x0));
3306 __ Mov(LoadDescriptor::NameRegister(), Operand(instr->name())); 3306 __ Mov(LoadDescriptor::NameRegister(), Operand(instr->name()));
3307 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 3307 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
3308 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; 3308 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
3309 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY, 3309 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode,
3310 PREMONOMORPHIC).code(); 3310 PREMONOMORPHIC).code();
3311 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3311 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3312 } 3312 }
3313 3313
3314 3314
3315 MemOperand LCodeGen::PrepareKeyedExternalArrayOperand( 3315 MemOperand LCodeGen::PrepareKeyedExternalArrayOperand(
3316 Register key, 3316 Register key,
3317 Register base, 3317 Register base,
3318 Register scratch, 3318 Register scratch,
3319 bool key_is_smi, 3319 bool key_is_smi,
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
3569 3569
3570 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3570 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3571 DCHECK(ToRegister(instr->context()).is(cp)); 3571 DCHECK(ToRegister(instr->context()).is(cp));
3572 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3572 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3573 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); 3573 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister()));
3574 3574
3575 if (instr->hydrogen()->HasVectorAndSlot()) { 3575 if (instr->hydrogen()->HasVectorAndSlot()) {
3576 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); 3576 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
3577 } 3577 }
3578 3578
3579 Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode( 3579 Handle<Code> ic =
3580 isolate(), instr->hydrogen()->language_mode(), 3580 CodeFactory::KeyedLoadICInOptimizedCode(
3581 instr->hydrogen()->initialization_state()).code(); 3581 isolate(), instr->hydrogen()->initialization_state()).code();
3582 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3582 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3583 3583
3584 DCHECK(ToRegister(instr->result()).Is(x0)); 3584 DCHECK(ToRegister(instr->result()).Is(x0));
3585 } 3585 }
3586 3586
3587 3587
3588 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { 3588 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) {
3589 HObjectAccess access = instr->hydrogen()->access(); 3589 HObjectAccess access = instr->hydrogen()->access();
3590 int offset = access.offset(); 3590 int offset = access.offset();
3591 Register object = ToRegister(instr->object()); 3591 Register object = ToRegister(instr->object());
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
3625 } 3625 }
3626 } 3626 }
3627 3627
3628 3628
3629 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { 3629 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
3630 DCHECK(ToRegister(instr->context()).is(cp)); 3630 DCHECK(ToRegister(instr->context()).is(cp));
3631 // LoadIC expects name and receiver in registers. 3631 // LoadIC expects name and receiver in registers.
3632 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); 3632 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister()));
3633 __ Mov(LoadDescriptor::NameRegister(), Operand(instr->name())); 3633 __ Mov(LoadDescriptor::NameRegister(), Operand(instr->name()));
3634 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); 3634 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr);
3635 Handle<Code> ic = 3635
3636 CodeFactory::LoadICInOptimizedCode( 3636 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(
3637 isolate(), NOT_CONTEXTUAL, instr->hydrogen()->language_mode(), 3637 isolate(), NOT_CONTEXTUAL,
3638 instr->hydrogen()->initialization_state()).code(); 3638 instr->hydrogen()->initialization_state()).code();
3639 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3639 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3640 3640
3641 DCHECK(ToRegister(instr->result()).is(x0)); 3641 DCHECK(ToRegister(instr->result()).is(x0));
3642 } 3642 }
3643 3643
3644 3644
3645 void LCodeGen::DoLoadRoot(LLoadRoot* instr) { 3645 void LCodeGen::DoLoadRoot(LLoadRoot* instr) {
3646 Register result = ToRegister(instr->result()); 3646 Register result = ToRegister(instr->result());
3647 __ LoadRoot(result, instr->index()); 3647 __ LoadRoot(result, instr->index());
3648 } 3648 }
(...skipping 2398 matching lines...) Expand 10 before | Expand all | Expand 10 after
6047 Handle<ScopeInfo> scope_info = instr->scope_info(); 6047 Handle<ScopeInfo> scope_info = instr->scope_info();
6048 __ Push(scope_info); 6048 __ Push(scope_info);
6049 __ Push(ToRegister(instr->function())); 6049 __ Push(ToRegister(instr->function()));
6050 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6050 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6051 RecordSafepoint(Safepoint::kNoLazyDeopt); 6051 RecordSafepoint(Safepoint::kNoLazyDeopt);
6052 } 6052 }
6053 6053
6054 6054
6055 } // namespace internal 6055 } // namespace internal
6056 } // namespace v8 6056 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698