Skip to content

JIT Compilation: Fast: x86_64 (TD)

Pieter van Ginkel edited this page Jul 19, 2015 · 6 revisions

This page describes the implementation of the fast JIT compiler for the x84_64.

Calling convention

All methods have a regular calling convention. This calling convention applies both to JIT compiled user code and integration functions (functions that expose functionality, e.g. JsEnv::add).

Input arguments

  • [0] globals: A pointer to the global data (see JIT Compilation (TD)),
  • [1] mode: The JsMode describing the mode in which the function was called;
  • [2] argc: The number of arguments provided to the function;
  • [3] args: A pointer to the arguments provided to the function with the following layout:
    • [0] return: Allocated space for the return value;
    • [1] this: The this value;
    • [2] function: The function being called;
    • [3..args + 3] arguments: The arguments to the function.

Result

The result of a function is a Boolean specifying whether the function completed successfully. If this is set to false, the exception in flight will be assigned to the global data.

Clone this wiki locally