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

Side by Side Diff: src/builtins/ppc/builtins-ppc.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 | « no previous file | 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 2792 matching lines...) Expand 10 before | Expand all | Expand 10 after
2803 __ LoadP(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset)); 2803 __ LoadP(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset));
2804 __ LoadP(scratch2, 2804 __ LoadP(scratch2,
2805 ContextMemOperand( 2805 ContextMemOperand(
2806 scratch2, Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_MAP_INDEX)); 2806 scratch2, Context::INITIAL_ARRAY_ITERATOR_PROTOTYPE_MAP_INDEX));
2807 __ cmp(scratch, scratch2); 2807 __ cmp(scratch, scratch2);
2808 __ bne(&runtime_call); 2808 __ bne(&runtime_call);
2809 2809
2810 // For FastPacked kinds, iteration will have the same effect as simply 2810 // For FastPacked kinds, iteration will have the same effect as simply
2811 // accessing each property in order. 2811 // accessing each property in order.
2812 Label no_protector_check; 2812 Label no_protector_check;
2813 __ LoadP(scratch, FieldMemOperand(spread_map, Map::kBitField2Offset)); 2813 __ lbz(scratch, FieldMemOperand(spread_map, Map::kBitField2Offset));
2814 __ DecodeField<Map::ElementsKindBits>(scratch); 2814 __ DecodeField<Map::ElementsKindBits>(scratch);
2815 __ cmpi(scratch, Operand(FAST_HOLEY_ELEMENTS)); 2815 __ cmpi(scratch, Operand(FAST_HOLEY_ELEMENTS));
2816 __ bgt(&runtime_call); 2816 __ bgt(&runtime_call);
2817 // For non-FastHoley kinds, we can skip the protector check. 2817 // For non-FastHoley kinds, we can skip the protector check.
2818 __ cmpi(scratch, Operand(FAST_SMI_ELEMENTS)); 2818 __ cmpi(scratch, Operand(FAST_SMI_ELEMENTS));
2819 __ beq(&no_protector_check); 2819 __ beq(&no_protector_check);
2820 __ cmpi(scratch, Operand(FAST_ELEMENTS)); 2820 __ cmpi(scratch, Operand(FAST_ELEMENTS));
2821 __ beq(&no_protector_check); 2821 __ beq(&no_protector_check);
2822 // Check the ArrayProtector cell. 2822 // Check the ArrayProtector cell.
2823 __ LoadRoot(scratch, Heap::kArrayProtectorRootIndex); 2823 __ LoadRoot(scratch, Heap::kArrayProtectorRootIndex);
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
3205 __ CallRuntime(Runtime::kThrowStackOverflow); 3205 __ CallRuntime(Runtime::kThrowStackOverflow);
3206 __ bkpt(0); 3206 __ bkpt(0);
3207 } 3207 }
3208 } 3208 }
3209 3209
3210 #undef __ 3210 #undef __
3211 } // namespace internal 3211 } // namespace internal
3212 } // namespace v8 3212 } // namespace v8
3213 3213
3214 #endif // V8_TARGET_ARCH_PPC 3214 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698