Publication | Closed Access
Fast and precise hybrid type inference for JavaScript
131
Citations
19
References
2012
Year
Unknown Venue
EngineeringJavascript PerformanceProgram AnalysisAutomated ReasoningTyped NatureStatic AnalysisGeneric ProgrammingFormal MethodsSoftware AnalysisSoftware EngineeringType TheoryDependently Typed ProgrammingHybrid Type InferenceComputer ScienceType SystemCompilersFormal Verification
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.
| Year | Citations | |
|---|---|---|
Page 1
Page 1