comparison truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLFunction.java @ 22118:31eb066d75ac

Usage of CompilerDirectives in ForeignAccess is wrong, as calls to ForeignAccess can only happen on slow path as shown by 7646278cca8a
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Mon, 31 Aug 2015 09:01:36 +0200
parents ce5495c70de4
children dc83cc1f94f2
comparison
equal deleted inserted replaced
22117:fab555eab36e 22118:31eb066d75ac
115 * them implement {@link TruffleObject} and provide additional {@link SLFunctionForeignAccess 115 * them implement {@link TruffleObject} and provide additional {@link SLFunctionForeignAccess
116 * foreign access implementation}. 116 * foreign access implementation}.
117 */ 117 */
118 @Override 118 @Override
119 public ForeignAccess getForeignAccess() { 119 public ForeignAccess getForeignAccess() {
120 return SLFunctionForeignAccess.getSingleton(); 120 return SLFunctionForeignAccess.create();
121 } 121 }
122 } 122 }