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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 JSGraph* jsgraph() { return jsgraph_; } | 154 JSGraph* jsgraph() { return jsgraph_; } |
155 Graph* graph(); | 155 Graph* graph(); |
156 | 156 |
157 Node* String(const char* string); | 157 Node* String(const char* string); |
158 Node* MemBuffer(uint32_t offset); | 158 Node* MemBuffer(uint32_t offset); |
159 void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset); | 159 void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset); |
160 | 160 |
161 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args); | 161 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args); |
162 Node* BuildF32CopySign(Node* left, Node* right); | 162 Node* BuildF32CopySign(Node* left, Node* right); |
163 Node* BuildF64CopySign(Node* left, Node* right); | 163 Node* BuildF64CopySign(Node* left, Node* right); |
| 164 Node* BuildF32Min(Node* left, Node* right); |
| 165 Node* BuildF32Max(Node* left, Node* right); |
| 166 Node* BuildF64Min(Node* left, Node* right); |
| 167 Node* BuildF64Max(Node* left, Node* right); |
164 Node* BuildI32Ctz(Node* input); | 168 Node* BuildI32Ctz(Node* input); |
165 Node* BuildI32Popcnt(Node* input); | 169 Node* BuildI32Popcnt(Node* input); |
166 Node* BuildI64Ctz(Node* input); | 170 Node* BuildI64Ctz(Node* input); |
167 Node* BuildI64Popcnt(Node* input); | 171 Node* BuildI64Popcnt(Node* input); |
168 | 172 |
169 Node** Realloc(Node** buffer, size_t count) { | 173 Node** Realloc(Node** buffer, size_t count) { |
170 Node** buf = Buffer(count); | 174 Node** buf = Buffer(count); |
171 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); | 175 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); |
172 return buf; | 176 return buf; |
173 } | 177 } |
174 }; | 178 }; |
175 } // namespace compiler | 179 } // namespace compiler |
176 } // namespace internal | 180 } // namespace internal |
177 } // namespace v8 | 181 } // namespace v8 |
178 | 182 |
179 #endif // V8_COMPILER_WASM_COMPILER_H_ | 183 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |