| 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 #ifndef V8_COMPILER_INTERPRETER_CODEGEN_H_ | 5 #ifndef V8_COMPILER_INTERPRETER_CODEGEN_H_ |
| 6 #define V8_COMPILER_INTERPRETER_CODEGEN_H_ | 6 #define V8_COMPILER_INTERPRETER_CODEGEN_H_ |
| 7 | 7 |
| 8 // Clients of this interface shouldn't depend on lots of compiler internals. | 8 // Clients of this interface shouldn't depend on lots of compiler internals. |
| 9 // Do not include anything from src/compiler here! | 9 // Do not include anything from src/compiler here! |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 interpreter::Bytecode bytecode); | 36 interpreter::Bytecode bytecode); |
| 37 virtual ~InterpreterAssembler(); | 37 virtual ~InterpreterAssembler(); |
| 38 | 38 |
| 39 Handle<Code> GenerateCode(); | 39 Handle<Code> GenerateCode(); |
| 40 | 40 |
| 41 // Constants. | 41 // Constants. |
| 42 Node* Int32Constant(int value); | 42 Node* Int32Constant(int value); |
| 43 Node* NumberConstant(double value); | 43 Node* NumberConstant(double value); |
| 44 Node* HeapConstant(Unique<HeapObject> object); | 44 Node* HeapConstant(Unique<HeapObject> object); |
| 45 | 45 |
| 46 // Returns the bytecode argument |index| for the current bytecode. | 46 // Returns the bytecode operand |index| for the current bytecode. |
| 47 Node* BytecodeArg(int index); | 47 Node* BytecodeOperand(int index); |
| 48 | 48 |
| 49 // Loads from and stores to the interpreter register file. | 49 // Loads from and stores to the interpreter register file. |
| 50 Node* LoadRegister(int index); | 50 Node* LoadRegister(int index); |
| 51 Node* LoadRegister(Node* index); | 51 Node* LoadRegister(Node* index); |
| 52 Node* StoreRegister(Node* value, int index); | 52 Node* StoreRegister(Node* value, int index); |
| 53 Node* StoreRegister(Node* value, Node* index); | 53 Node* StoreRegister(Node* value, Node* index); |
| 54 | 54 |
| 55 // Returns from the function. | 55 // Returns from the function. |
| 56 void Return(); | 56 void Return(); |
| 57 | 57 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 bool code_generated_; | 105 bool code_generated_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 107 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace interpreter | 110 } // namespace interpreter |
| 111 } // namespace internal | 111 } // namespace internal |
| 112 } // namespace v8 | 112 } // namespace v8 |
| 113 | 113 |
| 114 #endif // V8_COMPILER_INTERPRETER_CODEGEN_H_ | 114 #endif // V8_COMPILER_INTERPRETER_CODEGEN_H_ |
| OLD | NEW |