OLD | NEW |
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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 3794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3805 __ addi(ip, pointer_reg, Operand(Code::kHeaderSize - kHeapObjectTag)); | 3805 __ addi(ip, pointer_reg, Operand(Code::kHeaderSize - kHeapObjectTag)); |
3806 __ Jump(ip); | 3806 __ Jump(ip); |
3807 | 3807 |
3808 __ bind(&transition_call); | 3808 __ bind(&transition_call); |
3809 __ LoadP(too_far, FieldMemOperand(too_far, WeakCell::kValueOffset)); | 3809 __ LoadP(too_far, FieldMemOperand(too_far, WeakCell::kValueOffset)); |
3810 __ JumpIfSmi(too_far, miss); | 3810 __ JumpIfSmi(too_far, miss); |
3811 | 3811 |
3812 __ LoadP(receiver_map, MemOperand(pointer_reg, kPointerSize * 2)); | 3812 __ LoadP(receiver_map, MemOperand(pointer_reg, kPointerSize * 2)); |
3813 | 3813 |
3814 // Load the map into the correct register. | 3814 // Load the map into the correct register. |
3815 DCHECK(feedback.is(VectorStoreTransitionDescriptor::MapRegister())); | 3815 DCHECK(feedback.is(StoreTransitionDescriptor::MapRegister())); |
3816 __ mr(feedback, too_far); | 3816 __ mr(feedback, too_far); |
3817 | 3817 |
3818 __ addi(ip, receiver_map, Operand(Code::kHeaderSize - kHeapObjectTag)); | 3818 __ addi(ip, receiver_map, Operand(Code::kHeaderSize - kHeapObjectTag)); |
3819 __ Jump(ip); | 3819 __ Jump(ip); |
3820 | 3820 |
3821 __ bind(&prepare_next); | 3821 __ bind(&prepare_next); |
3822 __ addi(pointer_reg, pointer_reg, Operand(kPointerSize * 3)); | 3822 __ addi(pointer_reg, pointer_reg, Operand(kPointerSize * 3)); |
3823 __ cmpl(pointer_reg, too_far); | 3823 __ cmpl(pointer_reg, too_far); |
3824 __ blt(&next_loop); | 3824 __ blt(&next_loop); |
3825 | 3825 |
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5430 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); | 5430 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); |
5431 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5431 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
5432 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5432 kStackUnwindSpace, NULL, return_value_operand, NULL); |
5433 } | 5433 } |
5434 | 5434 |
5435 #undef __ | 5435 #undef __ |
5436 } // namespace internal | 5436 } // namespace internal |
5437 } // namespace v8 | 5437 } // namespace v8 |
5438 | 5438 |
5439 #endif // V8_TARGET_ARCH_PPC | 5439 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |