Mercurial > hg > truffle
changeset 18591:62723b0ac9e6
ArrayCopySnippets: add comment about lookup
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Tue, 02 Dec 2014 15:51:02 +0100 |
parents | 15224d4c0347 |
children | 278f8fe0c212 |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ArrayCopySnippets.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ArrayCopySnippets.java Tue Dec 02 15:51:02 2014 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ArrayCopySnippets.java Tue Dec 02 15:51:02 2014 +0100 @@ -79,11 +79,13 @@ public static Method getSnippetForKind(Kind kind, boolean shouldUnroll, boolean exact) { Method m = null; if (!shouldUnroll && exact) { + // use hotspot stubs m = arraycopyCalls.get(kind); if (m != null) { return m; } } + // use snippets return arraycopyMethods.get(kind); }