Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(944)

Side by Side Diff: src/compiler/wasm-compiler.h

Issue 2209433002: [wasm] Make LoadGlobal/StoreGlobal opcodes match what is coming in binary 0xC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/asmjs/asm-wasm-builder.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/asmjs/asm-wasm-builder.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698