Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java @ 21716:2f9e4d984d16
Give languages a chance to do implicit exports. Prefer explicit exports over implicit ones.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Thu, 04 Jun 2015 08:08:05 +0200 |
parents | c8418635b575 |
children | 45083be8a812 |
comparison
equal
deleted
inserted
replaced
21715:67e28e817d32 | 21716:2f9e4d984d16 |
---|---|
366 } | 366 } |
367 return null; | 367 return null; |
368 } | 368 } |
369 | 369 |
370 @Override | 370 @Override |
371 protected Object findExportedSymbol(String globalName) { | 371 protected Object findExportedSymbol(String globalName, boolean onlyExplicit) { |
372 for (SLFunction f : context.getFunctionRegistry().getFunctions()) { | 372 for (SLFunction f : context.getFunctionRegistry().getFunctions()) { |
373 if (globalName.equals(f.getName())) { | 373 if (globalName.equals(f.getName())) { |
374 return f; | 374 return f; |
375 } | 375 } |
376 } | 376 } |