mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-28 23:15:24 -05:00
14 lines
265 B
JavaScript
14 lines
265 B
JavaScript
function square(a) {
|
|
let result = a * a;
|
|
return result;
|
|
}
|
|
|
|
// Call function once to fill type information
|
|
square(23);
|
|
|
|
// Call function again to go from uninitialized -> pre-monomorphic -> monomorphic
|
|
square(13);
|
|
%OptimizeFunctionOnNextCall(square);
|
|
square(71);
|
|
|