Property caches revisited - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2019

Property caches revisited

Manuel Serrano


Property caches are a well-known technique invented over 30 years ago to improve dynamic object accesses. They have been adapted to JavaScript, which they have greatly contributed to accelerate. However, this technique is applicable only when some constraints are satisfied by the objects, the properties, and the property access sites. In this work, we propose enhancements to improve two common usage patterns: prototype accesses and megamorphic accesses. We have implemented these in the Hopc AOT JavaScript compiler and we have measured their impact. We observe that they effectively complement traditional caches. They reduce cache misses and consequently accelerate execution. Moreover, they do not cause a slowdown in the handling of the other usage patterns.
No file

Dates and versions

hal-02418678 , version 1 (19-12-2019)



Manuel Serrano, Marc Feeley. Property caches revisited. CC 2019 - 28th International Conference on Compiler Construction, Feb 2019, Washington, United States. pp.99-110, ⟨10.1145/3302516.3307344⟩. ⟨hal-02418678⟩
47 View
0 Download



Gmail Facebook X LinkedIn More