comparison graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/LIRGenerator.java @ 13520:fb7b39f07232

Embed compressed constants when possible and use more efficient patterns for encoding
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Mon, 06 Jan 2014 17:19:18 -0800
parents ab4c3a33a8b1
children 63bb635911ab
comparison
equal deleted inserted replaced
13519:1ceb90be7bac 13520:fb7b39f07232
165 * 165 *
166 * @param c The constant to check. 166 * @param c The constant to check.
167 * @return True if the constant can be used directly, false if the constant needs to be in a 167 * @return True if the constant can be used directly, false if the constant needs to be in a
168 * register. 168 * register.
169 */ 169 */
170 public abstract boolean canStoreConstant(Constant c); 170 public abstract boolean canStoreConstant(Constant c, boolean isCompressed);
171 171
172 public LIRGenerator(StructuredGraph graph, Providers providers, FrameMap frameMap, CallingConvention cc, LIR lir) { 172 public LIRGenerator(StructuredGraph graph, Providers providers, FrameMap frameMap, CallingConvention cc, LIR lir) {
173 this.graph = graph; 173 this.graph = graph;
174 this.providers = providers; 174 this.providers = providers;
175 this.frameMap = frameMap; 175 this.frameMap = frameMap;