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/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 Node* GetUnalignedLoadOffsetNode(Node* baseOffset, int numberOfBytes, | 227 Node* GetUnalignedLoadOffsetNode(Node* baseOffset, int numberOfBytes, |
228 int stride, int current); | 228 int stride, int current); |
229 | 229 |
230 Node* BuildUnalignedLoad(wasm::LocalType type, MachineType memtype, | 230 Node* BuildUnalignedLoad(wasm::LocalType type, MachineType memtype, |
231 Node* index, uint32_t offset, uint32_t alignment); | 231 Node* index, uint32_t offset, uint32_t alignment); |
232 Node* GetUnalignedStoreOffsetNode(Node* baseOffset, int numberOfBytes, | 232 Node* GetUnalignedStoreOffsetNode(Node* baseOffset, int numberOfBytes, |
233 int stride, int current); | 233 int stride, int current); |
234 Node* BuildUnalignedStore(MachineType memtype, Node* index, uint32_t offset, | 234 Node* BuildUnalignedStore(MachineType memtype, Node* index, uint32_t offset, |
235 uint32_t alignment, Node* val); | 235 uint32_t alignment, Node* val); |
236 | 236 |
237 Node* BuildChangeEndianness(Node* node, MachineType type, | |
238 wasm::LocalType wasmtype = wasm::kAstStmt); | |
239 | |
240 Node* MaskShiftCount32(Node* node); | 237 Node* MaskShiftCount32(Node* node); |
241 Node* MaskShiftCount64(Node* node); | 238 Node* MaskShiftCount64(Node* node); |
242 | 239 |
243 Node* BuildCCall(MachineSignature* sig, Node** args); | 240 Node* BuildCCall(MachineSignature* sig, Node** args); |
244 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args, | 241 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args, |
245 wasm::WasmCodePosition position); | 242 wasm::WasmCodePosition position); |
246 | 243 |
247 Node* BuildF32Neg(Node* input); | 244 Node* BuildF32Neg(Node* input); |
248 Node* BuildF64Neg(Node* input); | 245 Node* BuildF64Neg(Node* input); |
249 Node* BuildF32CopySign(Node* left, Node* right); | 246 Node* BuildF32CopySign(Node* left, Node* right); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 Node** buf = Buffer(new_count); | 345 Node** buf = Buffer(new_count); |
349 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 346 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
350 return buf; | 347 return buf; |
351 } | 348 } |
352 }; | 349 }; |
353 } // namespace compiler | 350 } // namespace compiler |
354 } // namespace internal | 351 } // namespace internal |
355 } // namespace v8 | 352 } // namespace v8 |
356 | 353 |
357 #endif // V8_COMPILER_WASM_COMPILER_H_ | 354 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |