Mercurial > hg > truffle
view graal/com.oracle.truffle.sl.test/tests/Arithmetic.sl @ 19757:e8d2f3f95dcd
Truffle-DSL: implemented duplication check for specializations with @Cached to avoid duplicates for multithreaded AST execution.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 10 Mar 2015 19:28:26 +0100 |
parents | b16ec83edc73 |
children |
line wrap: on
line source
function main() { println(3 + 4 - 2); println(3 - 4 + 2); println(3 - 4 - 2); println(3 * 4 + 2); println(3 + 4 * 2); println(3 + (4 - 2)); println(3 - (4 + 2)); println(3 - (4 - 2)); println(3 * (4 + 2)); println(3 + (4 * 2)); }