I have started to bootstrap Tachyon with js2scm to find which library functions are required. In the process I have had to resolve a few issues with the Tachyon sources.
I thought your goal was to use the parser to find the missing library functions we need to implement. Are you telling us that your goal is to fully compile Tachyon to scheme? Not to be grumpy, but I wish that time was spent elsewhere. The parser still isn't fully fixed, as far as I know. There was a long list of fixes you had me e-mail you twice (or was it 3 times?) a little while ago.
Also, the modifications you've made in the assembler seem to be causing "make run" to segfault on my machine. What are those "redundant x86 instructions" you removed?
I've also discovered that the following global variables are referenced but they are not used anywhere. Please fix this!
I fixed the ones I was able to locate.
Also, I have encountered this style of code: if (Error.captureStackTrace) to test for the existence of a particular feature (V8 specific?). Please use this instead: if (Error.captureStackTrace !== undefined) which will make implementing "if" easier. In other words, make sure the test of an if yields a boolean.
Seriously? This should be trivial to implement in any interpreter. It's also used in lots of places in our code, and it's convenient.
- Maxime