mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 03:48:03 -06: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);
|
|
|