Revision: 9032
Author: [email protected]
Date: Mon Aug 29 00:13:06 2011
Log: Landing: MIPS: Fixed a bug in a special case of
MacroAssembler::Ext.
Original code review: http://codereview.chromium.org/7777005/
Review URL: http://codereview.chromium.org/7778007
http://code.google.com/p/v8/source/detail?r=9032
Modified:
/branches/bleeding_edge/src/mips/macro-assembler-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/macro-assembler-mips.cc Thu Aug 25
05:12:25 2011
+++ /branches/bleeding_edge/src/mips/macro-assembler-mips.cc Mon Aug 29
00:13:06 2011
@@ -765,9 +765,7 @@
// Move rs to rt and shift it left then right to get the
// desired bitfield on the right side and zeroes on the left.
int shift_left = 32 - (pos + size);
- if (shift_left > 0) {
- sll(rt, rs, shift_left);
- }
+ sll(rt, rs, shift_left); // Acts as a move if shift_left == 0.
int shift_right = 32 - size;
if (shift_right > 0) {
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev