Commit 235ed54a authored by oth's avatar oth Committed by Commit bot

[interpreter] Compilation fix for operand scale on ARM builder.

TBR=rmcilroy@chromium.org
BUG=v8:4280
LOG=N

Review-Url: https://codereview.chromium.org/2056243002
Cr-Commit-Position: refs/heads/master@{#36889}
parent c8ac0d86
......@@ -681,7 +681,7 @@ bool BytecodeArrayBuilder::OperandsAreValid(
CHECK_NE(i, 0);
CHECK(operand_types[i - 1] == OperandType::kMaybeReg ||
operand_types[i - 1] == OperandType::kReg);
if (operands[i] > 0) {
if (i > 0 && operands[i] > 0) {
Register start = Register::FromOperand(operands[i - 1]);
Register end(start.index() + static_cast<int>(operands[i]) - 1);
if (!RegisterIsValid(start) || !RegisterIsValid(end) || start > end) {
......
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