Skip to content

Commit

Permalink
Merge pull request #5333 from unisonweb/topic/jit-trace
Browse files Browse the repository at this point in the history
Various fixes that enable running cloud on the JIT
  • Loading branch information
pchiusano committed Sep 9, 2024
2 parents 9af301d + a70e39a commit 5af1534
Show file tree
Hide file tree
Showing 10 changed files with 812 additions and 337 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
env:
## Some version numbers that are used during CI
ormolu_version: 0.7.2.0
jit_version: "@unison/internal/releases/0.0.18"
jit_version: "@unison/internal/releases/0.0.19"
runtime_tests_version: "@unison/runtime-tests/main"

## Some cached directories
Expand Down
8 changes: 4 additions & 4 deletions scheme-libs/racket/unison-runtime.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@
(define ((eval-exn-handler port) rq)
(request-case rq
[pure (result) (encode-success result port)]
[ref-exception:typelink
[ref-exception
[0 (fail)
(control ref-exception:typelink k
(control ref-exception k
(encode-exception fail port))]]))

; Implements the evaluation mode of operation. First decodes the
Expand All @@ -134,7 +134,7 @@
([exn:bug? (lambda (e) (encode-error e out))])

(parameterize ([current-command-line-arguments args])
(handle [ref-exception:typelink] (eval-exn-handler out)
(handle [ref-exception] (eval-exn-handler out)
((termlink->proc main-ref)))))))

; Uses racket pretty printing machinery to instead generate a file
Expand All @@ -147,7 +147,7 @@
(parameterize ([print-as-expression #t])
(display "#lang racket/base\n\n" port)

(for ([expr (build-intermediate-module main-ref icode)])
(for ([expr (build-intermediate-module #:profile #f main-ref icode)])
(pretty-print expr port 1)
(newline port))
(newline port)))
Expand Down
Loading

0 comments on commit 5af1534

Please sign in to comment.