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 2703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2714 __ LoadP(scratch, FieldMemOperand(spread_map, Map::kPrototypeOffset)); | 2714 __ LoadP(scratch, FieldMemOperand(spread_map, Map::kPrototypeOffset)); |
2715 __ LoadP(scratch2, NativeContextMemOperand()); | 2715 __ LoadP(scratch2, NativeContextMemOperand()); |
2716 __ LoadP(scratch2, | 2716 __ LoadP(scratch2, |
2717 ContextMemOperand(scratch2, Context::INITIAL_ARRAY_PROTOTYPE_INDEX)); | 2717 ContextMemOperand(scratch2, Context::INITIAL_ARRAY_PROTOTYPE_INDEX)); |
2718 __ cmp(scratch, scratch2); | 2718 __ cmp(scratch, scratch2); |
2719 __ bne(&runtime_call); | 2719 __ bne(&runtime_call); |
2720 | 2720 |
2721 // Check that the ArrayPrototype hasn't been modified in a way that would | 2721 // Check that the ArrayPrototype hasn't been modified in a way that would |
2722 // affect iteration. | 2722 // affect iteration. |
2723 __ LoadRoot(scratch, Heap::kArrayIteratorProtectorRootIndex); | 2723 __ LoadRoot(scratch, Heap::kArrayIteratorProtectorRootIndex); |
2724 __ LoadP(scratch, FieldMemOperand(scratch, Cell::kValueOffset)); | 2724 __ LoadP(scratch, FieldMemOperand(scratch, PropertyCell::kValueOffset)); |
2725 __ CmpSmiLiteral(scratch, Smi::FromInt(Isolate::kProtectorValid), r0); | 2725 __ CmpSmiLiteral(scratch, Smi::FromInt(Isolate::kProtectorValid), r0); |
2726 __ bne(&runtime_call); | 2726 __ bne(&runtime_call); |
2727 | 2727 |
2728 // Check that the map of the initial array iterator hasn't changed. | 2728 // Check that the map of the initial array iterator hasn't changed. |
2729 __ LoadP(scratch2, NativeContextMemOperand()); | 2729 __ LoadP(scratch2, NativeContextMemOperand()); |
2730 __ LoadP(scratch, | 2730 __ LoadP(scratch, |
2731 ContextMemOperand(scratch2, | 2731 ContextMemOperand(scratch2, |
2732 Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_INDEX)); | 2732 Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_INDEX)); |
2733 __ LoadP(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); | 2733 __ LoadP(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); |
2734 __ LoadP(scratch2, | 2734 __ LoadP(scratch2, |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3135 __ CallRuntime(Runtime::kThrowStackOverflow); | 3135 __ CallRuntime(Runtime::kThrowStackOverflow); |
3136 __ bkpt(0); | 3136 __ bkpt(0); |
3137 } | 3137 } |
3138 } | 3138 } |
3139 | 3139 |
3140 #undef __ | 3140 #undef __ |
3141 } // namespace internal | 3141 } // namespace internal |
3142 } // namespace v8 | 3142 } // namespace v8 |
3143 | 3143 |
3144 #endif // V8_TARGET_ARCH_PPC | 3144 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |