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

Unified Diff: src/compiler/wasm-compiler.h

Issue 1928513002: Implement UnalignedLoad and UnalignedStore in WASM using LoadByte/Shift/Or and StoreByte/Shift/And. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix nits. Fix compilation error on Windows compiler Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/s390/instruction-selector-s390.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/wasm-compiler.h
diff --git a/src/compiler/wasm-compiler.h b/src/compiler/wasm-compiler.h
index f52e559d52930dc089ef5217459b3236100fe9ae..39101e48cbe7002acfe90f17c4226285ca153079 100644
--- a/src/compiler/wasm-compiler.h
+++ b/src/compiler/wasm-compiler.h
@@ -162,8 +162,10 @@ class WasmGraphBuilder {
Node* LoadGlobal(uint32_t index);
Node* StoreGlobal(uint32_t index, Node* val);
Node* LoadMem(wasm::LocalType type, MachineType memtype, Node* index,
- uint32_t offset, wasm::WasmCodePosition position);
- Node* StoreMem(MachineType type, Node* index, uint32_t offset, Node* val,
+ uint32_t offset, uint32_t alignment,
+ wasm::WasmCodePosition position);
+ Node* StoreMem(MachineType type, Node* index, uint32_t offset,
+ uint32_t alignment, Node* val,
wasm::WasmCodePosition position);
static void PrintDebugName(Node* node);
@@ -214,6 +216,19 @@ class WasmGraphBuilder {
void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset,
wasm::WasmCodePosition position);
+ MachineType GetTypeForUnalignedAccess(uint32_t alignment,
+ bool signExtend = false);
+
+ Node* GetUnalignedLoadOffsetNode(Node* baseOffset, int numberOfBytes,
+ int stride, int current);
+
+ Node* BuildUnalignedLoad(wasm::LocalType type, MachineType memtype,
+ Node* index, uint32_t offset, uint32_t alignment);
+ Node* GetUnalignedStoreOffsetNode(Node* baseOffset, int numberOfBytes,
+ int stride, int current);
+ Node* BuildUnalignedStore(MachineType memtype, Node* index, uint32_t offset,
+ uint32_t alignment, Node* val);
+
Node* MaskShiftCount32(Node* node);
Node* MaskShiftCount64(Node* node);
« no previous file with comments | « src/compiler/s390/instruction-selector-s390.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698