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

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

Issue 1199983002: [strong] Implement strong property access semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add TODOs Created 5 years, 5 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/builtins-mips.cc ('k') | src/mips/full-codegen-mips.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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 4582 matching lines...) Expand 10 before | Expand all | Expand 10 after
4593 4593
4594 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 4594 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4595 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4595 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4596 LoadICStub stub(isolate(), state()); 4596 LoadICStub stub(isolate(), state());
4597 stub.GenerateForTrampoline(masm); 4597 stub.GenerateForTrampoline(masm);
4598 } 4598 }
4599 4599
4600 4600
4601 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 4601 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
4602 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4602 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4603 KeyedLoadICStub stub(isolate()); 4603 KeyedLoadICStub stub(isolate(), state());
4604 stub.GenerateForTrampoline(masm); 4604 stub.GenerateForTrampoline(masm);
4605 } 4605 }
4606 4606
4607 4607
4608 void CallICTrampolineStub::Generate(MacroAssembler* masm) { 4608 void CallICTrampolineStub::Generate(MacroAssembler* masm) {
4609 EmitLoadTypeFeedbackVector(masm, a2); 4609 EmitLoadTypeFeedbackVector(masm, a2);
4610 CallICStub stub(isolate(), state()); 4610 CallICStub stub(isolate(), state());
4611 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); 4611 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
4612 } 4612 }
4613 4613
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
4806 Label polymorphic, try_poly_name; 4806 Label polymorphic, try_poly_name;
4807 __ bind(&polymorphic); 4807 __ bind(&polymorphic);
4808 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, 4808 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map,
4809 scratch1, t5, true, &miss); 4809 scratch1, t5, true, &miss);
4810 4810
4811 __ bind(&not_array); 4811 __ bind(&not_array);
4812 // Is it generic? 4812 // Is it generic?
4813 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); 4813 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex);
4814 __ Branch(&try_poly_name, ne, at, Operand(feedback)); 4814 __ Branch(&try_poly_name, ne, at, Operand(feedback));
4815 Handle<Code> megamorphic_stub = 4815 Handle<Code> megamorphic_stub =
4816 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); 4816 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState());
4817 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); 4817 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET);
4818 4818
4819 __ bind(&try_poly_name); 4819 __ bind(&try_poly_name);
4820 // We might have a name in feedback, and a fixed array in the next slot. 4820 // We might have a name in feedback, and a fixed array in the next slot.
4821 __ Branch(&miss, ne, key, Operand(feedback)); 4821 __ Branch(&miss, ne, key, Operand(feedback));
4822 // If the name comparison succeeded, we know we have a fixed array with 4822 // If the name comparison succeeded, we know we have a fixed array with
4823 // at least one map/handler pair. 4823 // at least one map/handler pair.
4824 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); 4824 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize);
4825 __ Addu(feedback, vector, Operand(at)); 4825 __ Addu(feedback, vector, Operand(at));
4826 __ lw(feedback, 4826 __ lw(feedback,
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
5574 MemOperand(fp, 6 * kPointerSize), NULL); 5574 MemOperand(fp, 6 * kPointerSize), NULL);
5575 } 5575 }
5576 5576
5577 5577
5578 #undef __ 5578 #undef __
5579 5579
5580 } // namespace internal 5580 } // namespace internal
5581 } // namespace v8 5581 } // namespace v8
5582 5582
5583 #endif // V8_TARGET_ARCH_MIPS 5583 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698