Add `isHostType` to perf.js.