| 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 3637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3648 // Is it a fixed array? | 3648 // Is it a fixed array? |
| 3649 __ bind(&try_array); | 3649 __ bind(&try_array); |
| 3650 __ LoadP(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 3650 __ LoadP(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
| 3651 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); | 3651 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); |
| 3652 __ bne(¬_array); | 3652 __ bne(¬_array); |
| 3653 HandleArrayCases(masm, feedback, receiver_map, scratch1, r10, true, &miss); | 3653 HandleArrayCases(masm, feedback, receiver_map, scratch1, r10, true, &miss); |
| 3654 | 3654 |
| 3655 __ bind(¬_array); | 3655 __ bind(¬_array); |
| 3656 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); | 3656 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
| 3657 __ bne(&miss); | 3657 __ bne(&miss); |
| 3658 Code::Flags code_flags = | 3658 masm->isolate()->load_stub_cache()->GenerateProbe( |
| 3659 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC)); | 3659 masm, receiver, name, feedback, receiver_map, scratch1, r10); |
| 3660 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, | |
| 3661 receiver, name, feedback, | |
| 3662 receiver_map, scratch1, r10); | |
| 3663 | 3660 |
| 3664 __ bind(&miss); | 3661 __ bind(&miss); |
| 3665 LoadIC::GenerateMiss(masm); | 3662 LoadIC::GenerateMiss(masm); |
| 3666 | 3663 |
| 3667 __ bind(&load_smi_map); | 3664 __ bind(&load_smi_map); |
| 3668 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 3665 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
| 3669 __ b(&compare_map); | 3666 __ b(&compare_map); |
| 3670 } | 3667 } |
| 3671 | 3668 |
| 3672 | 3669 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3793 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); | 3790 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); |
| 3794 __ bne(¬_array); | 3791 __ bne(¬_array); |
| 3795 | 3792 |
| 3796 Register scratch2 = r11; | 3793 Register scratch2 = r11; |
| 3797 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, | 3794 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, |
| 3798 &miss); | 3795 &miss); |
| 3799 | 3796 |
| 3800 __ bind(¬_array); | 3797 __ bind(¬_array); |
| 3801 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); | 3798 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
| 3802 __ bne(&miss); | 3799 __ bne(&miss); |
| 3803 Code::Flags code_flags = | 3800 masm->isolate()->store_stub_cache()->GenerateProbe( |
| 3804 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); | 3801 masm, receiver, key, feedback, receiver_map, scratch1, scratch2); |
| 3805 masm->isolate()->stub_cache()->GenerateProbe( | |
| 3806 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, | |
| 3807 scratch1, scratch2); | |
| 3808 | 3802 |
| 3809 __ bind(&miss); | 3803 __ bind(&miss); |
| 3810 StoreIC::GenerateMiss(masm); | 3804 StoreIC::GenerateMiss(masm); |
| 3811 | 3805 |
| 3812 __ bind(&load_smi_map); | 3806 __ bind(&load_smi_map); |
| 3813 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 3807 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
| 3814 __ b(&compare_map); | 3808 __ b(&compare_map); |
| 3815 } | 3809 } |
| 3816 | 3810 |
| 3817 | 3811 |
| (...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5493 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); | 5487 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); |
| 5494 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5488 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
| 5495 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5489 kStackUnwindSpace, NULL, return_value_operand, NULL); |
| 5496 } | 5490 } |
| 5497 | 5491 |
| 5498 #undef __ | 5492 #undef __ |
| 5499 } // namespace internal | 5493 } // namespace internal |
| 5500 } // namespace v8 | 5494 } // namespace v8 |
| 5501 | 5495 |
| 5502 #endif // V8_TARGET_ARCH_PPC | 5496 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |