Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/call/SLUninitializedDispatchNode.java @ 13836:64c77f0577bb
More documentation and improvements of Simple Language
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Thu, 30 Jan 2014 17:53:27 -0800 |
parents | b16ec83edc73 |
children | 89ac75425681 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/call/SLUninitializedDispatchNode.java Thu Jan 30 17:52:24 2014 -0800 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/call/SLUninitializedDispatchNode.java Thu Jan 30 17:53:27 2014 -0800 @@ -65,13 +65,13 @@ /* Extend the inline cache. Allocate the new cache entry, and the new end of the cache. */ SLAbstractDispatchNode next = new SLUninitializedDispatchNode(); SLAbstractDispatchNode direct = new SLDirectDispatchNode(next, function); - /* Replace ourselfs with the new cache entry. */ + /* Replace ourself with the new cache entry. */ specialized = replace(direct); } else { /* Cache size exceeded, fall back to a single generic dispatch node. */ SLAbstractDispatchNode generic = new SLGenericDispatchNode(); - /* Replace the whole chain, not just ourselfs, with the new generic node. */ + /* Replace the whole chain, not just ourself, with the new generic node. */ specialized = callNode.dispatchNode.replace(generic); }