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

Side by Side Diff: src/mips64/code-stubs-mips64.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 | « src/mips/lithium-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 4618 matching lines...) Expand 10 before | Expand all | Expand 10 after
4629 4629
4630 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 4630 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4631 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4631 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4632 LoadICStub stub(isolate(), state()); 4632 LoadICStub stub(isolate(), state());
4633 stub.GenerateForTrampoline(masm); 4633 stub.GenerateForTrampoline(masm);
4634 } 4634 }
4635 4635
4636 4636
4637 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 4637 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
4638 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4638 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4639 KeyedLoadICStub stub(isolate()); 4639 KeyedLoadICStub stub(isolate(), state());
4640 stub.GenerateForTrampoline(masm); 4640 stub.GenerateForTrampoline(masm);
4641 } 4641 }
4642 4642
4643 4643
4644 void CallICTrampolineStub::Generate(MacroAssembler* masm) { 4644 void CallICTrampolineStub::Generate(MacroAssembler* masm) {
4645 EmitLoadTypeFeedbackVector(masm, a2); 4645 EmitLoadTypeFeedbackVector(masm, a2);
4646 CallICStub stub(isolate(), state()); 4646 CallICStub stub(isolate(), state());
4647 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); 4647 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
4648 } 4648 }
4649 4649
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
4840 Label polymorphic, try_poly_name; 4840 Label polymorphic, try_poly_name;
4841 __ bind(&polymorphic); 4841 __ bind(&polymorphic);
4842 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, 4842 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map,
4843 scratch1, a7, true, &miss); 4843 scratch1, a7, true, &miss);
4844 4844
4845 __ bind(&not_array); 4845 __ bind(&not_array);
4846 // Is it generic? 4846 // Is it generic?
4847 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); 4847 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex);
4848 __ Branch(&try_poly_name, ne, feedback, Operand(at)); 4848 __ Branch(&try_poly_name, ne, feedback, Operand(at));
4849 Handle<Code> megamorphic_stub = 4849 Handle<Code> megamorphic_stub =
4850 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); 4850 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState());
4851 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); 4851 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET);
4852 4852
4853 __ bind(&try_poly_name); 4853 __ bind(&try_poly_name);
4854 // We might have a name in feedback, and a fixed array in the next slot. 4854 // We might have a name in feedback, and a fixed array in the next slot.
4855 __ Branch(&miss, ne, key, Operand(feedback)); 4855 __ Branch(&miss, ne, key, Operand(feedback));
4856 // If the name comparison succeeded, we know we have a fixed array with 4856 // If the name comparison succeeded, we know we have a fixed array with
4857 // at least one map/handler pair. 4857 // at least one map/handler pair.
4858 __ SmiScale(feedback, slot, kPointerSizeLog2); 4858 __ SmiScale(feedback, slot, kPointerSizeLog2);
4859 __ Daddu(feedback, vector, Operand(feedback)); 4859 __ Daddu(feedback, vector, Operand(feedback));
4860 __ ld(feedback, 4860 __ ld(feedback,
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
5609 MemOperand(fp, 6 * kPointerSize), NULL); 5609 MemOperand(fp, 6 * kPointerSize), NULL);
5610 } 5610 }
5611 5611
5612 5612
5613 #undef __ 5613 #undef __
5614 5614
5615 } // namespace internal 5615 } // namespace internal
5616 } // namespace v8 5616 } // namespace v8
5617 5617
5618 #endif // V8_TARGET_ARCH_MIPS64 5618 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698