save as
+------------+ +------------+ | | | | | CONTEXT |<-+ | CONTEXT |<-+ | | | | | | +------------+ | +------------+ | | | +------------+ | +------------+ | | getY | | | getY | | | | | | | | | *------+--+ | *------+--+ | | | | | | +------------+ | +------------+ | | | +------------+ | +------------+ | | getX | | | getX | | | | | | | | | *------+--+ | *------+--+ | | | | | | +------------+ | +------------+ | | | +------------+ | +------------+ | | getSum | | | getSum | | | | | | | | | *------+--+ | *------+--+ | * | | * | +-----+------+ +-----+------+ | | +----------+-------+ | v +--------------------+ | SharedFunctionInfo| | * | +----------+---------+ | v +--------------------+ | unoptimized Code | | | ??? <--+---* getX call | | | ??? <--+---* getY call | | | +--------------------+