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/*.jsxare JSX language specification to test how JSX workst/compile_error/*.jsxare also specification to test what should be errorst/complete/*.jsxtests--mode completet/web/*.jsxare web stuff tested withphantomjst/lib/*.jsxandt/src/*.jsxare libraries and JSX sources tested withtest-case.jsx
NodeJS can profile applications with V8Profiler.
- Run JSX compiler with
node --profe.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.