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

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

Issue 3390008: Merge r5471 into 2.3 branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/2.3/
Patch Set: Created 10 years, 3 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/ia32/ic-ia32.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 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 } 1255 }
1256 1256
1257 1257
1258 void KeyedLoadIC::GenerateString(MacroAssembler* masm) { 1258 void KeyedLoadIC::GenerateString(MacroAssembler* masm) {
1259 // ---------- S t a t e -------------- 1259 // ---------- S t a t e --------------
1260 // -- lr : return address 1260 // -- lr : return address
1261 // -- r0 : key (index) 1261 // -- r0 : key (index)
1262 // -- r1 : receiver 1262 // -- r1 : receiver
1263 // ----------------------------------- 1263 // -----------------------------------
1264 Label miss; 1264 Label miss;
1265 Label index_out_of_range;
1266 1265
1267 Register receiver = r1; 1266 Register receiver = r1;
1268 Register index = r0; 1267 Register index = r0;
1269 Register scratch1 = r2; 1268 Register scratch1 = r2;
1270 Register scratch2 = r3; 1269 Register scratch2 = r3;
1271 Register result = r0; 1270 Register result = r0;
1272 1271
1273 StringCharAtGenerator char_at_generator(receiver, 1272 StringCharAtGenerator char_at_generator(receiver,
1274 index, 1273 index,
1275 scratch1, 1274 scratch1,
1276 scratch2, 1275 scratch2,
1277 result, 1276 result,
1278 &miss, // When not a string. 1277 &miss, // When not a string.
1279 &miss, // When not a number. 1278 &miss, // When not a number.
1280 &index_out_of_range, 1279 &miss, // When index out of range.
1281 STRING_INDEX_IS_ARRAY_INDEX); 1280 STRING_INDEX_IS_ARRAY_INDEX);
1282 char_at_generator.GenerateFast(masm); 1281 char_at_generator.GenerateFast(masm);
1283 __ Ret(); 1282 __ Ret();
1284 1283
1285 ICRuntimeCallHelper call_helper; 1284 ICRuntimeCallHelper call_helper;
1286 char_at_generator.GenerateSlow(masm, call_helper); 1285 char_at_generator.GenerateSlow(masm, call_helper);
1287 1286
1288 __ bind(&index_out_of_range);
1289 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex);
1290 __ Ret();
1291
1292 __ bind(&miss); 1287 __ bind(&miss);
1293 GenerateMiss(masm); 1288 GenerateMiss(masm);
1294 } 1289 }
1295 1290
1296 1291
1297 // Convert unsigned integer with specified number of leading zeroes in binary 1292 // Convert unsigned integer with specified number of leading zeroes in binary
1298 // representation to IEEE 754 double. 1293 // representation to IEEE 754 double.
1299 // Integer to convert is passed in register hiword. 1294 // Integer to convert is passed in register hiword.
1300 // Resulting double is returned in registers hiword:loword. 1295 // Resulting double is returned in registers hiword:loword.
1301 // This functions does not work correctly for 0. 1296 // This functions does not work correctly for 0.
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 GenerateMiss(masm); 2268 GenerateMiss(masm);
2274 } 2269 }
2275 2270
2276 2271
2277 #undef __ 2272 #undef __
2278 2273
2279 2274
2280 } } // namespace v8::internal 2275 } } // namespace v8::internal
2281 2276
2282 #endif // V8_TARGET_ARCH_ARM 2277 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698