comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/xir/RiXirGenerator.java @ 4452:b225da954a32

inlining of multiple trival methods at one call site works
author Christian Haeubl <christian.haeubl@oracle.com>
date Fri, 27 Jan 2012 18:16:32 -0800
parents 744dade427b8
children 11a4af4a6621
comparison
equal deleted inserted replaced
4451:defa1b705f14 4452:b225da954a32
100 /** 100 /**
101 * Generates code that checks that the {@linkplain Representation#ObjectHub hub} of 101 * Generates code that checks that the {@linkplain Representation#ObjectHub hub} of
102 * an object is identical to a given hub constant. In pseudo code: 102 * an object is identical to a given hub constant. In pseudo code:
103 * <pre> 103 * <pre>
104 * if (object.getHub() != hub) { 104 * if (object.getHub() != hub) {
105 * uncommonTrap(); 105 * jump(falseSuccessor)
106 * } 106 * }
107 * </pre> 107 * </pre>
108 * This snippet should only be used when the object is guaranteed not to be null. 108 * This snippet should only be used when the object is guaranteed not to be null.
109 */ 109 */
110 XirSnippet genTypeCheck(XirSite site, XirArgument object, XirArgument hub, RiType type); 110 XirSnippet genTypeBranch(XirSite site, XirArgument thisHub, XirArgument otherHub, RiType type);
111 111
112 /** 112 /**
113 * Initializes the XIR generator for the given XIR assembler. 113 * Initializes the XIR generator for the given XIR assembler.
114 * 114 *
115 * @param asm the XIR assembler 115 * @param asm the XIR assembler