| Index: src/interpreter/bytecode-peephole-optimizer.cc
|
| diff --git a/src/interpreter/bytecode-peephole-optimizer.cc b/src/interpreter/bytecode-peephole-optimizer.cc
|
| index 7d4f852103311d00ec7862c955f00a4a0c51ae60..fcbcbf217a2a2d483aeee9fd92f996958690e03d 100644
|
| --- a/src/interpreter/bytecode-peephole-optimizer.cc
|
| +++ b/src/interpreter/bytecode-peephole-optimizer.cc
|
| @@ -96,7 +96,7 @@ bool BytecodePeepholeOptimizer::LastBytecodePutsNameInAccumulator() const {
|
|
|
| void BytecodePeepholeOptimizer::TryToRemoveLastExpressionPosition(
|
| const BytecodeNode* const current) {
|
| - if (current->source_info().is_statement() &&
|
| + if (current->source_info().is_valid() &&
|
| last_.source_info().is_expression() &&
|
| Bytecodes::IsWithoutExternalSideEffects(last_.bytecode())) {
|
| // The last bytecode has been marked as expression. It has no
|
|
|