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/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 2792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2803 __ LoadP(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); | 2803 __ LoadP(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); |
2804 __ LoadP(scratch2, | 2804 __ LoadP(scratch2, |
2805 ContextMemOperand( | 2805 ContextMemOperand( |
2806 scratch2, Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_MAP_INDEX)); | 2806 scratch2, Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_MAP_INDEX)); |
2807 __ cmp(scratch, scratch2); | 2807 __ cmp(scratch, scratch2); |
2808 __ bne(&runtime_call); | 2808 __ bne(&runtime_call); |
2809 | 2809 |
2810 // For FastPacked kinds, iteration will have the same effect as simply | 2810 // For FastPacked kinds, iteration will have the same effect as simply |
2811 // accessing each property in order. | 2811 // accessing each property in order. |
2812 Label no_protector_check; | 2812 Label no_protector_check; |
2813 __ LoadP(scratch, FieldMemOperand(spread_map, Map::kBitField2Offset)); | 2813 __ lbz(scratch, FieldMemOperand(spread_map, Map::kBitField2Offset)); |
2814 __ DecodeField<Map::ElementsKindBits>(scratch); | 2814 __ DecodeField<Map::ElementsKindBits>(scratch); |
2815 __ cmpi(scratch, Operand(FAST_HOLEY_ELEMENTS)); | 2815 __ cmpi(scratch, Operand(FAST_HOLEY_ELEMENTS)); |
2816 __ bgt(&runtime_call); | 2816 __ bgt(&runtime_call); |
2817 // For non-FastHoley kinds, we can skip the protector check. | 2817 // For non-FastHoley kinds, we can skip the protector check. |
2818 __ cmpi(scratch, Operand(FAST_SMI_ELEMENTS)); | 2818 __ cmpi(scratch, Operand(FAST_SMI_ELEMENTS)); |
2819 __ beq(&no_protector_check); | 2819 __ beq(&no_protector_check); |
2820 __ cmpi(scratch, Operand(FAST_ELEMENTS)); | 2820 __ cmpi(scratch, Operand(FAST_ELEMENTS)); |
2821 __ beq(&no_protector_check); | 2821 __ beq(&no_protector_check); |
2822 // Check the ArrayProtector cell. | 2822 // Check the ArrayProtector cell. |
2823 __ LoadRoot(scratch, Heap::kArrayProtectorRootIndex); | 2823 __ LoadRoot(scratch, Heap::kArrayProtectorRootIndex); |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3205 __ CallRuntime(Runtime::kThrowStackOverflow); | 3205 __ CallRuntime(Runtime::kThrowStackOverflow); |
3206 __ bkpt(0); | 3206 __ bkpt(0); |
3207 } | 3207 } |
3208 } | 3208 } |
3209 | 3209 |
3210 #undef __ | 3210 #undef __ |
3211 } // namespace internal | 3211 } // namespace internal |
3212 } // namespace v8 | 3212 } // namespace v8 |
3213 | 3213 |
3214 #endif // V8_TARGET_ARCH_PPC | 3214 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |