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

Side by Side Diff: src/builtins/ppc/builtins-ppc.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/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.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 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
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
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
OLDNEW
« no previous file with comments | « src/builtins/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698