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* BuildI32Rol(Node* left, Node* right); |
| 194 Node* BuildI64Rol(Node* left, Node* right); |
193 | 195 |
194 Node** Realloc(Node** buffer, size_t count) { | 196 Node** Realloc(Node** buffer, size_t count) { |
195 Node** buf = Buffer(count); | 197 Node** buf = Buffer(count); |
196 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); | 198 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); |
197 return buf; | 199 return buf; |
198 } | 200 } |
199 }; | 201 }; |
200 } // namespace compiler | 202 } // namespace compiler |
201 } // namespace internal | 203 } // namespace internal |
202 } // namespace v8 | 204 } // namespace v8 |
203 | 205 |
204 #endif // V8_COMPILER_WASM_COMPILER_H_ | 206 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |