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

Side by Side Diff: src/builtins/s390/builtins-s390.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/ppc/builtins-ppc.cc ('k') | src/builtins/x64/builtins-x64.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_S390 5 #if V8_TARGET_ARCH_S390
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 2716 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 __ LoadP(scratch, FieldMemOperand(spread_map, Map::kPrototypeOffset)); 2727 __ LoadP(scratch, FieldMemOperand(spread_map, Map::kPrototypeOffset));
2728 __ LoadP(scratch2, NativeContextMemOperand()); 2728 __ LoadP(scratch2, NativeContextMemOperand());
2729 __ LoadP(scratch2, 2729 __ LoadP(scratch2,
2730 ContextMemOperand(scratch2, Context::INITIAL_ARRAY_PROTOTYPE_INDEX)); 2730 ContextMemOperand(scratch2, Context::INITIAL_ARRAY_PROTOTYPE_INDEX));
2731 __ CmpP(scratch, scratch2); 2731 __ CmpP(scratch, scratch2);
2732 __ bne(&runtime_call); 2732 __ bne(&runtime_call);
2733 2733
2734 // Check that the ArrayPrototype hasn't been modified in a way that would 2734 // Check that the ArrayPrototype hasn't been modified in a way that would
2735 // affect iteration. 2735 // affect iteration.
2736 __ LoadRoot(scratch, Heap::kArrayIteratorProtectorRootIndex); 2736 __ LoadRoot(scratch, Heap::kArrayIteratorProtectorRootIndex);
2737 __ LoadP(scratch, FieldMemOperand(scratch, Cell::kValueOffset)); 2737 __ LoadP(scratch, FieldMemOperand(scratch, PropertyCell::kValueOffset));
2738 __ CmpSmiLiteral(scratch, Smi::FromInt(Isolate::kProtectorValid), r0); 2738 __ CmpSmiLiteral(scratch, Smi::FromInt(Isolate::kProtectorValid), r0);
2739 __ bne(&runtime_call); 2739 __ bne(&runtime_call);
2740 2740
2741 // Check that the map of the initial array iterator hasn't changed. 2741 // Check that the map of the initial array iterator hasn't changed.
2742 __ LoadP(scratch2, NativeContextMemOperand()); 2742 __ LoadP(scratch2, NativeContextMemOperand());
2743 __ LoadP(scratch, 2743 __ LoadP(scratch,
2744 ContextMemOperand(scratch2, 2744 ContextMemOperand(scratch2,
2745 Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_INDEX)); 2745 Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_INDEX));
2746 __ LoadP(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); 2746 __ LoadP(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset));
2747 __ LoadP(scratch2, 2747 __ LoadP(scratch2,
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
3148 __ bkpt(0); 3148 __ bkpt(0);
3149 } 3149 }
3150 } 3150 }
3151 3151
3152 #undef __ 3152 #undef __
3153 3153
3154 } // namespace internal 3154 } // namespace internal
3155 } // namespace v8 3155 } // namespace v8
3156 3156
3157 #endif // V8_TARGET_ARCH_S390 3157 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698