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 #include <memory> | 8 #include <memory> |
9 | 9 |
10 // Clients of this interface shouldn't depend on lots of compiler internals. | 10 // Clients of this interface shouldn't depend on lots of compiler internals. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 Node* FromJS(Node* node, Node* context, wasm::LocalType type); | 169 Node* FromJS(Node* node, Node* context, wasm::LocalType type); |
170 Node* Invert(Node* node); | 170 Node* Invert(Node* node); |
171 Node* FunctionTable(uint32_t index); | 171 Node* FunctionTable(uint32_t index); |
172 Node* ChangeToRuntimeCall(Node* node, Runtime::FunctionId function_id, | 172 Node* ChangeToRuntimeCall(Node* node, Runtime::FunctionId function_id, |
173 Signature<Conversion>* signature); | 173 Signature<Conversion>* signature); |
174 | 174 |
175 //----------------------------------------------------------------------- | 175 //----------------------------------------------------------------------- |
176 // Operations that concern the linear memory. | 176 // Operations that concern the linear memory. |
177 //----------------------------------------------------------------------- | 177 //----------------------------------------------------------------------- |
178 Node* MemSize(uint32_t offset); | 178 Node* MemSize(uint32_t offset); |
179 Node* LoadGlobal(uint32_t index); | 179 Node* GetGlobal(uint32_t index); |
180 Node* StoreGlobal(uint32_t index, Node* val); | 180 Node* SetGlobal(uint32_t index, Node* val); |
181 Node* LoadMem(wasm::LocalType type, MachineType memtype, Node* index, | 181 Node* LoadMem(wasm::LocalType type, MachineType memtype, Node* index, |
182 uint32_t offset, uint32_t alignment, | 182 uint32_t offset, uint32_t alignment, |
183 wasm::WasmCodePosition position); | 183 wasm::WasmCodePosition position); |
184 Node* StoreMem(MachineType type, Node* index, uint32_t offset, | 184 Node* StoreMem(MachineType type, Node* index, uint32_t offset, |
185 uint32_t alignment, Node* val, | 185 uint32_t alignment, Node* val, |
186 wasm::WasmCodePosition position); | 186 wasm::WasmCodePosition position); |
187 | 187 |
188 static void PrintDebugName(Node* node); | 188 static void PrintDebugName(Node* node); |
189 | 189 |
190 Node* Control() { return *control_; } | 190 Node* Control() { return *control_; } |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 } | 354 } |
355 | 355 |
356 // Simd helper functions | 356 // Simd helper functions |
357 MachineOperatorBuilder* simd(); | 357 MachineOperatorBuilder* simd(); |
358 }; | 358 }; |
359 } // namespace compiler | 359 } // namespace compiler |
360 } // namespace internal | 360 } // namespace internal |
361 } // namespace v8 | 361 } // namespace v8 |
362 | 362 |
363 #endif // V8_COMPILER_WASM_COMPILER_H_ | 363 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |