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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 Node* BuildF64Min(Node* left, Node* right); | 169 Node* BuildF64Min(Node* left, Node* right); |
170 Node* BuildF64Max(Node* left, Node* right); | 170 Node* BuildF64Max(Node* left, Node* right); |
171 Node* BuildI32SConvertF32(Node* input); | 171 Node* BuildI32SConvertF32(Node* input); |
172 Node* BuildI32SConvertF64(Node* input); | 172 Node* BuildI32SConvertF64(Node* input); |
173 Node* BuildI32UConvertF32(Node* input); | 173 Node* BuildI32UConvertF32(Node* input); |
174 Node* BuildI32UConvertF64(Node* input); | 174 Node* BuildI32UConvertF64(Node* input); |
175 Node* BuildI32Ctz(Node* input); | 175 Node* BuildI32Ctz(Node* input); |
176 Node* BuildI32Popcnt(Node* input); | 176 Node* BuildI32Popcnt(Node* input); |
177 Node* BuildI64Ctz(Node* input); | 177 Node* BuildI64Ctz(Node* input); |
178 Node* BuildI64Popcnt(Node* input); | 178 Node* BuildI64Popcnt(Node* input); |
| 179 Node* BuildF32Trunc(Node* input); |
179 | 180 |
180 Node** Realloc(Node** buffer, size_t count) { | 181 Node** Realloc(Node** buffer, size_t count) { |
181 Node** buf = Buffer(count); | 182 Node** buf = Buffer(count); |
182 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); | 183 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); |
183 return buf; | 184 return buf; |
184 } | 185 } |
185 }; | 186 }; |
186 } // namespace compiler | 187 } // namespace compiler |
187 } // namespace internal | 188 } // namespace internal |
188 } // namespace v8 | 189 } // namespace v8 |
189 | 190 |
190 #endif // V8_COMPILER_WASM_COMPILER_H_ | 191 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |