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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 2736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2747 | 2747 |
2748 // Check that we have the original ArrayPrototype. | 2748 // Check that we have the original ArrayPrototype. |
2749 __ ld(scratch, FieldMemOperand(spread_map, Map::kPrototypeOffset)); | 2749 __ ld(scratch, FieldMemOperand(spread_map, Map::kPrototypeOffset)); |
2750 __ ld(scratch2, ContextMemOperand(native_context, | 2750 __ ld(scratch2, ContextMemOperand(native_context, |
2751 Context::INITIAL_ARRAY_PROTOTYPE_INDEX)); | 2751 Context::INITIAL_ARRAY_PROTOTYPE_INDEX)); |
2752 __ Branch(&runtime_call, ne, scratch, Operand(scratch2)); | 2752 __ Branch(&runtime_call, ne, scratch, Operand(scratch2)); |
2753 | 2753 |
2754 // Check that the ArrayPrototype hasn't been modified in a way that would | 2754 // Check that the ArrayPrototype hasn't been modified in a way that would |
2755 // affect iteration. | 2755 // affect iteration. |
2756 __ LoadRoot(scratch, Heap::kArrayIteratorProtectorRootIndex); | 2756 __ LoadRoot(scratch, Heap::kArrayIteratorProtectorRootIndex); |
2757 __ lw(scratch, FieldMemOperand(scratch, Cell::kValueOffset)); | 2757 __ lw(scratch, FieldMemOperand(scratch, PropertyCell::kValueOffset)); |
2758 __ Branch(&runtime_call, ne, scratch, | 2758 __ Branch(&runtime_call, ne, scratch, |
2759 Operand(Smi::FromInt(Isolate::kProtectorValid))); | 2759 Operand(Smi::FromInt(Isolate::kProtectorValid))); |
2760 | 2760 |
2761 // Check that the map of the initial array iterator hasn't changed. | 2761 // Check that the map of the initial array iterator hasn't changed. |
2762 __ ld(scratch, | 2762 __ ld(scratch, |
2763 ContextMemOperand(native_context, | 2763 ContextMemOperand(native_context, |
2764 Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_INDEX)); | 2764 Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_INDEX)); |
2765 __ ld(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); | 2765 __ ld(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); |
2766 __ ld(scratch2, | 2766 __ ld(scratch2, |
2767 ContextMemOperand(native_context, | 2767 ContextMemOperand(native_context, |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3219 __ break_(0xCC); | 3219 __ break_(0xCC); |
3220 } | 3220 } |
3221 } | 3221 } |
3222 | 3222 |
3223 #undef __ | 3223 #undef __ |
3224 | 3224 |
3225 } // namespace internal | 3225 } // namespace internal |
3226 } // namespace v8 | 3226 } // namespace v8 |
3227 | 3227 |
3228 #endif // V8_TARGET_ARCH_MIPS64 | 3228 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |