asm.js Chrome 中的编译信息

asm.js compilation info in Chrome

当某些带有 use asm; 指令的 asm.js 代码在 Firefox 中被解析时,控制台会告诉我它是否成功验证和编译。类似于:

Successfully compiled asm.js code
(total compilation time 0ms; not stored in cache (too small to benefit))

是否也可以在 Chrome 中获取此信息?

Google Chrome 不支持编译 asm.js。它仍然可以 运行 asm.js,就像任何其他 Javascript 引擎一样,并且根据 Asm.js 的维基百科页面,截至 Chrome 28,V8 Javascript 引擎包含一些优化以提高 asm.js 性能,但是 Chrome 并没有像 Firefox 那样充分利用 asm.js。

根据 Chromium issue tracking page and this official Chrome page,Chrome 的计划似乎是完全跳过 asm.js 支持并在未来的版本中支持 WebAssembly。