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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 wasm::FunctionSig* function_signature_; | 157 wasm::FunctionSig* function_signature_; |
158 | 158 |
159 // Internal helper methods. | 159 // Internal helper methods. |
160 JSGraph* jsgraph() { return jsgraph_; } | 160 JSGraph* jsgraph() { return jsgraph_; } |
161 Graph* graph(); | 161 Graph* graph(); |
162 | 162 |
163 Node* String(const char* string); | 163 Node* String(const char* string); |
164 Node* MemBuffer(uint32_t offset); | 164 Node* MemBuffer(uint32_t offset); |
165 void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset); | 165 void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset); |
166 | 166 |
| 167 Node* MaskShiftCount32(Node* node); |
| 168 Node* MaskShiftCount64(Node* node); |
| 169 |
167 Node* BuildCCall(MachineSignature* sig, Node** args); | 170 Node* BuildCCall(MachineSignature* sig, Node** args); |
168 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args); | 171 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args); |
169 | 172 |
170 Node* BuildF32Neg(Node* input); | 173 Node* BuildF32Neg(Node* input); |
171 Node* BuildF64Neg(Node* input); | 174 Node* BuildF64Neg(Node* input); |
172 Node* BuildF32CopySign(Node* left, Node* right); | 175 Node* BuildF32CopySign(Node* left, Node* right); |
173 Node* BuildF64CopySign(Node* left, Node* right); | 176 Node* BuildF64CopySign(Node* left, Node* right); |
174 Node* BuildF32Min(Node* left, Node* right); | 177 Node* BuildF32Min(Node* left, Node* right); |
175 Node* BuildF32Max(Node* left, Node* right); | 178 Node* BuildF32Max(Node* left, Node* right); |
176 Node* BuildF64Min(Node* left, Node* right); | 179 Node* BuildF64Min(Node* left, Node* right); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 Node** buf = Buffer(new_count); | 245 Node** buf = Buffer(new_count); |
243 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 246 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
244 return buf; | 247 return buf; |
245 } | 248 } |
246 }; | 249 }; |
247 } // namespace compiler | 250 } // namespace compiler |
248 } // namespace internal | 251 } // namespace internal |
249 } // namespace v8 | 252 } // namespace v8 |
250 | 253 |
251 #endif // V8_COMPILER_WASM_COMPILER_H_ | 254 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |