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

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 306513002: Convert ElementsKind into a BitField (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.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 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "v8.h" 7 #include "v8.h"
8 8
9 #if V8_TARGET_ARCH_ARM 9 #if V8_TARGET_ARCH_ARM
10 10
(...skipping 3928 matching lines...) Expand 10 before | Expand all | Expand 10 after
3939 Register current = scratch0; 3939 Register current = scratch0;
3940 Label loop_again; 3940 Label loop_again;
3941 3941
3942 // scratch contained elements pointer. 3942 // scratch contained elements pointer.
3943 mov(current, object); 3943 mov(current, object);
3944 3944
3945 // Loop based on the map going up the prototype chain. 3945 // Loop based on the map going up the prototype chain.
3946 bind(&loop_again); 3946 bind(&loop_again);
3947 ldr(current, FieldMemOperand(current, HeapObject::kMapOffset)); 3947 ldr(current, FieldMemOperand(current, HeapObject::kMapOffset));
3948 ldr(scratch1, FieldMemOperand(current, Map::kBitField2Offset)); 3948 ldr(scratch1, FieldMemOperand(current, Map::kBitField2Offset));
3949 Ubfx(scratch1, scratch1, Map::kElementsKindShift, Map::kElementsKindBitCount); 3949 DecodeField<Map::ElementsKindBits>(scratch1);
3950 cmp(scratch1, Operand(DICTIONARY_ELEMENTS)); 3950 cmp(scratch1, Operand(DICTIONARY_ELEMENTS));
3951 b(eq, found); 3951 b(eq, found);
3952 ldr(current, FieldMemOperand(current, Map::kPrototypeOffset)); 3952 ldr(current, FieldMemOperand(current, Map::kPrototypeOffset));
3953 cmp(current, Operand(factory->null_value())); 3953 cmp(current, Operand(factory->null_value()));
3954 b(ne, &loop_again); 3954 b(ne, &loop_again);
3955 } 3955 }
3956 3956
3957 3957
3958 #ifdef DEBUG 3958 #ifdef DEBUG
3959 bool AreAliased(Register reg1, 3959 bool AreAliased(Register reg1,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
4038 sub(result, result, Operand(dividend)); 4038 sub(result, result, Operand(dividend));
4039 } 4039 }
4040 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift())); 4040 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift()));
4041 add(result, result, Operand(dividend, LSR, 31)); 4041 add(result, result, Operand(dividend, LSR, 31));
4042 } 4042 }
4043 4043
4044 4044
4045 } } // namespace v8::internal 4045 } } // namespace v8::internal
4046 4046
4047 #endif // V8_TARGET_ARCH_ARM 4047 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698