| 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_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 4360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4371 | 4371 |
| 4372 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4372 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4373 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4373 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
| 4374 LoadICStub stub(isolate(), state()); | 4374 LoadICStub stub(isolate(), state()); |
| 4375 stub.GenerateForTrampoline(masm); | 4375 stub.GenerateForTrampoline(masm); |
| 4376 } | 4376 } |
| 4377 | 4377 |
| 4378 | 4378 |
| 4379 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4379 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4380 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4380 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
| 4381 KeyedLoadICStub stub(isolate()); | 4381 KeyedLoadICStub stub(isolate(), state()); |
| 4382 stub.GenerateForTrampoline(masm); | 4382 stub.GenerateForTrampoline(masm); |
| 4383 } | 4383 } |
| 4384 | 4384 |
| 4385 | 4385 |
| 4386 void CallICTrampolineStub::Generate(MacroAssembler* masm) { | 4386 void CallICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4387 EmitLoadTypeFeedbackVector(masm, r2); | 4387 EmitLoadTypeFeedbackVector(masm, r2); |
| 4388 CallICStub stub(isolate(), state()); | 4388 CallICStub stub(isolate(), state()); |
| 4389 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); | 4389 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4390 } | 4390 } |
| 4391 | 4391 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4581 Label polymorphic, try_poly_name; | 4581 Label polymorphic, try_poly_name; |
| 4582 __ bind(&polymorphic); | 4582 __ bind(&polymorphic); |
| 4583 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, | 4583 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, |
| 4584 scratch1, r9, true, &miss); | 4584 scratch1, r9, true, &miss); |
| 4585 | 4585 |
| 4586 __ bind(¬_array); | 4586 __ bind(¬_array); |
| 4587 // Is it generic? | 4587 // Is it generic? |
| 4588 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); | 4588 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
| 4589 __ b(ne, &try_poly_name); | 4589 __ b(ne, &try_poly_name); |
| 4590 Handle<Code> megamorphic_stub = | 4590 Handle<Code> megamorphic_stub = |
| 4591 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); | 4591 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState()); |
| 4592 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); | 4592 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); |
| 4593 | 4593 |
| 4594 __ bind(&try_poly_name); | 4594 __ bind(&try_poly_name); |
| 4595 // We might have a name in feedback, and a fixed array in the next slot. | 4595 // We might have a name in feedback, and a fixed array in the next slot. |
| 4596 __ cmp(key, feedback); | 4596 __ cmp(key, feedback); |
| 4597 __ b(ne, &miss); | 4597 __ b(ne, &miss); |
| 4598 // If the name comparison succeeded, we know we have a fixed array with | 4598 // If the name comparison succeeded, we know we have a fixed array with |
| 4599 // at least one map/handler pair. | 4599 // at least one map/handler pair. |
| 4600 __ add(feedback, vector, Operand::PointerOffsetFromSmiKey(slot)); | 4600 __ add(feedback, vector, Operand::PointerOffsetFromSmiKey(slot)); |
| 4601 __ ldr(feedback, | 4601 __ ldr(feedback, |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5366 MemOperand(fp, 6 * kPointerSize), NULL); | 5366 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5367 } | 5367 } |
| 5368 | 5368 |
| 5369 | 5369 |
| 5370 #undef __ | 5370 #undef __ |
| 5371 | 5371 |
| 5372 } // namespace internal | 5372 } // namespace internal |
| 5373 } // namespace v8 | 5373 } // namespace v8 |
| 5374 | 5374 |
| 5375 #endif // V8_TARGET_ARCH_ARM | 5375 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |