OLD | NEW |
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 4574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4585 | 4585 |
4586 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4586 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
4587 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4587 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
4588 LoadICStub stub(isolate(), state()); | 4588 LoadICStub stub(isolate(), state()); |
4589 stub.GenerateForTrampoline(masm); | 4589 stub.GenerateForTrampoline(masm); |
4590 } | 4590 } |
4591 | 4591 |
4592 | 4592 |
4593 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4593 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
4594 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4594 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
4595 KeyedLoadICStub stub(isolate()); | 4595 KeyedLoadICStub stub(isolate(), state()); |
4596 stub.GenerateForTrampoline(masm); | 4596 stub.GenerateForTrampoline(masm); |
4597 } | 4597 } |
4598 | 4598 |
4599 | 4599 |
4600 void CallICTrampolineStub::Generate(MacroAssembler* masm) { | 4600 void CallICTrampolineStub::Generate(MacroAssembler* masm) { |
4601 EmitLoadTypeFeedbackVector(masm, a2); | 4601 EmitLoadTypeFeedbackVector(masm, a2); |
4602 CallICStub stub(isolate(), state()); | 4602 CallICStub stub(isolate(), state()); |
4603 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); | 4603 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
4604 } | 4604 } |
4605 | 4605 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4798 Label polymorphic, try_poly_name; | 4798 Label polymorphic, try_poly_name; |
4799 __ bind(&polymorphic); | 4799 __ bind(&polymorphic); |
4800 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, | 4800 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, |
4801 scratch1, t5, true, &miss); | 4801 scratch1, t5, true, &miss); |
4802 | 4802 |
4803 __ bind(¬_array); | 4803 __ bind(¬_array); |
4804 // Is it generic? | 4804 // Is it generic? |
4805 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); | 4805 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); |
4806 __ Branch(&try_poly_name, ne, at, Operand(feedback)); | 4806 __ Branch(&try_poly_name, ne, at, Operand(feedback)); |
4807 Handle<Code> megamorphic_stub = | 4807 Handle<Code> megamorphic_stub = |
4808 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); | 4808 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState()); |
4809 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); | 4809 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); |
4810 | 4810 |
4811 __ bind(&try_poly_name); | 4811 __ bind(&try_poly_name); |
4812 // We might have a name in feedback, and a fixed array in the next slot. | 4812 // We might have a name in feedback, and a fixed array in the next slot. |
4813 __ Branch(&miss, ne, key, Operand(feedback)); | 4813 __ Branch(&miss, ne, key, Operand(feedback)); |
4814 // If the name comparison succeeded, we know we have a fixed array with | 4814 // If the name comparison succeeded, we know we have a fixed array with |
4815 // at least one map/handler pair. | 4815 // at least one map/handler pair. |
4816 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); | 4816 __ sll(at, slot, kPointerSizeLog2 - kSmiTagSize); |
4817 __ Addu(feedback, vector, Operand(at)); | 4817 __ Addu(feedback, vector, Operand(at)); |
4818 __ lw(feedback, | 4818 __ lw(feedback, |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5566 MemOperand(fp, 6 * kPointerSize), NULL); | 5566 MemOperand(fp, 6 * kPointerSize), NULL); |
5567 } | 5567 } |
5568 | 5568 |
5569 | 5569 |
5570 #undef __ | 5570 #undef __ |
5571 | 5571 |
5572 } // namespace internal | 5572 } // namespace internal |
5573 } // namespace v8 | 5573 } // namespace v8 |
5574 | 5574 |
5575 #endif // V8_TARGET_ARCH_MIPS | 5575 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |