JSX compiler is self-hosted. tool/bootstrap-compiler.js
is the bootstrap compiler, which is a version of pre-compiled JSX compiler.
To update the bootstrap compiler, type make bootstrap-compiler
.
JSX has a compilation server, or persistent compilation daemon, to accelerate compilation.
- bin/jsx - a wrapper script which runs compilation server automatically and requests compilation to the server
- bin/jsx-compiler.js - the entity of JSX compiler
t/util/test-runner
dispatches test according to the test directory.
t/run/*.jsx
are JSX language specification to test how JSX workst/compile_error/*.jsx
are also specification to test what should be errorst/complete/*.jsx
tests--mode complete
t/web/*.jsx
are web stuff tested withphantomjs
t/lib/*.jsx
andt/src/*.jsx
are libraries and JSX sources tested withtest-case.jsx
NodeJS can profile applications with V8Profiler.
- Run JSX compiler with
node --prof
e.g.node --prof bin/jsx-compiler.js example/hello.jsx > /dev/null
- Parse v8.log with node-tick-processor
e.g.
node-tick-processor > prof.txt
- Look into the result.