Chromium Code Reviews| Index: src/interpreter/interpreter.cc |
| diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
| index b89c7fa61c2fb9b973b718d2452af909710aba39..0404a17240731580ae08f23c78c1f358e2f40be9 100644 |
| --- a/src/interpreter/interpreter.cc |
| +++ b/src/interpreter/interpreter.cc |
| @@ -1312,7 +1312,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* accumulator = __ GetAccumulator(); |
|
rmcilroy
2016/09/09 11:03:17
/s/accumulator/object
|
| + Node* context = __ GetContext(); |
| + Node* result = assembler->ToNumber(context, accumulator); |
|
rmcilroy
2016/09/09 11:03:17
/s/assembler->/__
|
| __ StoreRegister(result, __ BytecodeOperandReg(0)); |
| __ Dispatch(); |
| } |