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 |
237 Node* MaskShiftCount32(Node* node); | 240 Node* MaskShiftCount32(Node* node); |
238 Node* MaskShiftCount64(Node* node); | 241 Node* MaskShiftCount64(Node* node); |
239 | 242 |
240 Node* BuildCCall(MachineSignature* sig, Node** args); | 243 Node* BuildCCall(MachineSignature* sig, Node** args); |
241 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args, | 244 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args, |
242 wasm::WasmCodePosition position); | 245 wasm::WasmCodePosition position); |
243 | 246 |
244 Node* BuildF32Neg(Node* input); | 247 Node* BuildF32Neg(Node* input); |
245 Node* BuildF64Neg(Node* input); | 248 Node* BuildF64Neg(Node* input); |
246 Node* BuildF32CopySign(Node* left, Node* right); | 249 Node* BuildF32CopySign(Node* left, Node* right); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 Node** buf = Buffer(new_count); | 348 Node** buf = Buffer(new_count); |
346 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 349 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
347 return buf; | 350 return buf; |
348 } | 351 } |
349 }; | 352 }; |
350 } // namespace compiler | 353 } // namespace compiler |
351 } // namespace internal | 354 } // namespace internal |
352 } // namespace v8 | 355 } // namespace v8 |
353 | 356 |
354 #endif // V8_COMPILER_WASM_COMPILER_H_ | 357 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |