Property caches revisited - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2019

Property caches revisited

Manuel Serrano

Résumé

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.
Fichier non déposé

Dates et versions

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

Identifiants

Citer

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 Consultations
0 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More