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

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

Issue 11377132: Support all fast elements kinds in the major array operations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments (and rebased) Created 8 years, 1 month 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/arm/macro-assembler-arm.h » ('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 // 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 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 __ bind(fast_double); 1372 __ bind(fast_double);
1373 if (check_map == kCheckMap) { 1373 if (check_map == kCheckMap) {
1374 // Check for fast double array case. If this fails, call through to the 1374 // Check for fast double array case. If this fails, call through to the
1375 // runtime. 1375 // runtime.
1376 __ CompareRoot(elements_map, Heap::kFixedDoubleArrayMapRootIndex); 1376 __ CompareRoot(elements_map, Heap::kFixedDoubleArrayMapRootIndex);
1377 __ b(ne, slow); 1377 __ b(ne, slow);
1378 } 1378 }
1379 __ bind(&fast_double_without_map_check); 1379 __ bind(&fast_double_without_map_check);
1380 __ StoreNumberToDoubleElements(value, 1380 __ StoreNumberToDoubleElements(value,
1381 key, 1381 key,
1382 receiver,
1383 elements, // Overwritten. 1382 elements, // Overwritten.
1384 r3, // Scratch regs... 1383 r3, // Scratch regs...
1385 r4, 1384 r4,
1386 r5, 1385 r5,
1387 r6, 1386 r6,
1388 &transition_double_elements); 1387 &transition_double_elements);
1389 if (increment_length == kIncrementLength) { 1388 if (increment_length == kIncrementLength) {
1390 // Add 1 to receiver->length. 1389 // Add 1 to receiver->length.
1391 __ add(scratch_value, key, Operand(Smi::FromInt(1))); 1390 __ add(scratch_value, key, Operand(Smi::FromInt(1)));
1392 __ str(scratch_value, FieldMemOperand(receiver, JSArray::kLengthOffset)); 1391 __ str(scratch_value, FieldMemOperand(receiver, JSArray::kLengthOffset));
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 } else { 1770 } else {
1772 ASSERT(Assembler::GetCondition(branch_instr) == ne); 1771 ASSERT(Assembler::GetCondition(branch_instr) == ne);
1773 patcher.EmitCondition(eq); 1772 patcher.EmitCondition(eq);
1774 } 1773 }
1775 } 1774 }
1776 1775
1777 1776
1778 } } // namespace v8::internal 1777 } } // namespace v8::internal
1779 1778
1780 #endif // V8_TARGET_ARCH_ARM 1779 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698