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

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

Issue 2668303002: PPC/S390: Use Load Byte to fix endianess issue (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') | no next file » | 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 2804 matching lines...) Expand 10 before | Expand all | Expand 10 after
2815 __ LoadP(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); 2815 __ LoadP(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset));
2816 __ LoadP(scratch2, 2816 __ LoadP(scratch2,
2817 ContextMemOperand( 2817 ContextMemOperand(
2818 scratch2, Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_MAP_INDEX)); 2818 scratch2, Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_MAP_INDEX));
2819 __ CmpP(scratch, scratch2); 2819 __ CmpP(scratch, scratch2);
2820 __ bne(&runtime_call); 2820 __ bne(&runtime_call);
2821 2821
2822 // For FastPacked kinds, iteration will have the same effect as simply 2822 // For FastPacked kinds, iteration will have the same effect as simply
2823 // accessing each property in order. 2823 // accessing each property in order.
2824 Label no_protector_check; 2824 Label no_protector_check;
2825 __ LoadP(scratch, FieldMemOperand(spread_map, Map::kBitField2Offset)); 2825 __ LoadlB(scratch, FieldMemOperand(spread_map, Map::kBitField2Offset));
2826 __ DecodeField<Map::ElementsKindBits>(scratch); 2826 __ DecodeField<Map::ElementsKindBits>(scratch);
2827 __ CmpP(scratch, Operand(FAST_HOLEY_ELEMENTS)); 2827 __ CmpP(scratch, Operand(FAST_HOLEY_ELEMENTS));
2828 __ bgt(&runtime_call); 2828 __ bgt(&runtime_call);
2829 // For non-FastHoley kinds, we can skip the protector check. 2829 // For non-FastHoley kinds, we can skip the protector check.
2830 __ CmpP(scratch, Operand(FAST_SMI_ELEMENTS)); 2830 __ CmpP(scratch, Operand(FAST_SMI_ELEMENTS));
2831 __ beq(&no_protector_check); 2831 __ beq(&no_protector_check);
2832 __ CmpP(scratch, Operand(FAST_ELEMENTS)); 2832 __ CmpP(scratch, Operand(FAST_ELEMENTS));
2833 __ beq(&no_protector_check); 2833 __ beq(&no_protector_check);
2834 // Check the ArrayProtector cell. 2834 // Check the ArrayProtector cell.
2835 __ LoadRoot(scratch, Heap::kArrayProtectorRootIndex); 2835 __ LoadRoot(scratch, Heap::kArrayProtectorRootIndex);
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
3217 __ bkpt(0); 3217 __ bkpt(0);
3218 } 3218 }
3219 } 3219 }
3220 3220
3221 #undef __ 3221 #undef __
3222 3222
3223 } // namespace internal 3223 } // namespace internal
3224 } // namespace v8 3224 } // namespace v8
3225 3225
3226 #endif // V8_TARGET_ARCH_S390 3226 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698