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/wasm/wasm-opcodes.h" | 10 #include "src/wasm/wasm-opcodes.h" |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 293 |
294 // Asm.js specific functionality. | 294 // Asm.js specific functionality. |
295 Node* BuildI32AsmjsSConvertF32(Node* input); | 295 Node* BuildI32AsmjsSConvertF32(Node* input); |
296 Node* BuildI32AsmjsSConvertF64(Node* input); | 296 Node* BuildI32AsmjsSConvertF64(Node* input); |
297 Node* BuildI32AsmjsUConvertF32(Node* input); | 297 Node* BuildI32AsmjsUConvertF32(Node* input); |
298 Node* BuildI32AsmjsUConvertF64(Node* input); | 298 Node* BuildI32AsmjsUConvertF64(Node* input); |
299 Node* BuildI32AsmjsDivS(Node* left, Node* right); | 299 Node* BuildI32AsmjsDivS(Node* left, Node* right); |
300 Node* BuildI32AsmjsRemS(Node* left, Node* right); | 300 Node* BuildI32AsmjsRemS(Node* left, Node* right); |
301 Node* BuildI32AsmjsDivU(Node* left, Node* right); | 301 Node* BuildI32AsmjsDivU(Node* left, Node* right); |
302 Node* BuildI32AsmjsRemU(Node* left, Node* right); | 302 Node* BuildI32AsmjsRemU(Node* left, Node* right); |
| 303 Node* BuildAsmjsLoadMem(MachineType type, Node* index); |
| 304 Node* BuildAsmjsStoreMem(MachineType type, Node* index, Node* val); |
303 | 305 |
304 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) { | 306 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) { |
305 Node** buf = Buffer(new_count); | 307 Node** buf = Buffer(new_count); |
306 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 308 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
307 return buf; | 309 return buf; |
308 } | 310 } |
309 }; | 311 }; |
310 } // namespace compiler | 312 } // namespace compiler |
311 } // namespace internal | 313 } // namespace internal |
312 } // namespace v8 | 314 } // namespace v8 |
313 | 315 |
314 #endif // V8_COMPILER_WASM_COMPILER_H_ | 316 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |