Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/TypeSystemTest.java @ 18785:93016f2f3f16
Truffle-DSL: optimize generated code for nodes with a single specialization. (GRAAL-602 #resolve)
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 05 Jan 2015 20:23:22 +0100 |
parents | 3ea386a1036f |
children | 9ca538e3e46e |
comparison
equal
deleted
inserted
replaced
18784:3c7d543d758d | 18785:93016f2f3f16 |
---|---|
181 return frame.getArguments()[index]; | 181 return frame.getArguments()[index]; |
182 } | 182 } |
183 | 183 |
184 @Override | 184 @Override |
185 public int executeInt(VirtualFrame frame) throws UnexpectedResultException { | 185 public int executeInt(VirtualFrame frame) throws UnexpectedResultException { |
186 invocationCount++; | |
186 // avoid casts for some tests | 187 // avoid casts for some tests |
187 Object o = frame.getArguments()[index]; | 188 Object o = frame.getArguments()[index]; |
188 if (o instanceof Integer) { | 189 if (o instanceof Integer) { |
189 return (int) o; | 190 return (int) o; |
190 } | 191 } |