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

Unified Diff: src/interpreter/bytecode-array-builder.cc

Issue 2056243002: [interpreter] Compilation fix for operand scale on ARM builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-array-builder.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index 20e8b71b001c1f360c70056969518b37b8f0cbfe..262f9b9dc280aedcaec2fafc82127e8f07103b60 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698