1. A method for a compiler, comprising: receiving, by the compiler and from an interpreter, a representation of a code section having a control path that changes the representation, wherein the representation is an abstract syntax tree (AST) comprising a plurality of nodes, each of the plurality of nodes storing associated profiling data, and wherein the profiling data comprises a threshold; compiling, by the compiler, a machine code of the representation by: performing, based on the threshold, a partial evaluation of the interpreter executing the representation, wherein the control path is replaced with a deoptimization point during compilation of the machine code; triggering the deoptimization point during execution of the machine code; and returning execution to the interpreter based on the triggering.