removing unneeded code
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 24 May 2022 21:39:35 +0000 (16:39 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 24 May 2022 21:39:35 +0000 (16:39 -0500)
build.sh
include/astnodes.h
lib/linux_aarch64/lib/libwasmer.a [deleted file]
lib/linux_x86_64/lib/libwasmer.a [deleted file]
src/checker.c

index 467e4e536fbd383b00e14baa8bf6122365141edd..6a3694fe753fee9aca04e724bf229cc9c50afb93 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -69,7 +69,6 @@ if [ ! -z "$ENABLE_BUNDLING_WASMER" ]; then
 
         # sudo cp "$WASMER_LIBRARY_DIR/libiwasm.so" "$CORE_DIR/lib/libiwasm.so"
         sudo cp "$WASMER_LIBRARY_DIR/libwasmer.so" "$CORE_DIR/lib/libwasmer.so"
-        sudo cp "$WASMER_LIBRARY_DIR/libwasmer.a" "$CORE_DIR/lib/libwasmer.a"
 
         sudo cp "include/onyx_library.h" "$CORE_DIR/include/onyx_library.h"
         sudo cp "lib/common/include/wasm.h" "$CORE_DIR/include/wasm.h"
index 89b0f0827e90e31a45c76d55f59ccb5b04d9522d..1ba0d254f6256d52896afa276b02c0e00ccd454f 100644 (file)
@@ -695,7 +695,6 @@ struct AstRangeLiteral {
 struct AstCall {
     AstTyped_base;
 
-    Arguments original_args;
     Arguments args;
 
     union {
diff --git a/lib/linux_aarch64/lib/libwasmer.a b/lib/linux_aarch64/lib/libwasmer.a
deleted file mode 100644 (file)
index 34f9d15..0000000
Binary files a/lib/linux_aarch64/lib/libwasmer.a and /dev/null differ
diff --git a/lib/linux_x86_64/lib/libwasmer.a b/lib/linux_x86_64/lib/libwasmer.a
deleted file mode 100644 (file)
index 1a1b10f..0000000
Binary files a/lib/linux_x86_64/lib/libwasmer.a and /dev/null differ
index b7980be821ca7ff59cba6212a4a3a9a0ee1b4181..b170e5341102df091c2951b4d8d6dbf032c4c01e 100644 (file)
@@ -616,12 +616,6 @@ CheckStatus check_call(AstCall** pcall) {
     CHECK(arguments, &call->args);
     current_checking_level = current_checking_level_store;
 
-    // SPEED CLEANUP: Keeping an original copy for basically no reason except that sometimes you
-    // need to know the baked argument values in code generation.
-    // This should only be done once, but right now it is being done everytime this is checked,
-    // which can be multiple if we have to yield on a callee's type.
-    arguments_clone(&call->original_args, &call->args);
-
     AstFunction* callee=NULL;
     CHECK(resolve_callee, call, (AstTyped **) &callee);