Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: src/builtins/mips64/builtins-mips64.cc

Issue 2658573008: Convert the array iterator protector to a PropertyCell. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/mips/builtins-mips.cc ('k') | src/builtins/ppc/builtins-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/builtins/mips/builtins-mips.cc ('k') | src/builtins/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698