Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 69d7a90c9a3a69d4e955e5ab88567396703e36bf..7a38a63e128e025b18a30cc6e6a1cce18835b479 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -1314,7 +1314,9 @@ void Interpreter::DoToName(InterpreterAssembler* assembler) { |
// |
// Convert the object referenced by the accumulator to a number. |
void Interpreter::DoToNumber(InterpreterAssembler* assembler) { |
- Node* result = BuildUnaryOp(CodeFactory::ToNumber(isolate_), assembler); |
+ Node* object = __ GetAccumulator(); |
+ Node* context = __ GetContext(); |
+ Node* result = __ ToNumber(context, object); |
__ StoreRegister(result, __ BytecodeOperandReg(0)); |
__ Dispatch(); |
} |