Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotBackend.java @ 15345:109d6c7c40b5
implement SPARC uncommon trap stub
author | twisti |
---|---|
date | Wed, 23 Apr 2014 15:12:41 -1000 |
parents | 5e544920ad9f |
children | bb97b75d1d65 |
comparison
equal
deleted
inserted
replaced
15344:8065d79ccd49 | 15345:109d6c7c40b5 |
---|---|
78 } | 78 } |
79 | 79 |
80 @Override | 80 @Override |
81 public LIRGeneratorTool newLIRGenerator(CallingConvention cc, LIRGenerationResult lirGenRes) { | 81 public LIRGeneratorTool newLIRGenerator(CallingConvention cc, LIRGenerationResult lirGenRes) { |
82 return new SPARCHotSpotLIRGenerator(getProviders(), getRuntime().getConfig(), cc, lirGenRes); | 82 return new SPARCHotSpotLIRGenerator(getProviders(), getRuntime().getConfig(), cc, lirGenRes); |
83 } | |
84 | |
85 @Override | |
86 public LIRGenerationResult newLIRGenerationResult(LIR lir, FrameMap frameMap, Object stub) { | |
87 return new SPARCHotSpotLIRGenerationResult(lir, frameMap, stub); | |
83 } | 88 } |
84 | 89 |
85 @Override | 90 @Override |
86 public NodeLIRBuilderTool newNodeLIRBuilder(StructuredGraph graph, LIRGeneratorTool lirGen) { | 91 public NodeLIRBuilderTool newNodeLIRBuilder(StructuredGraph graph, LIRGeneratorTool lirGen) { |
87 return new SPARCHotSpotNodeLIRBuilder(graph, lirGen); | 92 return new SPARCHotSpotNodeLIRBuilder(graph, lirGen); |
188 | 193 |
189 return crb; | 194 return crb; |
190 } | 195 } |
191 | 196 |
192 @Override | 197 @Override |
193 public LIRGenerationResult newLIRGenerationResult(LIR lir, FrameMap frameMap, Object stub) { | |
194 return new LIRGenerationResultBase(lir, frameMap); | |
195 } | |
196 | |
197 @Override | |
198 public void emitCode(CompilationResultBuilder crb, LIR lir, ResolvedJavaMethod installedCodeOwner) { | 198 public void emitCode(CompilationResultBuilder crb, LIR lir, ResolvedJavaMethod installedCodeOwner) { |
199 SPARCMacroAssembler masm = (SPARCMacroAssembler) crb.asm; | 199 SPARCMacroAssembler masm = (SPARCMacroAssembler) crb.asm; |
200 FrameMap frameMap = crb.frameMap; | 200 FrameMap frameMap = crb.frameMap; |
201 RegisterConfig regConfig = frameMap.registerConfig; | 201 RegisterConfig regConfig = frameMap.registerConfig; |
202 HotSpotVMConfig config = getRuntime().getConfig(); | 202 HotSpotVMConfig config = getRuntime().getConfig(); |