Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java @ 11818:793743715dc1
put Node.getEncapsulatedSourceSection() on slow path
author | Michael Haupt <michael.haupt@oracle.com> |
---|---|
date | Fri, 27 Sep 2013 16:39:54 +0200 |
parents | 4ab1f371adc8 |
children | be0a33a631fa |
comparison
equal
deleted
inserted
replaced
11817:4bae51f0c888 | 11818:793743715dc1 |
---|---|
100 /** | 100 /** |
101 * Retrieves the guest language source code section that is currently assigned to this node. | 101 * Retrieves the guest language source code section that is currently assigned to this node. |
102 * | 102 * |
103 * @return the assigned source code section | 103 * @return the assigned source code section |
104 */ | 104 */ |
105 @CompilerDirectives.SlowPath | |
105 public final SourceSection getEncapsulatingSourceSection() { | 106 public final SourceSection getEncapsulatingSourceSection() { |
106 if (sourceSection == null && getParent() != null) { | 107 if (sourceSection == null && getParent() != null) { |
107 return getParent().getEncapsulatingSourceSection(); | 108 return getParent().getEncapsulatingSourceSection(); |
108 } | 109 } |
109 return sourceSection; | 110 return sourceSection; |