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 Node* BuildF32Neg(Node* input); | 172 Node* BuildF32Neg(Node* input); |
170 Node* BuildF64Neg(Node* input); | 173 Node* BuildF64Neg(Node* input); |
171 Node* BuildF32CopySign(Node* left, Node* right); | 174 Node* BuildF32CopySign(Node* left, Node* right); |
172 Node* BuildF64CopySign(Node* left, Node* right); | 175 Node* BuildF64CopySign(Node* left, Node* right); |
173 Node* BuildF32Min(Node* left, Node* right); | 176 Node* BuildF32Min(Node* left, Node* right); |
174 Node* BuildF32Max(Node* left, Node* right); | 177 Node* BuildF32Max(Node* left, Node* right); |
175 Node* BuildF64Min(Node* left, Node* right); | 178 Node* BuildF64Min(Node* left, Node* right); |
176 Node* BuildF64Max(Node* left, Node* right); | 179 Node* BuildF64Max(Node* left, Node* right); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 Node** buf = Buffer(new_count); | 239 Node** buf = Buffer(new_count); |
237 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 240 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
238 return buf; | 241 return buf; |
239 } | 242 } |
240 }; | 243 }; |
241 } // namespace compiler | 244 } // namespace compiler |
242 } // namespace internal | 245 } // namespace internal |
243 } // namespace v8 | 246 } // namespace v8 |
244 | 247 |
245 #endif // V8_COMPILER_WASM_COMPILER_H_ | 248 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |