Revision: 17942
Author: [email protected]
Date: Wed Nov 20 19:33:50 2013 UTC
Log: MIPS: Improvement of “MIPS: Fixed crashes exposed though
fuzzing.” (r17886).
BUG=
[email protected]
Review URL: https://codereview.chromium.org/78423002
Patch from Balazs Kilvady <[email protected]>.
http://code.google.com/p/v8/source/detail?r=17942
Modified:
/branches/bleeding_edge/src/mips/macro-assembler-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/macro-assembler-mips.cc Wed Nov 20
19:01:33 2013 UTC
+++ /branches/bleeding_edge/src/mips/macro-assembler-mips.cc Wed Nov 20
19:33:50 2013 UTC
@@ -5082,8 +5082,8 @@
lw(at, FieldMemOperand(string, String::kLengthOffset));
ThrowIf(ge, kIndexIsTooLarge, index, Operand(at));
- li(at, Operand(Smi::FromInt(0)));
- ThrowIf(lt, kIndexIsNegative, index, Operand(at));
+ ASSERT(Smi::FromInt(0) == 0);
+ ThrowIf(lt, kIndexIsNegative, index, Operand(zero_reg));
SmiUntag(index, index);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.