Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java @ 22502:d2b4fe945c23
Add missing Truffle boundary
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Wed, 16 Dec 2015 15:32:23 -0800 |
parents | 46a6d3eb790c |
children | ae2c10d36bed |
comparison
equal
deleted
inserted
replaced
22501:a63bda98cfdb | 22502:d2b4fe945c23 |
---|---|
39 * SOFTWARE. | 39 * SOFTWARE. |
40 */ | 40 */ |
41 package com.oracle.truffle.sl.runtime; | 41 package com.oracle.truffle.sl.runtime; |
42 | 42 |
43 import com.oracle.truffle.api.CallTarget; | 43 import com.oracle.truffle.api.CallTarget; |
44 import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary; | |
44 import com.oracle.truffle.api.ExecutionContext; | 45 import com.oracle.truffle.api.ExecutionContext; |
45 import com.oracle.truffle.api.TruffleLanguage; | 46 import com.oracle.truffle.api.TruffleLanguage; |
46 import com.oracle.truffle.api.dsl.NodeFactory; | 47 import com.oracle.truffle.api.dsl.NodeFactory; |
47 import com.oracle.truffle.api.frame.FrameDescriptor; | 48 import com.oracle.truffle.api.frame.FrameDescriptor; |
48 import com.oracle.truffle.api.interop.TruffleObject; | 49 import com.oracle.truffle.api.interop.TruffleObject; |
256 * wrappers of Java primitive types ({@link Integer}, {@link Double}). | 257 * wrappers of Java primitive types ({@link Integer}, {@link Double}). |
257 * | 258 * |
258 * @param name the name of the symbol to search for | 259 * @param name the name of the symbol to search for |
259 * @return object representing the symbol or <code>null</code> | 260 * @return object representing the symbol or <code>null</code> |
260 */ | 261 */ |
262 @TruffleBoundary | |
261 public Object importSymbol(String name) { | 263 public Object importSymbol(String name) { |
262 Object object = env.importSymbol(name); | 264 Object object = env.importSymbol(name); |
263 Object slValue = fromForeignValue(object); | 265 Object slValue = fromForeignValue(object); |
264 return slValue; | 266 return slValue; |
265 } | 267 } |