Skip to content

Commit

Permalink
Merge pull request #168 from dzoep/fix-emit-local-step
Browse files Browse the repository at this point in the history
Remove conflicting module with macro-debugger/emit, fix dynamic-requi…
  • Loading branch information
countvajhula authored Mar 30, 2024
2 parents 05454b0 + 5769e83 commit 798d12f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
1 change: 0 additions & 1 deletion qi-lib/flow/core/compiler.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"syntax.rkt"
"../aux-syntax.rkt"
"strategy.rkt"
"debug.rkt"
"private/form-property.rkt")
"impl.rkt"
"passes.rkt"
Expand Down
20 changes: 0 additions & 20 deletions qi-lib/flow/core/debug.rkt

This file was deleted.

12 changes: 9 additions & 3 deletions qi-lib/flow/core/passes.rkt
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
#lang racket/base

(require (for-syntax racket/base
(for-syntax racket/base racket/syntax)
macro-debugger/emit))
(for-syntax racket/base racket/syntax)))

(provide (for-syntax define-and-register-pass
run-passes))

(begin-for-syntax

(define my-emit-local-step
(with-handlers ((exn? (lambda (ex)
(make-keyword-procedure
(lambda (kws kw-args . rest)
(void))))))
(dynamic-require 'macro-debugger/emit 'emit-local-step)))

;; Could be a list but for future extensibility a custom struct is
;; probably a better idea.
(struct passdef (name prio parser) #:transparent)
Expand Down Expand Up @@ -43,7 +49,7 @@
(for/fold ([stx stx])
([pass (in-list (unbox registered-passes))])
(define stx1 ((passdef-parser pass) stx))
(emit-local-step stx stx1 #:id (passdef-name pass))
(my-emit-local-step stx stx1 #:id (passdef-name pass))
stx1))

)

1 comment on commit 798d12f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Qi Performance Trends'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 798d12f Previous: 05454b0 Ratio
XOR 59 ms 27 ms 2.19

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.