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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 Node* BuildF64Atan(Node* input); | 198 Node* BuildF64Atan(Node* input); |
199 Node* BuildF64Cos(Node* input); | 199 Node* BuildF64Cos(Node* input); |
200 Node* BuildF64Sin(Node* input); | 200 Node* BuildF64Sin(Node* input); |
201 Node* BuildF64Tan(Node* input); | 201 Node* BuildF64Tan(Node* input); |
202 Node* BuildF64Exp(Node* input); | 202 Node* BuildF64Exp(Node* input); |
203 Node* BuildF64Log(Node* input); | 203 Node* BuildF64Log(Node* input); |
204 Node* BuildF64Pow(Node* left, Node* right); | 204 Node* BuildF64Pow(Node* left, Node* right); |
205 Node* BuildF64Atan2(Node* left, Node* right); | 205 Node* BuildF64Atan2(Node* left, Node* right); |
206 Node* BuildF64Mod(Node* left, Node* right); | 206 Node* BuildF64Mod(Node* left, Node* right); |
207 | 207 |
| 208 Node* BuildConversionInstruction( |
| 209 Node* input, ExternalReference ref, |
| 210 MachineRepresentation parameter_representation, |
| 211 const MachineType result_type); |
| 212 Node* BuildF32SConvertI64(Node* input); |
| 213 Node* BuildF32UConvertI64(Node* input); |
| 214 Node* BuildF64SConvertI64(Node* input); |
| 215 Node* BuildF64UConvertI64(Node* input); |
| 216 |
208 Node** Realloc(Node** buffer, size_t count) { | 217 Node** Realloc(Node** buffer, size_t count) { |
209 Node** buf = Buffer(count); | 218 Node** buf = Buffer(count); |
210 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); | 219 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); |
211 return buf; | 220 return buf; |
212 } | 221 } |
213 }; | 222 }; |
214 } // namespace compiler | 223 } // namespace compiler |
215 } // namespace internal | 224 } // namespace internal |
216 } // namespace v8 | 225 } // namespace v8 |
217 | 226 |
218 #endif // V8_COMPILER_WASM_COMPILER_H_ | 227 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |