Commit c41ca55f authored by plind44@gmail.com's avatar plind44@gmail.com

MIPS: Improvement of “MIPS: Fixed crashes exposed though fuzzing.” (r17886).

BUG=
R=plind44@gmail.com

Review URL: https://codereview.chromium.org/78423002

Patch from Balazs Kilvady <kilvadyb@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17942 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 391f05ae
...@@ -5082,8 +5082,8 @@ void MacroAssembler::EmitSeqStringSetCharCheck(Register string, ...@@ -5082,8 +5082,8 @@ void MacroAssembler::EmitSeqStringSetCharCheck(Register string,
lw(at, FieldMemOperand(string, String::kLengthOffset)); lw(at, FieldMemOperand(string, String::kLengthOffset));
ThrowIf(ge, kIndexIsTooLarge, index, Operand(at)); ThrowIf(ge, kIndexIsTooLarge, index, Operand(at));
li(at, Operand(Smi::FromInt(0))); ASSERT(Smi::FromInt(0) == 0);
ThrowIf(lt, kIndexIsNegative, index, Operand(at)); ThrowIf(lt, kIndexIsNegative, index, Operand(zero_reg));
SmiUntag(index, index); SmiUntag(index, index);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment