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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 Node** buf = Buffer(new_count); | 337 Node** buf = Buffer(new_count); |
337 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 338 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
338 return buf; | 339 return buf; |
339 } | 340 } |
340 }; | 341 }; |
341 } // namespace compiler | 342 } // namespace compiler |
342 } // namespace internal | 343 } // namespace internal |
343 } // namespace v8 | 344 } // namespace v8 |
344 | 345 |
345 #endif // V8_COMPILER_WASM_COMPILER_H_ | 346 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |