Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index ef45b5abbe512a5ef7692b91052e8e34e93cbf26..280a9988b0450900a9bd4cf5fc7b7052f1fb377c 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -1303,7 +1303,9 @@ void Interpreter::DoUnaryOpWithFeedback(InterpreterAssembler* assembler) { |
// |
// Convert the object referenced by the accumulator to a name. |
void Interpreter::DoToName(InterpreterAssembler* assembler) { |
- Node* result = BuildUnaryOp(CodeFactory::ToName(isolate_), assembler); |
+ Node* accumulator = __ GetAccumulator(); |
+ Node* context = __ GetContext(); |
+ Node* result = assembler->ToName(context, accumulator); |
__ StoreRegister(result, __ BytecodeOperandReg(0)); |
__ Dispatch(); |
} |