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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 10692130: Swap bitfield3 and backpointer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: u Created 8 years, 5 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 | « no previous file | src/arm/lithium-arm.h » ('j') | src/ia32/macro-assembler-ia32.cc » ('J')
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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 // to do a slow check. 1134 // to do a slow check.
1135 Label fixed_array; 1135 Label fixed_array;
1136 __ mov(r2, r0); 1136 __ mov(r2, r0);
1137 __ ldr(r1, FieldMemOperand(r2, HeapObject::kMapOffset)); 1137 __ ldr(r1, FieldMemOperand(r2, HeapObject::kMapOffset));
1138 __ LoadRoot(ip, Heap::kMetaMapRootIndex); 1138 __ LoadRoot(ip, Heap::kMetaMapRootIndex);
1139 __ cmp(r1, ip); 1139 __ cmp(r1, ip);
1140 __ b(ne, &fixed_array); 1140 __ b(ne, &fixed_array);
1141 1141
1142 // We got a map in register r0. Get the enumeration cache from it. 1142 // We got a map in register r0. Get the enumeration cache from it.
1143 __ bind(&use_cache); 1143 __ bind(&use_cache);
1144 __ LoadInstanceDescriptors(r0, r1); 1144 __ LoadInstanceDescriptors(r0, r1, r2);
1145 __ ldr(r1, FieldMemOperand(r1, DescriptorArray::kEnumerationIndexOffset)); 1145 __ ldr(r1, FieldMemOperand(r1, DescriptorArray::kEnumerationIndexOffset));
1146 __ ldr(r2, FieldMemOperand(r1, DescriptorArray::kEnumCacheBridgeCacheOffset)); 1146 __ ldr(r2, FieldMemOperand(r1, DescriptorArray::kEnumCacheBridgeCacheOffset));
1147 1147
1148 // Set up the four remaining stack slots. 1148 // Set up the four remaining stack slots.
1149 __ push(r0); // Map. 1149 __ push(r0); // Map.
1150 __ ldr(r1, FieldMemOperand(r2, FixedArray::kLengthOffset)); 1150 __ ldr(r1, FieldMemOperand(r2, FixedArray::kLengthOffset));
1151 __ mov(r0, Operand(Smi::FromInt(0))); 1151 __ mov(r0, Operand(Smi::FromInt(0)));
1152 // Push enumeration cache, enumeration cache length (as smi) and zero. 1152 // Push enumeration cache, enumeration cache length (as smi) and zero.
1153 __ Push(r2, r1, r0); 1153 __ Push(r2, r1, r0);
1154 __ jmp(&loop); 1154 __ jmp(&loop);
(...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after
2730 // Check for fast case object. Generate false result for slow case object. 2730 // Check for fast case object. Generate false result for slow case object.
2731 __ ldr(r2, FieldMemOperand(r0, JSObject::kPropertiesOffset)); 2731 __ ldr(r2, FieldMemOperand(r0, JSObject::kPropertiesOffset));
2732 __ ldr(r2, FieldMemOperand(r2, HeapObject::kMapOffset)); 2732 __ ldr(r2, FieldMemOperand(r2, HeapObject::kMapOffset));
2733 __ LoadRoot(ip, Heap::kHashTableMapRootIndex); 2733 __ LoadRoot(ip, Heap::kHashTableMapRootIndex);
2734 __ cmp(r2, ip); 2734 __ cmp(r2, ip);
2735 __ b(eq, if_false); 2735 __ b(eq, if_false);
2736 2736
2737 // Look for valueOf symbol in the descriptor array, and indicate false if 2737 // Look for valueOf symbol in the descriptor array, and indicate false if
2738 // found. The type is not checked, so if it is a transition it is a false 2738 // found. The type is not checked, so if it is a transition it is a false
2739 // negative. 2739 // negative.
2740 __ LoadInstanceDescriptors(r1, r4); 2740 __ LoadInstanceDescriptors(r1, r4, r3);
2741 __ ldr(r3, FieldMemOperand(r4, FixedArray::kLengthOffset)); 2741 __ ldr(r3, FieldMemOperand(r4, FixedArray::kLengthOffset));
2742 // r4: descriptor array 2742 // r4: descriptor array
2743 // r3: length of descriptor array 2743 // r3: length of descriptor array
2744 // Calculate the end of the descriptor array. 2744 // Calculate the end of the descriptor array.
2745 STATIC_ASSERT(kSmiTag == 0); 2745 STATIC_ASSERT(kSmiTag == 0);
2746 STATIC_ASSERT(kSmiTagSize == 1); 2746 STATIC_ASSERT(kSmiTagSize == 1);
2747 STATIC_ASSERT(kPointerSize == 4); 2747 STATIC_ASSERT(kPointerSize == 4);
2748 __ add(r2, r4, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 2748 __ add(r2, r4, Operand(FixedArray::kHeaderSize - kHeapObjectTag));
2749 __ add(r2, r2, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize)); 2749 __ add(r2, r2, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize));
2750 2750
(...skipping 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after
4577 *context_length = 0; 4577 *context_length = 0;
4578 return previous_; 4578 return previous_;
4579 } 4579 }
4580 4580
4581 4581
4582 #undef __ 4582 #undef __
4583 4583
4584 } } // namespace v8::internal 4584 } } // namespace v8::internal
4585 4585
4586 #endif // V8_TARGET_ARCH_ARM 4586 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.h » ('j') | src/ia32/macro-assembler-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698