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

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

Issue 1168093002: [strong] Implement strong mode restrictions on property access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix arm64 port 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 3049 matching lines...) Expand 10 before | Expand all | Expand 10 after
3060 3060
3061 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 3061 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
3062 DCHECK(ToRegister(instr->context()).is(cp)); 3062 DCHECK(ToRegister(instr->context()).is(cp));
3063 DCHECK(ToRegister(instr->global_object()) 3063 DCHECK(ToRegister(instr->global_object())
3064 .is(LoadDescriptor::ReceiverRegister())); 3064 .is(LoadDescriptor::ReceiverRegister()));
3065 DCHECK(ToRegister(instr->result()).is(r3)); 3065 DCHECK(ToRegister(instr->result()).is(r3));
3066 3066
3067 __ mov(LoadDescriptor::NameRegister(), Operand(instr->name())); 3067 __ mov(LoadDescriptor::NameRegister(), Operand(instr->name()));
3068 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); 3068 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
3069 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; 3069 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
3070 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, 3070 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY,
3071 PREMONOMORPHIC).code(); 3071 PREMONOMORPHIC).code();
3072 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3072 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3073 } 3073 }
3074 3074
3075 3075
3076 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 3076 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
3077 Register context = ToRegister(instr->context()); 3077 Register context = ToRegister(instr->context());
3078 Register result = ToRegister(instr->result()); 3078 Register result = ToRegister(instr->result());
3079 __ LoadP(result, ContextOperand(context, instr->slot_index())); 3079 __ LoadP(result, ContextOperand(context, instr->slot_index()));
3080 if (instr->hydrogen()->RequiresHoleCheck()) { 3080 if (instr->hydrogen()->RequiresHoleCheck()) {
(...skipping 3194 matching lines...) Expand 10 before | Expand all | Expand 10 after
6275 __ Push(scope_info); 6275 __ Push(scope_info);
6276 __ push(ToRegister(instr->function())); 6276 __ push(ToRegister(instr->function()));
6277 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6277 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6278 RecordSafepoint(Safepoint::kNoLazyDeopt); 6278 RecordSafepoint(Safepoint::kNoLazyDeopt);
6279 } 6279 }
6280 6280
6281 6281
6282 #undef __ 6282 #undef __
6283 } // namespace internal 6283 } // namespace internal
6284 } // namespace v8 6284 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime.h » ('j') | test/mjsunit/strong/load-element.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698