From 4f218b17f8d49f37d7fc5db58f527502798768cd Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 22 Sep 2016 00:58:21 +0300 Subject: [PATCH] WASM: creating memory access trace transformation --- .idea/inspectionProfiles/Project_Default.xml | 4 + .../org/teavm/backend/wasm/WasmTarget.java | 5 + .../model/expression/WasmLoadFloat32.java | 4 +- .../model/expression/WasmLoadFloat64.java | 4 +- .../wasm/model/expression/WasmLoadInt32.java | 4 +- .../wasm/model/expression/WasmLoadInt64.java | 4 +- .../model/expression/WasmMemoryAccess.java | 22 ++ .../WasmReplacingExpressionVisitor.java | 224 ++++++++++++++++++ .../model/expression/WasmStoreFloat32.java | 4 +- .../model/expression/WasmStoreFloat64.java | 4 +- .../wasm/model/expression/WasmStoreInt32.java | 4 +- .../wasm/model/expression/WasmStoreInt64.java | 4 +- .../MemoryAccessTraceTransformation.java | 58 +++++ samples/hello/teavm-samples-hello.iml | 3 + 14 files changed, 340 insertions(+), 8 deletions(-) create mode 100644 core/src/main/java/org/teavm/backend/wasm/model/expression/WasmMemoryAccess.java create mode 100644 core/src/main/java/org/teavm/backend/wasm/model/expression/WasmReplacingExpressionVisitor.java create mode 100644 core/src/main/java/org/teavm/backend/wasm/transformation/MemoryAccessTraceTransformation.java diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index be16622b6..abc9bfdca 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -74,6 +74,10 @@ + +