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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 Node* Invert(Node* node); | 110 Node* Invert(Node* node); |
111 Node* FunctionTable(); | 111 Node* FunctionTable(); |
112 | 112 |
113 //----------------------------------------------------------------------- | 113 //----------------------------------------------------------------------- |
114 // Operations that concern the linear memory. | 114 // Operations that concern the linear memory. |
115 //----------------------------------------------------------------------- | 115 //----------------------------------------------------------------------- |
116 Node* MemSize(uint32_t offset); | 116 Node* MemSize(uint32_t offset); |
117 Node* LoadGlobal(uint32_t index); | 117 Node* LoadGlobal(uint32_t index); |
118 Node* StoreGlobal(uint32_t index, Node* val); | 118 Node* StoreGlobal(uint32_t index, Node* val); |
119 Node* LoadMem(wasm::LocalType type, MachineType memtype, Node* index, | 119 Node* LoadMem(wasm::LocalType type, MachineType memtype, Node* index, |
120 uint32_t offset); | 120 uint32_t offset, bool aligned); |
121 Node* StoreMem(MachineType type, Node* index, uint32_t offset, Node* val); | 121 Node* StoreMem(MachineType type, Node* index, uint32_t offset, bool aligned, |
| 122 Node* val); |
122 | 123 |
123 static void PrintDebugName(Node* node); | 124 static void PrintDebugName(Node* node); |
124 | 125 |
125 Node* Control() { return *control_; } | 126 Node* Control() { return *control_; } |
126 Node* Effect() { return *effect_; } | 127 Node* Effect() { return *effect_; } |
127 | 128 |
128 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } | 129 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } |
129 | 130 |
130 void set_control_ptr(Node** control) { this->control_ = control; } | 131 void set_control_ptr(Node** control) { this->control_ = control; } |
131 | 132 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 Node** buf = Buffer(count); | 219 Node** buf = Buffer(count); |
219 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); | 220 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); |
220 return buf; | 221 return buf; |
221 } | 222 } |
222 }; | 223 }; |
223 } // namespace compiler | 224 } // namespace compiler |
224 } // namespace internal | 225 } // namespace internal |
225 } // namespace v8 | 226 } // namespace v8 |
226 | 227 |
227 #endif // V8_COMPILER_WASM_COMPILER_H_ | 228 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |