Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultTruffleRuntime.java @ 22046:e7c2d36daf72
TruffleLanguage.parse method to convert a source to CallTarget. Basic caching to make sure the code is shared among tenants in one JVM.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Thu, 30 Jul 2015 17:36:34 +0200 |
parents | 9c8c0937da41 |
children | c6966c8ea83c |
comparison
equal
deleted
inserted
replaced
22045:ffbc7f472438 | 22046:e7c2d36daf72 |
---|---|
162 if (!(repeating instanceof Node)) { | 162 if (!(repeating instanceof Node)) { |
163 throw new IllegalArgumentException("Repeating node must be of type Node."); | 163 throw new IllegalArgumentException("Repeating node must be of type Node."); |
164 } | 164 } |
165 return new DefaultLoopNode(repeating); | 165 return new DefaultLoopNode(repeating); |
166 } | 166 } |
167 | |
168 } | 167 } |