From 1dda5c28a25e63084b97b62ce53a3f5473beb07d Mon Sep 17 00:00:00 2001 From: Matt Hainje Date: Fri, 19 May 2023 15:14:45 -0700 Subject: [PATCH 1/3] Remove compilation of missing snippets --- tool/bin/compile_snippets.dart | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tool/bin/compile_snippets.dart b/tool/bin/compile_snippets.dart index 02b3cc5fc..3687b3f67 100644 --- a/tool/bin/compile_snippets.dart +++ b/tool/bin/compile_snippets.dart @@ -275,18 +275,8 @@ var _chapterTags = >{ "Optimization": [ "initial-index", "next-index", - "adjust-alloc", - "adjust-init", - "re-hash", - "adjust-free", - "table-set-grow", - "init-capacity-mask", - "add-all-loop", "find-string-index", "find-string-next", - "mark-table", - "remove-white", - "free-table", "define-nan-boxing", "end-values-equal", ], From 32c295a582a354057b19f7d9327b9c65018c4e77 Mon Sep 17 00:00:00 2001 From: Matt Hainje Date: Fri, 19 May 2023 15:18:13 -0700 Subject: [PATCH 2/3] Remove compilation of intermediate snippet --- tool/bin/compile_snippets.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/tool/bin/compile_snippets.dart b/tool/bin/compile_snippets.dart index 3687b3f67..478edd7e9 100644 --- a/tool/bin/compile_snippets.dart +++ b/tool/bin/compile_snippets.dart @@ -128,7 +128,6 @@ var _chapterTags = >{ "closure-op", "disassemble-closure", "interpret-closure", - "runtime-error-function", "interpret", "upvalue-struct", "resolve-upvalue-recurse", From ceb0c190ed378164a188c6452460c2a0ef138e71 Mon Sep 17 00:00:00 2001 From: Matt Hainje Date: Fri, 19 May 2023 15:51:25 -0700 Subject: [PATCH 3/3] Ignore warnings for unused variables in compiled snippets --- util/c.make | 1 + 1 file changed, 1 insertion(+) diff --git a/util/c.make b/util/c.make index 4a49d7b5c..08767068a 100644 --- a/util/c.make +++ b/util/c.make @@ -20,6 +20,7 @@ CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter # are functions that aren't used yet. ifeq ($(SNIPPET),true) CFLAGS += -Wno-unused-function + CFLAGS += -Wno-unused-but-set-variable endif # Mode configuration.