Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/TypeSystemTest.java @ 9330:e162d9e32830
Added a clazz parameter to Frame.getArguments in order to allow unsafe access to the arguments object (i.e., avoiding the null check and the type cast).
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 26 Apr 2013 17:15:10 +0200 |
parents | 8e3a1635cc9e |
children | 72e6b178de16 |
comparison
equal
deleted
inserted
replaced
9329:fa188fbfe3fe | 9330:e162d9e32830 |
---|---|
113 } | 113 } |
114 | 114 |
115 @Override | 115 @Override |
116 public Object execute(VirtualFrame frame) { | 116 public Object execute(VirtualFrame frame) { |
117 invocationCount++; | 117 invocationCount++; |
118 return ((TestArguments) frame.getArguments()).get(index); | 118 return frame.getArguments(TestArguments.class).get(index); |
119 } | 119 } |
120 | 120 |
121 } | 121 } |
122 | 122 |
123 } | 123 } |