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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 1185343005: Revert of 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 | « no previous file | src/arm/full-codegen-arm.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_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 4354 matching lines...) Expand 10 before | Expand all | Expand 10 after
4365 4365
4366 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 4366 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4367 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4367 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4368 LoadICStub stub(isolate(), state()); 4368 LoadICStub stub(isolate(), state());
4369 stub.GenerateForTrampoline(masm); 4369 stub.GenerateForTrampoline(masm);
4370 } 4370 }
4371 4371
4372 4372
4373 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 4373 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
4374 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4374 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4375 KeyedLoadICStub stub(isolate()); 4375 KeyedLoadICStub stub(isolate(), state());
4376 stub.GenerateForTrampoline(masm); 4376 stub.GenerateForTrampoline(masm);
4377 } 4377 }
4378 4378
4379 4379
4380 void CallICTrampolineStub::Generate(MacroAssembler* masm) { 4380 void CallICTrampolineStub::Generate(MacroAssembler* masm) {
4381 EmitLoadTypeFeedbackVector(masm, r2); 4381 EmitLoadTypeFeedbackVector(masm, r2);
4382 CallICStub stub(isolate(), state()); 4382 CallICStub stub(isolate(), state());
4383 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); 4383 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
4384 } 4384 }
4385 4385
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
4575 Label polymorphic, try_poly_name; 4575 Label polymorphic, try_poly_name;
4576 __ bind(&polymorphic); 4576 __ bind(&polymorphic);
4577 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, 4577 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map,
4578 scratch1, r9, true, &miss); 4578 scratch1, r9, true, &miss);
4579 4579
4580 __ bind(&not_array); 4580 __ bind(&not_array);
4581 // Is it generic? 4581 // Is it generic?
4582 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); 4582 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex);
4583 __ b(ne, &try_poly_name); 4583 __ b(ne, &try_poly_name);
4584 Handle<Code> megamorphic_stub = 4584 Handle<Code> megamorphic_stub =
4585 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); 4585 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState());
4586 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); 4586 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET);
4587 4587
4588 __ bind(&try_poly_name); 4588 __ bind(&try_poly_name);
4589 // We might have a name in feedback, and a fixed array in the next slot. 4589 // We might have a name in feedback, and a fixed array in the next slot.
4590 __ cmp(key, feedback); 4590 __ cmp(key, feedback);
4591 __ b(ne, &miss); 4591 __ b(ne, &miss);
4592 // If the name comparison succeeded, we know we have a fixed array with 4592 // If the name comparison succeeded, we know we have a fixed array with
4593 // at least one map/handler pair. 4593 // at least one map/handler pair.
4594 __ add(feedback, vector, Operand::PointerOffsetFromSmiKey(slot)); 4594 __ add(feedback, vector, Operand::PointerOffsetFromSmiKey(slot));
4595 __ ldr(feedback, 4595 __ ldr(feedback,
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
5360 MemOperand(fp, 6 * kPointerSize), NULL); 5360 MemOperand(fp, 6 * kPointerSize), NULL);
5361 } 5361 }
5362 5362
5363 5363
5364 #undef __ 5364 #undef __
5365 5365
5366 } // namespace internal 5366 } // namespace internal
5367 } // namespace v8 5367 } // namespace v8
5368 5368
5369 #endif // V8_TARGET_ARCH_ARM 5369 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698