Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 8d58c288b20c0603381b70ac34e4c4b1b1248fde..0713ac98669186eaba4e3e7deaeda739b3e7a392 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1319,7 +1319,11 @@ void BytecodeGraphBuilder::VisitToObject() { |
} |
void BytecodeGraphBuilder::VisitToNumber() { |
- BuildCastOperator(javascript()->ToNumber()); |
+ FrameStateBeforeAndAfter states(this); |
+ Node* value = |
+ NewNode(javascript()->ToNumber(), environment()->LookupAccumulator()); |
+ environment()->BindRegister(bytecode_iterator().GetRegisterOperand(0), value, |
+ &states); |
} |
void BytecodeGraphBuilder::VisitJump() { BuildJump(); } |