Mercurial > hg > truffle
comparison graal/com.oracle.graal.asm.sparc/src/com/oracle/graal/asm/sparc/SPARCMacroAssembler.java @ 21543:93c50cefb9e8
moved GraalInternalError to com.oracle.jvmci.common and renamed it to JVMCIError (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 25 May 2015 23:30:34 +0200 |
parents | d3b276db28b8 |
children | 48c1ebd24120 |
comparison
equal
deleted
inserted
replaced
21542:543957c1c6a6 | 21543:93c50cefb9e8 |
---|---|
28 | 28 |
29 import java.util.function.*; | 29 import java.util.function.*; |
30 | 30 |
31 import com.oracle.graal.api.code.*; | 31 import com.oracle.graal.api.code.*; |
32 import com.oracle.graal.asm.*; | 32 import com.oracle.graal.asm.*; |
33 import com.oracle.graal.compiler.common.*; | 33 import com.oracle.jvmci.common.*; |
34 | 34 |
35 public class SPARCMacroAssembler extends SPARCAssembler { | 35 public class SPARCMacroAssembler extends SPARCAssembler { |
36 | 36 |
37 /** | 37 /** |
38 * A sentinel value used as a place holder in an instruction stream for an address that will be | 38 * A sentinel value used as a place holder in an instruction stream for an address that will be |
101 setBits = d16Split; | 101 setBits = d16Split; |
102 maskBits = D16HI_MASK | D16LO_MASK; | 102 maskBits = D16HI_MASK | D16LO_MASK; |
103 } | 103 } |
104 break; | 104 break; |
105 default: | 105 default: |
106 throw GraalInternalError.shouldNotReachHere("Unknown op2 " + op2); | 106 throw JVMCIError.shouldNotReachHere("Unknown op2 " + op2); |
107 } | 107 } |
108 int newInst = ~maskBits & inst; | 108 int newInst = ~maskBits & inst; |
109 newInst |= setBits; | 109 newInst |= setBits; |
110 emitInt(newInst, branch); | 110 emitInt(newInst, branch); |
111 } | 111 } |