| 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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 3660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3671 __ ldr(pointer_reg, MemOperand(pointer_reg, kPointerSize * 2)); | 3671 __ ldr(pointer_reg, MemOperand(pointer_reg, kPointerSize * 2)); |
| 3672 __ add(pc, pointer_reg, Operand(Code::kHeaderSize - kHeapObjectTag)); | 3672 __ add(pc, pointer_reg, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| 3673 | 3673 |
| 3674 __ bind(&transition_call); | 3674 __ bind(&transition_call); |
| 3675 __ ldr(too_far, FieldMemOperand(too_far, WeakCell::kValueOffset)); | 3675 __ ldr(too_far, FieldMemOperand(too_far, WeakCell::kValueOffset)); |
| 3676 __ JumpIfSmi(too_far, miss); | 3676 __ JumpIfSmi(too_far, miss); |
| 3677 | 3677 |
| 3678 __ ldr(receiver_map, MemOperand(pointer_reg, kPointerSize * 2)); | 3678 __ ldr(receiver_map, MemOperand(pointer_reg, kPointerSize * 2)); |
| 3679 | 3679 |
| 3680 // Load the map into the correct register. | 3680 // Load the map into the correct register. |
| 3681 DCHECK(feedback.is(VectorStoreTransitionDescriptor::MapRegister())); | 3681 DCHECK(feedback.is(StoreTransitionDescriptor::MapRegister())); |
| 3682 __ mov(feedback, too_far); | 3682 __ mov(feedback, too_far); |
| 3683 | 3683 |
| 3684 __ add(pc, receiver_map, Operand(Code::kHeaderSize - kHeapObjectTag)); | 3684 __ add(pc, receiver_map, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| 3685 | 3685 |
| 3686 __ bind(&prepare_next); | 3686 __ bind(&prepare_next); |
| 3687 __ add(pointer_reg, pointer_reg, Operand(kPointerSize * 3)); | 3687 __ add(pointer_reg, pointer_reg, Operand(kPointerSize * 3)); |
| 3688 __ cmp(pointer_reg, too_far); | 3688 __ cmp(pointer_reg, too_far); |
| 3689 __ b(lt, &next_loop); | 3689 __ b(lt, &next_loop); |
| 3690 | 3690 |
| 3691 // We exhausted our array of map handler pairs. | 3691 // We exhausted our array of map handler pairs. |
| (...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5180 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5180 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
| 5181 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5181 kStackUnwindSpace, NULL, return_value_operand, NULL); |
| 5182 } | 5182 } |
| 5183 | 5183 |
| 5184 #undef __ | 5184 #undef __ |
| 5185 | 5185 |
| 5186 } // namespace internal | 5186 } // namespace internal |
| 5187 } // namespace v8 | 5187 } // namespace v8 |
| 5188 | 5188 |
| 5189 #endif // V8_TARGET_ARCH_ARM | 5189 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |