Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaMethodImpl.java @ 18829:40df42df39e0
Can be inlined must also return true for native methods that are intrinsified.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 11 Jan 2015 21:06:25 +0100 |
parents | 5a21cac1968f |
children | 7f4cb7587f4c |
comparison
equal
deleted
inserted
replaced
18828:161503950494 | 18829:40df42df39e0 |
---|---|
545 @Override | 545 @Override |
546 public boolean canBeInlined() { | 546 public boolean canBeInlined() { |
547 if (isDontInline()) { | 547 if (isDontInline()) { |
548 return false; | 548 return false; |
549 } | 549 } |
550 return this.hasBytecodes() && runtime().getCompilerToVM().canInlineMethod(metaspaceMethod); | 550 return runtime().getCompilerToVM().canInlineMethod(metaspaceMethod); |
551 } | 551 } |
552 | 552 |
553 @Override | 553 @Override |
554 public boolean shouldBeInlined() { | 554 public boolean shouldBeInlined() { |
555 if (isForceInline()) { | 555 if (isForceInline()) { |