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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 Node* Invert(Node* node); | 112 Node* Invert(Node* node); |
113 Node* FunctionTable(); | 113 Node* FunctionTable(); |
114 | 114 |
115 //----------------------------------------------------------------------- | 115 //----------------------------------------------------------------------- |
116 // Operations that concern the linear memory. | 116 // Operations that concern the linear memory. |
117 //----------------------------------------------------------------------- | 117 //----------------------------------------------------------------------- |
118 Node* MemSize(uint32_t offset); | 118 Node* MemSize(uint32_t offset); |
119 Node* LoadGlobal(uint32_t index); | 119 Node* LoadGlobal(uint32_t index); |
120 Node* StoreGlobal(uint32_t index, Node* val); | 120 Node* StoreGlobal(uint32_t index, Node* val); |
121 Node* LoadMem(wasm::LocalType type, MachineType memtype, Node* index, | 121 Node* LoadMem(wasm::LocalType type, MachineType memtype, Node* index, |
122 uint32_t offset); | 122 uint32_t offset, bool aligned); |
titzer
2016/03/22 15:00:20
This alignment parameter will be more than a boole
| |
123 Node* StoreMem(MachineType type, Node* index, uint32_t offset, Node* val); | 123 Node* StoreMem(MachineType type, Node* index, uint32_t offset, bool aligned, |
124 Node* val); | |
124 | 125 |
125 static void PrintDebugName(Node* node); | 126 static void PrintDebugName(Node* node); |
126 | 127 |
127 Node* Control() { return *control_; } | 128 Node* Control() { return *control_; } |
128 Node* Effect() { return *effect_; } | 129 Node* Effect() { return *effect_; } |
129 | 130 |
130 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } | 131 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } |
131 | 132 |
132 void set_control_ptr(Node** control) { this->control_ = control; } | 133 void set_control_ptr(Node** control) { this->control_ = control; } |
133 | 134 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
236 Node** buf = Buffer(count); | 237 Node** buf = Buffer(count); |
237 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); | 238 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); |
238 return buf; | 239 return buf; |
239 } | 240 } |
240 }; | 241 }; |
241 } // namespace compiler | 242 } // namespace compiler |
242 } // namespace internal | 243 } // namespace internal |
243 } // namespace v8 | 244 } // namespace v8 |
244 | 245 |
245 #endif // V8_COMPILER_WASM_COMPILER_H_ | 246 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |