comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/xir/RiXirGenerator.java @ 4262:744dade427b8

another batch of work towards GraalCompilation removal: * remove GraalCompilation in various places * add getGlobalStubRegisterConfig() to RiRuntime * remove CallStub xir op * remove template stub code from RiXirGenerator and calleeTemplates from XirTemplate * remove stub management code from GraalCompiler and LIRGenerator * remove Util.archKindsEqual
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 11 Jan 2012 13:35:49 +0100
parents aaac4894175c
children be4914c1c799 b225da954a32
comparison
equal deleted inserted replaced
4261:57b0da88576a 4262:744dade427b8
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.max.cri.xir; 23 package com.oracle.max.cri.xir;
24 24
25 import java.util.*;
26
27 import com.oracle.max.cri.ci.*; 25 import com.oracle.max.cri.ci.*;
28 import com.oracle.max.cri.ri.*; 26 import com.oracle.max.cri.ri.*;
29 import com.oracle.max.cri.ri.RiType.*; 27 import com.oracle.max.cri.ri.RiType.Representation;
30 28
31 /** 29 /**
32 * Represents the interface through which the compiler requests the XIR for a given bytecode from the runtime system. 30 * Represents the interface through which the compiler requests the XIR for a given bytecode from the runtime system.
33 */ 31 */
34 public interface RiXirGenerator { 32 public interface RiXirGenerator {
110 * 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.
111 */ 109 */
112 XirSnippet genTypeCheck(XirSite site, XirArgument object, XirArgument hub, RiType type); 110 XirSnippet genTypeCheck(XirSite site, XirArgument object, XirArgument hub, RiType type);
113 111
114 /** 112 /**
115 * Gets the list of XIR templates, using the given XIR assembler to create them if 113 * Initializes the XIR generator for the given XIR assembler.
116 * they haven't yet been created.
117 * 114 *
118 * @param asm the XIR assembler 115 * @param asm the XIR assembler
119 * @return the list of templates
120 */ 116 */
121 List<XirTemplate> makeTemplates(CiXirAssembler asm); 117 void initialize(CiXirAssembler asm);
122 118
123 } 119 }