summaryrefslogtreecommitdiff
path: root/chromium/v8/src/compiler/loop-variable-optimizer.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-20 15:06:40 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-22 11:48:58 +0000
commitdaa093eea7c773db06799a13bd7e4e2e2a9f8f14 (patch)
tree96cc5e7b9194c1b29eab927730bfa419e7111c25 /chromium/v8/src/compiler/loop-variable-optimizer.cc
parentbe59a35641616a4cf23c4a13fa0632624b021c1b (diff)
downloadqtwebengine-chromium-daa093eea7c773db06799a13bd7e4e2e2a9f8f14.tar.gz
BASELINE: Update Chromium to 63.0.3239.58
Change-Id: Ia93b322a00ba4dd4004f3bcf1254063ba90e1605 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/v8/src/compiler/loop-variable-optimizer.cc')
-rw-r--r--chromium/v8/src/compiler/loop-variable-optimizer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/v8/src/compiler/loop-variable-optimizer.cc b/chromium/v8/src/compiler/loop-variable-optimizer.cc
index 07e026eb738..d50237ad6e6 100644
--- a/chromium/v8/src/compiler/loop-variable-optimizer.cc
+++ b/chromium/v8/src/compiler/loop-variable-optimizer.cc
@@ -129,7 +129,7 @@ class LoopVariableOptimizer::VariableLimits : public ZoneObject {
// Then we go through both lists in lock-step until we find
// the common tail.
while (head_ != other_limit) {
- DCHECK(limit_count_ > 0);
+ DCHECK_LT(0, limit_count_);
limit_count_--;
other_limit = other_limit->next();
head_ = head_->next();
@@ -310,7 +310,8 @@ InductionVariable* LoopVariableOptimizer::TryGetInductionVariable(Node* phi) {
arith->opcode() == IrOpcode::kSpeculativeSafeIntegerAdd) {
arithmeticType = InductionVariable::ArithmeticType::kAddition;
} else if (arith->opcode() == IrOpcode::kJSSubtract ||
- arith->opcode() == IrOpcode::kSpeculativeNumberSubtract) {
+ arith->opcode() == IrOpcode::kSpeculativeNumberSubtract ||
+ arith->opcode() == IrOpcode::kSpeculativeSafeIntegerSubtract) {
arithmeticType = InductionVariable::ArithmeticType::kSubtraction;
} else {
return nullptr;