Back to search

Chalmers University of Technology

Quick Access - Optimizing AOT Compiled Dynamic Programming Languages

Abstract

dc:description.abstract

Research on dynamic programming languages typically focus on just-in-time (JIT) compilation. However, JIT techniques are not always viable due to hardware limitations or security concerns, making it valuable to study ahead-of-time (AOT) compilation of dynamic languages as well. The GameMaker game engine targets mobile devices, game consoles, and WebAssembly — all platforms poorly suited for JIT compilation. Instead, GameMaker supports AOT compilation of JavaScript and its own language, GameMaker Language. In this thesis, we extend the engine with new profiling tools to analyze the memory usage and runtime performance of property accesses, a frequent and performance-critical operation in dynamic languages. Using our new tools, we identify several opportunities for improvement in both the compiler and runtime environment. Finally, we propose and implement solutions to the identified areas of improvement. These include polymorphic property caches, a pipeline for profile-guided optimizations, caching of accessor properties, and cache pools designed to facilitate cache invalidation. In certain benchmarks, our solutions achieve speedups with factors ranging from 1.5 to 2.9.

Degree

thesis:*
Level thesis:degree_level
H
Department dc:contributor.department
Chalmers tekniska högskola / Institutionen för data och informationsteknik
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • Adelhult, Eli
  • Forsinge, Carl
Advisor dc:contributor.supervisor
  • Myreen, Magnus
Committee member dc:contributor.committeemember
  • Russo, Alejandro

Subjects

dc:subject × 3

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Coursecode
DATX05

Chain of custody

source
Harvested from
Chalmers University of Technology
Base URL
odr.chalmers.se/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Adelhult, Eli; Forsinge, Carl. Quick Access - Optimizing AOT Compiled Dynamic Programming Languages. H thesis, 2025. https://hdl.handle.net/20.500.12380/310877