dyoo / whalesong

Whalesong: Racket to JavaScript compiler
http://hashcollision.org/whalesong
250 stars 30 forks source link

each application seems annotated with a lot more information than expected #49

Closed dyoo closed 12 years ago

dyoo commented 12 years ago

While looking at the bytecode, I see something unusual: the constant being recorded for the procedure application is significantly larger than I expected. For example:

(make-WithContMark (make-ToplevelRef 1 6 false false) (make-Constant (list (list 'apply 'make-swf 'args)

path:/gpfs/main/home/dyoo/work/whalesong/tests/more-tests/isolating-bug.rkt

             23
             34
             858
             18))
           (make-App
            (make-PrimitiveKernelValue 'apply)
            (list (make-LocalRef 2 true) (make-LocalRef 4 false))))
          (list 2 6)
          '_1)

I don't remember the tracing-app function doing that much work. I have to see why the continuation mark's value is recording that much information.

dyoo commented 12 years ago

Ah. It's coming from when I run in DrRacket context. This is strange though. I thought I had cleared the namespace so that I'm running in a clean compiling context. So this is still a potential issue.

dyoo commented 12 years ago

Closing for now.