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 #include <memory> | 8 #include <memory> |
9 | 9 |
10 // Clients of this interface shouldn't depend on lots of compiler internals. | 10 // Clients of this interface shouldn't depend on lots of compiler internals. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 private: | 232 private: |
233 static const int kDefaultBufferSize = 16; | 233 static const int kDefaultBufferSize = 16; |
234 friend class WasmTrapHelper; | 234 friend class WasmTrapHelper; |
235 | 235 |
236 Zone* zone_; | 236 Zone* zone_; |
237 JSGraph* jsgraph_; | 237 JSGraph* jsgraph_; |
238 wasm::ModuleEnv* module_ = nullptr; | 238 wasm::ModuleEnv* module_ = nullptr; |
239 Node* mem_buffer_ = nullptr; | 239 Node* mem_buffer_ = nullptr; |
240 Node* mem_size_ = nullptr; | 240 Node* mem_size_ = nullptr; |
| 241 NodeVector signature_tables_; |
241 NodeVector function_tables_; | 242 NodeVector function_tables_; |
242 NodeVector function_table_sizes_; | 243 NodeVector function_table_sizes_; |
243 Node** control_ = nullptr; | 244 Node** control_ = nullptr; |
244 Node** effect_ = nullptr; | 245 Node** effect_ = nullptr; |
245 Node** cur_buffer_; | 246 Node** cur_buffer_; |
246 size_t cur_bufsize_; | 247 size_t cur_bufsize_; |
247 Node* def_buffer_[kDefaultBufferSize]; | 248 Node* def_buffer_[kDefaultBufferSize]; |
248 bool has_simd_ = false; | 249 bool has_simd_ = false; |
249 | 250 |
250 WasmTrapHelper* trap_; | 251 WasmTrapHelper* trap_; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 } | 372 } |
372 | 373 |
373 int AddParameterNodes(Node** args, int pos, int param_count, | 374 int AddParameterNodes(Node** args, int pos, int param_count, |
374 wasm::FunctionSig* sig); | 375 wasm::FunctionSig* sig); |
375 }; | 376 }; |
376 } // namespace compiler | 377 } // namespace compiler |
377 } // namespace internal | 378 } // namespace internal |
378 } // namespace v8 | 379 } // namespace v8 |
379 | 380 |
380 #endif // V8_COMPILER_WASM_COMPILER_H_ | 381 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |