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 23 matching lines...) Expand all Loading... | |
34 InterpreterAssembler(Isolate* isolate, Zone* zone, | 34 InterpreterAssembler(Isolate* isolate, Zone* zone, |
35 interpreter::Bytecode bytecode); | 35 interpreter::Bytecode bytecode); |
36 virtual ~InterpreterAssembler(); | 36 virtual ~InterpreterAssembler(); |
37 | 37 |
38 Handle<Code> GenerateCode(); | 38 Handle<Code> GenerateCode(); |
39 | 39 |
40 // Constants. | 40 // Constants. |
41 Node* Int32Constant(int value); | 41 Node* Int32Constant(int value); |
42 Node* NumberConstant(double value); | 42 Node* NumberConstant(double value); |
43 | 43 |
44 // Returns the bytecode argument |index| for the current bytecode. | 44 // Returns the bytecode argument |index| for the current bytecode. |
rmcilroy
2015/07/28 08:58:12
update comment too please.
oth
2015/07/28 13:24:14
Done. sed'ited it and missed this, doh!
| |
45 Node* BytecodeArg(int index); | 45 Node* BytecodeOperand(int index); |
46 | 46 |
47 // Loads from and stores to the interpreter register file. | 47 // Loads from and stores to the interpreter register file. |
48 Node* LoadRegister(int index); | 48 Node* LoadRegister(int index); |
49 Node* LoadRegister(Node* index); | 49 Node* LoadRegister(Node* index); |
50 Node* StoreRegister(Node* value, int index); | 50 Node* StoreRegister(Node* value, int index); |
51 Node* StoreRegister(Node* value, Node* index); | 51 Node* StoreRegister(Node* value, Node* index); |
52 | 52 |
53 // Dispatch to the bytecode. | 53 // Dispatch to the bytecode. |
54 void Dispatch(); | 54 void Dispatch(); |
55 | 55 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 bool code_generated_; | 98 bool code_generated_; |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 100 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
101 }; | 101 }; |
102 | 102 |
103 } // namespace interpreter | 103 } // namespace interpreter |
104 } // namespace internal | 104 } // namespace internal |
105 } // namespace v8 | 105 } // namespace v8 |
106 | 106 |
107 #endif // V8_COMPILER_INTERPRETER_CODEGEN_H_ | 107 #endif // V8_COMPILER_INTERPRETER_CODEGEN_H_ |
OLD | NEW |