首页> 外文会议>IEEE 17th International Symposium on High Performance Computer Architecture >Checked Load: Architectural support for JavaScript type-checking on mobile processors
【24h】

Checked Load: Architectural support for JavaScript type-checking on mobile processors

机译:已检查负载:对移动处理器上的JavaScript类型检查的体系结构支持

获取原文

摘要

Dynamic languages such as Javascript are the de-facto standard for web applications. However, generating efficient code for dynamically-typed languages is a challenge, because it requires frequent dynamic type checks. Our analysis has shown that some programs spend upwards of 20% of dynamic instructions doing type checks, and 12.9% on average. In this paper we propose Checked Load, a low-complexity architectural extension that replaces software-based, dynamic type checking. Checked Load is comprised of four new ISA instructions that provide flexible and automatic type checks for memory operations, and whose implementation requires minimal hardware changes. We also propose hardware support for dynamic type prediction to reduce the cost of failed type checks. We show how to use Checked Load in the Nitro JavaScript just-in-time compiler (used in the Safari 5 browser). Speedups on a typical mobile processor range up to 44.6% (with a mean of 11.2%) in popular JavaScript benchmarks. While we have focused our work on JavaScript, Checked Load is sufficiently general to support other dynamically-typed languages, such as Python or Ruby.
机译:动态语言(例如Javascript)是Web应用程序的实际标准。但是,为动态类型的语言生成有效的代码是一个挑战,因为它需要频繁的动态类型检查。我们的分析表明,某些程序花费超过20%的动态指令进行类型检查,平均花费12.9%。在本文中,我们提出了Checked Load,这是一种低复杂度的体系结构扩展,它取代了基于软件的动态类型检查。 Checked Load由四个新的ISA指令组成,这些指令为内存操作提供了灵活,自动的类型检查,并且其实现所需的硬件更改最少。我们还建议为动态类型预测提供硬件支持,以减少失败的类型检查的成本。我们展示了如何在Nitro JavaScript即时编译器(在Safari 5浏览器中使用)中使用Checked Load。在流行的JavaScript基准测试中,典型移动处理器的加速范围高达44.6%(平均为11.2%)。尽管我们将工作重点放在JavaScript上,但Checked Load的通用性足以支持其他动态类型的语言,例如Python或Ruby。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号