Chromium Code Reviews| Index: src/interpreter/interpreter.cc |
| diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
| index b89c7fa61c2fb9b973b718d2452af909710aba39..e94e0470eb829ade5890995cde1f03220e5f1889 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(); |
|
rmcilroy
2016/09/07 13:57:35
nit - rename "accumulator" to "object"
|
| + Node* context = __ GetContext(); |
| + Node* result = assembler->ToName(context, accumulator); |
|
rmcilroy
2016/09/07 13:57:35
nit - use "__ ToName()" instead of "assembler->ToN
|
| __ StoreRegister(result, __ BytecodeOperandReg(0)); |
| __ Dispatch(); |
| } |