From 9615d7aee7fa0478ad01e4054b620213b73278e1 Mon Sep 17 00:00:00 2001 From: Luuk de Gram Date: Sun, 16 Jan 2022 20:34:56 +0100 Subject: wasm: Refactor storing values. Due to the new structure of lowerConstant, we can now simplify the logic in a lot of situations. - We no longer have to check the `WValue`'s tag to determine how to load/store a value. - We can now provide simple memcopy's for aggregate types. - Constants are now memoized, meaning we do no longer lower constants on each callsite. --- test/behavior/array.zig | 7 ------- 1 file changed, 7 deletions(-) (limited to 'test/behavior/array.zig') diff --git a/test/behavior/array.zig b/test/behavior/array.zig index 10324aa9cc..76f2abfef5 100644 --- a/test/behavior/array.zig +++ b/test/behavior/array.zig @@ -146,13 +146,6 @@ test "void arrays" { test "nested arrays" { if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_arm) return error.SkipZigTest; - if (builtin.zig_backend == .stage2_wasm) { - // TODO this is a recent stage2 test case regression due to an enhancement; - // now arrays are properly detected as comptime. This exercised a new code - // path in the wasm backend that is not yet implemented. - return error.SkipZigTest; - } - const array_of_strings = [_][]const u8{ "hello", "this", "is", "my", "thing" }; for (array_of_strings) |s, i| { if (i == 0) try expect(mem.eql(u8, s, "hello")); -- cgit v1.2.3