From d17ea114e5ef69ad5d5d7413280a13e6428098aa Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 15 May 2018 10:20:33 +0200 Subject: BASELINE: Update Chromium to 67.0.3396.47 Change-Id: Idcb1341782e417561a2473eeecc82642dafda5b7 Reviewed-by: Michal Klocek --- chromium/v8/src/compiler/loop-variable-optimizer.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'chromium/v8/src/compiler/loop-variable-optimizer.cc') diff --git a/chromium/v8/src/compiler/loop-variable-optimizer.cc b/chromium/v8/src/compiler/loop-variable-optimizer.cc index 97d712f1257..c1938ca3045 100644 --- a/chromium/v8/src/compiler/loop-variable-optimizer.cc +++ b/chromium/v8/src/compiler/loop-variable-optimizer.cc @@ -239,7 +239,12 @@ InductionVariable* LoopVariableOptimizer::TryGetInductionVariable(Node* phi) { } // TODO(jarin) Support both sides. - if (arith->InputAt(0) != phi) return nullptr; + Node* input = arith->InputAt(0); + if (input->opcode() == IrOpcode::kSpeculativeToNumber || + input->opcode() == IrOpcode::kJSToNumber) { + input = input->InputAt(0); + } + if (input != phi) return nullptr; Node* effect_phi = nullptr; for (Node* use : loop->uses()) { -- cgit v1.2.1