| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/interpreter/interpreter.h" | 5 #include "src/interpreter/interpreter.h" |
| 6 | 6 |
| 7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
| 8 #include "src/compiler/interpreter-assembler.h" | 8 #include "src/compiler/interpreter-assembler.h" |
| 9 #include "src/factory.h" | 9 #include "src/factory.h" |
| 10 #include "src/interpreter/bytecodes.h" | 10 #include "src/interpreter/bytecodes.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // argument. | 52 // argument. |
| 53 void Interpreter::DoLoadLiteral0(compiler::InterpreterAssembler* assembler) { | 53 void Interpreter::DoLoadLiteral0(compiler::InterpreterAssembler* assembler) { |
| 54 Node* register_index = __ BytecodeArg(0); | 54 Node* register_index = __ BytecodeArg(0); |
| 55 __ StoreRegister(__ NumberConstant(0), register_index); | 55 __ StoreRegister(__ NumberConstant(0), register_index); |
| 56 __ Dispatch(); | 56 __ Dispatch(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 | 59 |
| 60 // Return the value in register 0. | 60 // Return the value in register 0. |
| 61 void Interpreter::DoReturn(compiler::InterpreterAssembler* assembler) { | 61 void Interpreter::DoReturn(compiler::InterpreterAssembler* assembler) { |
| 62 // TODO(rmcilroy) Jump to exit trampoline. | 62 __ Return(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 | 65 |
| 66 } // namespace interpreter | 66 } // namespace interpreter |
| 67 } // namespace internal | 67 } // namespace internal |
| 68 } // namespace v8 | 68 } // namespace v8 |
| OLD | NEW |