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

Side by Side Diff: src/ppc/code-stubs-ppc.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/objects-inl.h ('k') | src/ppc/full-codegen-ppc.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 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 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
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 4594 matching lines...) Expand 10 before | Expand all | Expand 10 after
4605 4605
4606 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 4606 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4607 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4607 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4608 LoadICStub stub(isolate(), state()); 4608 LoadICStub stub(isolate(), state());
4609 stub.GenerateForTrampoline(masm); 4609 stub.GenerateForTrampoline(masm);
4610 } 4610 }
4611 4611
4612 4612
4613 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 4613 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
4614 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4614 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4615 KeyedLoadICStub stub(isolate(), state()); 4615 KeyedLoadICStub stub(isolate());
4616 stub.GenerateForTrampoline(masm); 4616 stub.GenerateForTrampoline(masm);
4617 } 4617 }
4618 4618
4619 4619
4620 void CallICTrampolineStub::Generate(MacroAssembler* masm) { 4620 void CallICTrampolineStub::Generate(MacroAssembler* masm) {
4621 EmitLoadTypeFeedbackVector(masm, r5); 4621 EmitLoadTypeFeedbackVector(masm, r5);
4622 CallICStub stub(isolate(), state()); 4622 CallICStub stub(isolate(), state());
4623 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); 4623 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
4624 } 4624 }
4625 4625
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
4822 Label polymorphic, try_poly_name; 4822 Label polymorphic, try_poly_name;
4823 __ bind(&polymorphic); 4823 __ bind(&polymorphic);
4824 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, 4824 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map,
4825 scratch1, r10, true, &miss); 4825 scratch1, r10, true, &miss);
4826 4826
4827 __ bind(&not_array); 4827 __ bind(&not_array);
4828 // Is it generic? 4828 // Is it generic?
4829 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); 4829 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex);
4830 __ bne(&try_poly_name); 4830 __ bne(&try_poly_name);
4831 Handle<Code> megamorphic_stub = 4831 Handle<Code> megamorphic_stub =
4832 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState()); 4832 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate());
4833 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); 4833 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET);
4834 4834
4835 __ bind(&try_poly_name); 4835 __ bind(&try_poly_name);
4836 // We might have a name in feedback, and a fixed array in the next slot. 4836 // We might have a name in feedback, and a fixed array in the next slot.
4837 __ cmp(key, feedback); 4837 __ cmp(key, feedback);
4838 __ bne(&miss); 4838 __ bne(&miss);
4839 // If the name comparison succeeded, we know we have a fixed array with 4839 // If the name comparison succeeded, we know we have a fixed array with
4840 // at least one map/handler pair. 4840 // at least one map/handler pair.
4841 __ SmiToPtrArrayOffset(r0, slot); 4841 __ SmiToPtrArrayOffset(r0, slot);
4842 __ add(feedback, vector, r0); 4842 __ add(feedback, vector, r0);
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
5665 kStackUnwindSpace, NULL, 5665 kStackUnwindSpace, NULL,
5666 MemOperand(fp, 6 * kPointerSize), NULL); 5666 MemOperand(fp, 6 * kPointerSize), NULL);
5667 } 5667 }
5668 5668
5669 5669
5670 #undef __ 5670 #undef __
5671 } // namespace internal 5671 } // namespace internal
5672 } // namespace v8 5672 } // namespace v8
5673 5673
5674 #endif // V8_TARGET_ARCH_PPC 5674 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698