JavaScript is heavily used in the web, yet it is much slower than other languages. To improve the JavaScript performance, aheadof- time compilation (AOTC) has been used, either to reuse the bytecode or the machine code generated by the baseline just-intime compilation (JITC). JavaScript engines today employ highperformance optimizing JITC. So, we propose an AOTC that reuses the code generated by the optimizing JITC. It is more challenging than existing AOTCs since we need to handle more complex address relocation issues. Our preliminary evaluation shows that the proposed AOTC is promising, though.