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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } | 192 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } |
193 | 193 |
194 void Int64LoweringForTesting(); | 194 void Int64LoweringForTesting(); |
195 | 195 |
196 void SetSourcePosition(Node* node, wasm::WasmCodePosition position); | 196 void SetSourcePosition(Node* node, wasm::WasmCodePosition position); |
197 | 197 |
198 Node* DefaultS128Value(); | 198 Node* DefaultS128Value(); |
199 | 199 |
200 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); | 200 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); |
| 201 Node* SimdExtractLane(wasm::WasmOpcode opcode, uint8_t lane, Node* input); |
201 | 202 |
202 private: | 203 private: |
203 static const int kDefaultBufferSize = 16; | 204 static const int kDefaultBufferSize = 16; |
204 friend class WasmTrapHelper; | 205 friend class WasmTrapHelper; |
205 | 206 |
206 Zone* zone_; | 207 Zone* zone_; |
207 JSGraph* jsgraph_; | 208 JSGraph* jsgraph_; |
208 wasm::ModuleEnv* module_; | 209 wasm::ModuleEnv* module_; |
209 Node* mem_buffer_; | 210 Node* mem_buffer_; |
210 Node* mem_size_; | 211 Node* mem_size_; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 } | 340 } |
340 | 341 |
341 int AddParameterNodes(Node** args, int pos, int param_count, | 342 int AddParameterNodes(Node** args, int pos, int param_count, |
342 wasm::FunctionSig* sig); | 343 wasm::FunctionSig* sig); |
343 }; | 344 }; |
344 } // namespace compiler | 345 } // namespace compiler |
345 } // namespace internal | 346 } // namespace internal |
346 } // namespace v8 | 347 } // namespace v8 |
347 | 348 |
348 #endif // V8_COMPILER_WASM_COMPILER_H_ | 349 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |