Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2771:056e392d63d4
Connected local variables to start node. No more need for frame state to emit locals.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Tue, 24 May 2011 09:49:04 +0200 |
parents | dd6419f4bfe2 |
children | 27512ea6bbcb |
comparison
equal
deleted
inserted
replaced
2770:4f3053eef0de | 2771:056e392d63d4 |
---|---|
960 RiType receiverType = declaredType; | 960 RiType receiverType = declaredType; |
961 RiType exactType = receiver.exactType(); | 961 RiType exactType = receiver.exactType(); |
962 if (exactType == null && declaredType != null) { | 962 if (exactType == null && declaredType != null) { |
963 exactType = declaredType.exactType(); | 963 exactType = declaredType.exactType(); |
964 } | 964 } |
965 if (exactType == null && receiver instanceof Local && ((Local) receiver).javaIndex() == 0) { | 965 if (exactType == null && receiver instanceof Local && ((Local) receiver).index() == 0) { |
966 // the exact type isn't known, but the receiver is parameter 0 => use holder | 966 // the exact type isn't known, but the receiver is parameter 0 => use holder |
967 receiverType = compilation.method.holder(); | 967 receiverType = compilation.method.holder(); |
968 exactType = receiverType.exactType(); | 968 exactType = receiverType.exactType(); |
969 } | 969 } |
970 boolean needsCheck = true; | 970 boolean needsCheck = true; |