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_WASM_COMPILER_H_ | 5 #ifndef V8_COMPILER_WASM_COMPILER_H_ |
6 #define V8_COMPILER_WASM_COMPILER_H_ | 6 #define V8_COMPILER_WASM_COMPILER_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/wasm/wasm-opcodes.h" | 10 #include "src/wasm/wasm-opcodes.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 Node* Effect() { return *effect_; } | 125 Node* Effect() { return *effect_; } |
126 | 126 |
127 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } | 127 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } |
128 | 128 |
129 void set_control_ptr(Node** control) { this->control_ = control; } | 129 void set_control_ptr(Node** control) { this->control_ = control; } |
130 | 130 |
131 void set_effect_ptr(Node** effect) { this->effect_ = effect; } | 131 void set_effect_ptr(Node** effect) { this->effect_ = effect; } |
132 | 132 |
133 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } | 133 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } |
134 | 134 |
135 void Int64LoweringForTesting(); | 135 void Int64LoweringForTesting(Signature<MachineRepresentation>* signature); |
136 | 136 |
137 private: | 137 private: |
138 static const int kDefaultBufferSize = 16; | 138 static const int kDefaultBufferSize = 16; |
139 friend class WasmTrapHelper; | 139 friend class WasmTrapHelper; |
140 | 140 |
141 Zone* zone_; | 141 Zone* zone_; |
142 JSGraph* jsgraph_; | 142 JSGraph* jsgraph_; |
143 wasm::ModuleEnv* module_; | 143 wasm::ModuleEnv* module_; |
144 Node* mem_buffer_; | 144 Node* mem_buffer_; |
145 Node* mem_size_; | 145 Node* mem_size_; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 Node** buf = Buffer(count); | 194 Node** buf = Buffer(count); |
195 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); | 195 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); |
196 return buf; | 196 return buf; |
197 } | 197 } |
198 }; | 198 }; |
199 } // namespace compiler | 199 } // namespace compiler |
200 } // namespace internal | 200 } // namespace internal |
201 } // namespace v8 | 201 } // namespace v8 |
202 | 202 |
203 #endif // V8_COMPILER_WASM_COMPILER_H_ | 203 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |