From 3e32a1b808c52848dbbc945a2c08d0eb3977e40c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 9 Jun 2021 21:52:07 -0700 Subject: . --- shell/sandbox.mu | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'shell/sandbox.mu') diff --git a/shell/sandbox.mu b/shell/sandbox.mu index 09f6f4d1..8ccb22cd 100644 --- a/shell/sandbox.mu +++ b/shell/sandbox.mu @@ -695,42 +695,6 @@ fn run _in-ah: (addr handle gap-buffer), out: (addr stream byte), globals: (addr } } -fn read-evaluate-and-move-to-globals _in-ah: (addr handle gap-buffer), globals: (addr global-table), definition-name: (addr stream byte) { - var in-ah/eax: (addr handle gap-buffer) <- copy _in-ah - var in/eax: (addr gap-buffer) <- lookup *in-ah - var read-result-h: (handle cell) - var read-result-ah/esi: (addr handle cell) <- address read-result-h - var trace-storage: trace - var trace/edx: (addr trace) <- address trace-storage - initialize-trace trace, 1/only-errors, 0x10/capacity, 0/visible - read-cell in, read-result-ah, trace - macroexpand read-result-ah, globals, trace - var nil-storage: (handle cell) - var nil-ah/eax: (addr handle cell) <- address nil-storage - allocate-pair nil-ah - var eval-result-storage: (handle cell) - var eval-result/edi: (addr handle cell) <- address eval-result-storage - debug-print "^", 4/fg, 0/bg - evaluate read-result-ah, eval-result, *nil-ah, globals, trace, 0/no-screen-cell, 0/no-keyboard-cell, 0/definitions-created, 1/call-number - { - var error?/eax: boolean <- has-errors? trace - compare error?, 0/false - break-if-= - set-cursor-position 0/screen, 0x40/x, 0x18/y - draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, "error when loading definition for ", 4/fg 0/bg - rewind-stream definition-name - draw-stream-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, definition-name, 3/fg 0/bg - set-cursor-position 0/screen, 0x40/x, 0x19/y - draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, "see trace in grey at top-left", 7/fg 0/bg - dump-trace trace # will print from 0, 0 - { - loop - } - } - debug-print "$", 4/fg, 0/bg - move-gap-buffer-to-global globals, read-result-ah, _in-ah -} - fn test-run-integer { var sandbox-storage: sandbox var sandbox/esi: (addr sandbox) <- address sandbox-storage -- cgit 1.4.1-2-gfad0 >
path: root/002test.cc
blob: 776e78e922f78fd67a6ab775df9ae9ad337a190f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93