Concepedia

Publication | Closed Access

Fast and precise hybrid type inference for JavaScript

131

Citations

19

References

2012

Year

Brian Hackett, Shuyu Guo

Unknown Venue

Abstract

JavaScript performance is often bound by its dynamically typed nature. Compilers do not have access to static type information, making generation of efficient, type-specialized machine code difficult. We seek to solve this problem by inferring types. In this paper we present a hybrid type inference algorithm for JavaScript based on points-to analysis. Our algorithm is fast, in that it pays for itself in the optimizations it enables. Our algorithm is also precise, generating information that closely reflects the program's actual behavior even when analyzing polymorphic code, by augmenting static analysis with run-time type barriers.

References

YearCitations

Page 1