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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 Node* BuildRoundingInstruction(Node* input, ExternalReference ref, | 183 Node* BuildRoundingInstruction(Node* input, ExternalReference ref, |
184 MachineType type); | 184 MachineType type); |
185 Node* BuildF32Trunc(Node* input); | 185 Node* BuildF32Trunc(Node* input); |
186 Node* BuildF32Floor(Node* input); | 186 Node* BuildF32Floor(Node* input); |
187 Node* BuildF32Ceil(Node* input); | 187 Node* BuildF32Ceil(Node* input); |
188 Node* BuildF32NearestInt(Node* input); | 188 Node* BuildF32NearestInt(Node* input); |
189 Node* BuildF64Trunc(Node* input); | 189 Node* BuildF64Trunc(Node* input); |
190 Node* BuildF64Floor(Node* input); | 190 Node* BuildF64Floor(Node* input); |
191 Node* BuildF64Ceil(Node* input); | 191 Node* BuildF64Ceil(Node* input); |
192 Node* BuildF64NearestInt(Node* input); | 192 Node* BuildF64NearestInt(Node* input); |
| 193 Node* BuildConversionInstruction( |
| 194 Node* input, ExternalReference ref, |
| 195 MachineRepresentation parameter_representation, |
| 196 const MachineType result_type); |
| 197 Node* BuildF32SConvertI64(Node* input); |
| 198 Node* BuildF32UConvertI64(Node* input); |
| 199 Node* BuildF64SConvertI64(Node* input); |
| 200 Node* BuildF64UConvertI64(Node* input); |
193 | 201 |
194 Node** Realloc(Node** buffer, size_t count) { | 202 Node** Realloc(Node** buffer, size_t count) { |
195 Node** buf = Buffer(count); | 203 Node** buf = Buffer(count); |
196 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); | 204 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); |
197 return buf; | 205 return buf; |
198 } | 206 } |
199 }; | 207 }; |
200 } // namespace compiler | 208 } // namespace compiler |
201 } // namespace internal | 209 } // namespace internal |
202 } // namespace v8 | 210 } // namespace v8 |
203 | 211 |
204 #endif // V8_COMPILER_WASM_COMPILER_H_ | 212 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |