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

Side by Side Diff: src/arm/ic-arm.cc

Issue 6606006: [Isolates] Merge 6500:6700 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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/full-codegen-arm.cc ('k') | src/arm/jump-target-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 1185
1186 GenerateFastArrayLoad( 1186 GenerateFastArrayLoad(
1187 masm, receiver, key, r4, r3, r2, r0, NULL, &slow); 1187 masm, receiver, key, r4, r3, r2, r0, NULL, &slow);
1188 __ IncrementCounter(COUNTERS->keyed_load_generic_smi(), 1, r2, r3); 1188 __ IncrementCounter(COUNTERS->keyed_load_generic_smi(), 1, r2, r3);
1189 __ Ret(); 1189 __ Ret();
1190 1190
1191 // Check whether the elements is a pixel array. 1191 // Check whether the elements is a pixel array.
1192 // r0: key 1192 // r0: key
1193 // r1: receiver 1193 // r1: receiver
1194 __ bind(&check_pixel_array); 1194 __ bind(&check_pixel_array);
1195 __ ldr(r4, FieldMemOperand(r1, JSObject::kElementsOffset)); 1195
1196 __ ldr(r3, FieldMemOperand(r4, HeapObject::kMapOffset)); 1196 GenerateFastPixelArrayLoad(masm,
1197 __ LoadRoot(ip, Heap::kPixelArrayMapRootIndex); 1197 r1,
1198 __ cmp(r3, ip); 1198 r0,
1199 __ b(ne, &check_number_dictionary); 1199 r3,
1200 __ ldr(ip, FieldMemOperand(r4, PixelArray::kLengthOffset)); 1200 r4,
1201 __ mov(r2, Operand(key, ASR, kSmiTagSize)); 1201 r2,
1202 __ cmp(r2, ip); 1202 r5,
1203 __ b(hs, &slow); 1203 r0,
1204 __ ldr(ip, FieldMemOperand(r4, PixelArray::kExternalPointerOffset)); 1204 &check_number_dictionary,
1205 __ ldrb(r2, MemOperand(ip, r2)); 1205 NULL,
1206 __ mov(r0, Operand(r2, LSL, kSmiTagSize)); // Tag result as smi. 1206 &slow);
1207 __ Ret();
1208 1207
1209 __ bind(&check_number_dictionary); 1208 __ bind(&check_number_dictionary);
1210 // Check whether the elements is a number dictionary. 1209 // Check whether the elements is a number dictionary.
1211 // r0: key 1210 // r0: key
1212 // r3: elements map 1211 // r3: elements map
1213 // r4: elements 1212 // r4: elements
1214 __ LoadRoot(ip, Heap::kHashTableMapRootIndex); 1213 __ LoadRoot(ip, Heap::kHashTableMapRootIndex);
1215 __ cmp(r3, ip); 1214 __ cmp(r3, ip);
1216 __ b(ne, &slow); 1215 __ b(ne, &slow);
1217 __ mov(r2, Operand(r0, ASR, kSmiTagSize)); 1216 __ mov(r2, Operand(r0, ASR, kSmiTagSize));
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 1709
1711 1710
1712 void PatchInlinedSmiCode(Address address) { 1711 void PatchInlinedSmiCode(Address address) {
1713 // Currently there is no smi inlining in the ARM full code generator. 1712 // Currently there is no smi inlining in the ARM full code generator.
1714 } 1713 }
1715 1714
1716 1715
1717 } } // namespace v8::internal 1716 } } // namespace v8::internal
1718 1717
1719 #endif // V8_TARGET_ARCH_ARM 1718 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/jump-target-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698