跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2603.18049 (cs)
[提交于 2026年3月17日]

标题:Conditional Execution of Transpiler Passes Based on Per-Script Feature Detection

作者:Rishipal Singh Bhatia
查看论文《Conditional Execution of Transpiler Passes Based on Per-Script Feature Detection》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:As the ECMAScript specification evolves, industrial-scale JavaScript compilers face the challenge of supporting modern language syntax while maintaining compatibility for diverse execution environments. Traditionally, compilers solve this by running transpilation passes in a monolithic pipeline, where the transpilation passes are chosen to execute strictly based on a target language level. This results in significant computational waste, as compilers perform expensive Abstract Syntax Tree (AST) traversals to lower features that may not exist in the actual input source code. We present a compiler improvement that conditionally executes transpiler passes based on accurately tracking and dynamically maintaining the exact set of language features present in the compilation unit throughout the transpilation process. It is implemented in the production Google Closure Compiler. By populating and maintaining a FeatureSet at every JavaScript script-level, it dynamically skips running unnecessary lowering passes. We detail the architectural safeguards -- including strategic pass ordering and dynamic validation of the transpiled code for feature-correctness. Evaluation of this improvement on large-scale production monorepos produced a considerable reduction in compilation time and saved compute and memory usage.
评论: Preprint. Under review at SOAP 2026. Implementation available in Google Closure Compiler
主题: 程序设计语言 (cs.PL); 软件工程 (cs.SE)
引用方式: arXiv:2603.18049 [cs.PL]
  (或者 arXiv:2603.18049v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2603.18049

提交历史

来自:Rishipal Singh Bhatia
[v1] 2026年3月17日 星期二 19:54:22 UTC
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-03
切换浏览方式为:
cs
cs.SE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站