Mercurial > hg > truffle
view graal/com.oracle.truffle.sl.test/tests/Inlining.sl @ 19248:a2ff253c458f
Truffle/Instrumentation: code cleanups in tools CoverageTracker and NodeExecCounter, especially for tutorial value
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 10 Feb 2015 16:44:19 -0800 |
parents | 2caa107f51ce |
children |
line wrap: on
line source
function a() {return 42;} function b() {return a();} function c() {return b();} function d() {return c();} function e() {return c();} function f() {return c();} function g() {return d() + e() + f();} function main() { i = 0; result = 0; while (i < 10000) { result = result + g(); i = i + 1; } return result; }