Skip to content

Commit 7d1382c

Browse files
committed
deploy no regressiosn
1 parent 9393273 commit 7d1382c

4 files changed

Lines changed: 5 additions & 19 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ CC = clang
22
CFLAGS = -w -O2 -march=native -mtune=native
33

44
dev: install-production
5-
time lm --v23 tests/promises/string/prefix.lsts
5+
time lm --v2 tests/promises/string/prefix.lsts
66
gcc tmp.c
77
./a.out
88

99
build: compile-production
10-
time ./production --v23 --c -o deploy1.c SRC/index.lsts
10+
time ./production --v2 --c -o deploy1.c SRC/index.lsts
1111
$(CC) $(CFLAGS) deploy1.c -o deploy1
12-
time ./deploy1 --v23 --c -o deploy2.c SRC/index.lsts
12+
time ./deploy1 --v2 --c -o deploy2.c SRC/index.lsts
1313
diff deploy1.c deploy2.c
1414
mv deploy1.c BOOTSTRAP/cli.c
1515
rm -f deploy1 deploy1.c deploy2.c
@@ -19,7 +19,7 @@ deploy: build smoke-test
1919
deploy-lite: build smoke-test-lite
2020

2121
valgrind: install-bootstrap
22-
valgrind --tool=callgrind lm --v23 SRC/index.lsts
22+
valgrind --tool=callgrind lm --v2 SRC/index.lsts
2323

2424
valgrind-view:
2525
callgrind_annotate callgrind.out.18778
@@ -35,7 +35,7 @@ gprof-view-call-graph:
3535
gprof -q bootstrap.exe gmon.out
3636

3737
profile: install-bootstrap
38-
perf record lm --v23 SRC/index.lsts
38+
perf record lm --v2 SRC/index.lsts
3939
./report.sh
4040

4141
compile-bootstrap:
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11

22
let lsts-frontend(fp: CString): Nil = (
3-
print("Parse \{fp}\n");
43
if config-v1 and fp==c"lib/std/minimal.lsts" then fp = c"lib1/std/minimal.lsts";
54
if (config-v3 or config-v23) and fp==c"lib/std/minimal.lsts" then fp = c"lib2/core/bedrock.lsts";
65
if (config-v3 or config-v23) and fp==c"lib/std/compiler-only.lsts" then fp = c"lib2/core/compiler-only.lsts";
76
lsts-parse(lsts-tokenize(fp));
8-
print("Parsed \{fp}\n");
97
);
108
register-frontend(c".lsts", lsts-frontend);

PLUGINS/FRONTEND/LSTS/lsts-parse.lsts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,8 @@ let lsts-is-type-tag(s: CString): Bool = (
193193
);
194194

195195
let lsts-parse(tokens: List<Token>): Nil = (
196-
print("LSTS parse\n");
197196
while non-zero(tokens) {
198-
print("LSTS parse 1\n");
199197
(let docx, tokens) = lsts-parse-doc(tokens);
200-
print("LSTS parse After Doc\n");
201198
let prev-tokens = tokens;
202199
match tokens {
203200
[ Token{key:c"let"}.. _] => (
@@ -213,20 +210,14 @@ let lsts-parse(tokens: List<Token>): Nil = (
213210
ast-parsed-program = ast-parsed-program + bind;
214211
);
215212
[ Token{key:c"deprecated"}.. Token{key:c"macro"}.. rst] => (
216-
print("Deprecated macro 1\n");
217213
(let mlhs, tokens) = lsts-parse-atom-without-tail(rst);
218214
let mrhs = ASTNil;
219-
print("Deprecated macro 2\n");
220215
lsts-parse-expect(c"(",tokens); tokens = tail(tokens);
221-
print("Deprecated macro 3\n");
222216
if lsts-parse-head(tokens)==c"let" then (mrhs, tokens) = lsts-parse-let(tokens)
223217
else (mrhs, tokens) = lsts-parse-atom(tokens);
224-
print("Deprecated macro 4\n");
225218
lsts-parse-expect(c")",tokens); tokens = tail(tokens);
226-
print("Deprecated macro 5\n");
227219
preprocess-macros = MSeq( close(preprocess-macros), Macro(mlhs.without-location, mrhs.without-location) );
228220
lsts-parse-expect(c";",tokens); tokens = tail(tokens);
229-
print("Deprecated macro 5\n");
230221
);
231222
[ Token{key:c"interface"}.. _] => tokens = lsts-parse-interface(tokens);
232223
[ Token{key:c"import"}.. rest] => (
@@ -247,12 +238,10 @@ let lsts-parse(tokens: List<Token>): Nil = (
247238
lsts-parse-expect(c";",tokens); tokens = tail(tokens);
248239
);
249240
};
250-
print("LSTS parse After Nibble\n");
251241
if is(prev-tokens, tokens) { fail("Unrecognized Token During Parsing: \{lsts-parse-head(tokens)}\n") };
252242
if non-zero(docx) {
253243
ast-parsed-program = ast-parsed-program + mk-meta(docx);
254244
};
255-
print("LSTS parse After After Nibble\n");
256245
};
257246
);
258247

lib2/core/regex.lsts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ let .has-prefix(text: String, rgx: Regex): Bool = (
3636
a4 as C<"regmatch_t">[],
3737
a5
3838
);
39-
print("Has prefix status=\{status as U64}, rm_so=\{a4[0].rm_so as U64}, rm_eo=\{a4[0].rm_eo as U64}\n");
4039
status != reg_nomatch() and a4[0].rm_so==0
4140
);
4241

0 commit comments

Comments
 (0)