rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
checkIsConstructed(derParams, "Wrong DSS Parameters field");
DerUtil.checkIsConstructed(derParams, "Wrong DSS Parameters field");
public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); checkIsConstructed(derPKI, "Wrong Pr...
checkIsBigInteger(val, "Wrong P field");
DerUtil.checkIsBigInteger(val, "Wrong P field");
public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); checkIsConstructed(derPKI, "Wrong Pr...
checkIsBigInteger(val, "Wrong G field");
DerUtil.checkIsBigInteger(val, "Wrong G field");
public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); checkIsConstructed(derPKI, "Wrong Pr...
checkIsBigInteger(val, "Wrong Q field");
DerUtil.checkIsBigInteger(val, "Wrong Q field");
public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); checkIsConstructed(derPKI, "Wrong Pr...
checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field");
DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field");
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl...
checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field");
DerUtil.checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field");
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl...
checkIsConstructed(derParams, "Wrong DH Parameters field");
DerUtil.checkIsConstructed(derParams, "Wrong DH Parameters field");
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl...
checkIsBigInteger(val, "Wrong P field");
DerUtil.checkIsBigInteger(val, "Wrong P field");
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl...
checkIsBigInteger(val, "Wrong G field");
DerUtil.checkIsBigInteger(val, "Wrong G field");
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl...
checkIsBigInteger(val, "Wrong Q field");
DerUtil.checkIsBigInteger(val, "Wrong Q field");
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl...
checkIsBigInteger(val, "Wrong Y field");
DerUtil.checkIsBigInteger(val, "Wrong Y field");
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl...
Level logLevel = logger.getLevel(); String searchName = name; String parentName = parent != null ? parent.getName() : ""; while (logLevel == null && ! searchName.equals(parentName)) { logLevel = getLevelProperty(searchName + ".level", logLevel); int index = searchName.lastIndexOf('.'); if(index > -1) searchName = searc...
public synchronized boolean addLogger(Logger logger) { /* To developers thinking about to remove the 'synchronized' * declaration from this method: Please read the comment * in java.util.logging.Logger.getLogger(String, String) * and make sure that whatever you change wrt. synchronization * does n...
public DHCPMessage(BOOTPHeader hdr, int msgType) { this(hdr); messageType = msgType;
private DHCPMessage(BOOTPHeader hdr) { header = hdr;
public DHCPMessage(BOOTPHeader hdr, int msgType) { this(hdr); messageType = msgType; }
prefSize = null;
public void invalidateLayout(Container target) { synchronized (this) { glassPaneBounds = null; layeredPaneBounds = null; contentPaneBounds = null; menuBarBounds = null; prefSize = null; } }
synchronized (this) { if (prefSize == null) {
Dimension prefSize = new Dimension();
public Dimension preferredLayoutSize(Container c) { // We must synchronize here, otherwise we cannot guarantee that the // prefSize is still non-null when returning. synchronized (this) { if (prefSize == null) { Insets i = getInsets(); prefSize ...
} return new Dimension(prefSize); }
return prefSize;
public Dimension preferredLayoutSize(Container c) { // We must synchronize here, otherwise we cannot guarantee that the // prefSize is still non-null when returning. synchronized (this) { if (prefSize == null) { Insets i = getInsets(); prefSize ...
titlePane.setBorder(new EmptyBorder(2, 2, 2, 2));
protected JComponent createNorthPane(JInternalFrame w) { titlePane = new MetalInternalFrameTitlePane(w); titlePane.setBorder(new EmptyBorder(2, 2, 2, 2)); return titlePane; }
if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalInternalFrameUI instance; if (o == null) { instance = new MetalInternalFrameUI((JInternalFrame) component); instances.put(component, instance); } else instance = (MetalInternalFrameUI) o; return instance;
return new MetalInternalFrameUI((JInternalFrame) component);
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalInternalFrameUI instance; if (o == null) { instance = new MetalInternalFrameUI((JInternalFrame) component); instances.put(component, instan...
currentRepaintManagers = new HashMap();
currentRepaintManagers = new WeakHashMap();
public static RepaintManager currentManager(Component component) { if (currentRepaintManagers == null) currentRepaintManagers = new HashMap(); ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager currentManager = (RepaintManager) currentRepaintManagers.get(threadGroup)...
currentRepaintManagers = new HashMap();
currentRepaintManagers = new WeakHashMap();
public static void setCurrentManager(RepaintManager manager) { if (currentRepaintManagers == null) currentRepaintManagers = new HashMap(); ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); currentRepaintManagers.put(threadGroup, manager); }
String parentNodeName = getParentNodeName();
String parentNodeName = getParentNodeName(XDFNodeName.VALUEGROUP);
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Value newvalue = new Value(); // reconsitute the value node PCdata ...
} else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) {
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Value newvalue = new Value(); // reconsitute the value node PCdata ...
Log.debugln("H_PROCESSING_INSTRUCTION:"+"<?"+target+" "+data+"?>");
public void processingInstruction(String target, String data) throws SAXException { // Log.debugln("<?"+target+" "+data+"?>"); // do nothing, method required by interface }
if (lowerBound < 1) throw new IllegalArgumentException("lowerBound may not be less than 1");
public JobImpressionsSupported(int lowerBound, int upperBound) { super(lowerBound, upperBound); }
writePUSH(Register.EDX); writePUSH(Register.EAX);
writePUSH64(Register.EAX, Register.EDX);
public final void invokeJavaMethod(String signature, X86CompilerContext context) { os.writeCALL(Register.EAX, context.getVmMethodNativeCodeField().getOffset()); //writeJumpTableCALL(X86JumpTable.VM_INVOKE_OFS); char ch = signature.charAt(signature.length() - 1); if (ch == 'V') { /** No return value */ } else if...
public final void writeLoadSTATICS(X86CompilerContext context) {
public final void writeLoadSTATICS(X86CompilerContext context, Label labelPrefix, boolean isTestOnly) {
public final void writeLoadSTATICS(X86CompilerContext context) { final int offset = context.getVmProcessorStaticsTable().getOffset(); os.writeXOR(STATICS, STATICS); os.writePrefix(X86Constants.FS_PREFIX); os.writeMOV(INTSIZE, STATICS, STATICS, offset); }
os.writeXOR(STATICS, STATICS); os.writePrefix(X86Constants.FS_PREFIX); os.writeMOV(INTSIZE, STATICS, STATICS, offset);
if (isTestOnly) { } else { os.writeXOR(STATICS, STATICS); os.writePrefix(X86Constants.FS_PREFIX); os.writeMOV(INTSIZE, STATICS, STATICS, offset); }
public final void writeLoadSTATICS(X86CompilerContext context) { final int offset = context.getVmProcessorStaticsTable().getOffset(); os.writeXOR(STATICS, STATICS); os.writePrefix(X86Constants.FS_PREFIX); os.writeMOV(INTSIZE, STATICS, STATICS, offset); }
public void flush() throws IOException { throw new UnsupportedOperationException("Not yet implemented"); }
public void flush() throws IOException { }
public void flush() throws IOException { throw new UnsupportedOperationException("Not yet implemented"); }
if (attachmentName == null || attachmentName.length() == 0) fbp.setFileName("tn5250j.txt");
if (attachmentName == null || attachmentName.length() == 0) { fbp.setFileName("tn5250j.txt"); }
public boolean send() throws Exception { try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Multipart mp = new MimeMultipart();...
SecurityManager sm = SecurityManager.current; if (sm != null) sm.checkLink(filename); if (loadLib(filename) == 0) throw new UnsatisfiedLinkError("Could not load library " + filename);
load(filename, VMStackWalker.getCallingClassLoader());
public void load(String filename) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkLink(filename); if (loadLib(filename) == 0) throw new UnsatisfiedLinkError("Could not load library " + filename); }
private static int loadLib(String filename)
private static int loadLib(String filename, ClassLoader loader)
private static int loadLib(String filename) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkRead(filename); return VMRuntime.nativeLoad(filename); }
return VMRuntime.nativeLoad(filename);
return VMRuntime.nativeLoad(filename, loader);
private static int loadLib(String filename) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkRead(filename); return VMRuntime.nativeLoad(filename); }
SecurityManager sm = SecurityManager.current; if (sm != null) sm.checkLink(libname); String filename; ClassLoader cl = VMSecurityManager.currentClassLoader(); if (cl != null) { filename = cl.findLibrary(libname); if (filename != null) { if (loadLib(filename) != 0) return; else throw new UnsatisfiedLinkError("Could not...
loadLibrary(libname, VMStackWalker.getCallingClassLoader()); }
public void loadLibrary(String libname) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkLink(libname); String filename; ClassLoader cl = VMSecurityManager.currentClassLoader(); if (cl != null) { filename = cl.findLibrary(libname); if (...
if (in.available() < 4) { throw new KeyAgreementException( "not enough bytes for a private key in message"); }
if (in.available() < 5) throw new KeyAgreementException("not enough bytes for a private key in message");
public PrivateKey readPrivateKey() throws KeyAgreementException { if (in.available() < 4) { throw new KeyAgreementException( "not enough bytes for a private key in message"); } byte[] elementLengthBytes = new byte[4]; in.read(elementLengthBytes, 0, 4);...
{
public PrivateKey readPrivateKey() throws KeyAgreementException { if (in.available() < 4) { throw new KeyAgreementException( "not enough bytes for a private key in message"); } byte[] elementLengthBytes = new byte[4]; in.read(elementLengthBytes, 0, 4);...
}
public PrivateKey readPrivateKey() throws KeyAgreementException { if (in.available() < 4) { throw new KeyAgreementException( "not enough bytes for a private key in message"); } byte[] elementLengthBytes = new byte[4]; in.read(elementLengthBytes, 0, 4);...
IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(kb); if (kpc == null) { throw new KeyAgreementException( "invalid private key, or encoded with an unknown codec"); }
IKeyPairCodec kpc = getKeyPairCodec(keyTypeAndFormatID);
public PrivateKey readPrivateKey() throws KeyAgreementException { if (in.available() < 4) { throw new KeyAgreementException( "not enough bytes for a private key in message"); } byte[] elementLengthBytes = new byte[4]; in.read(elementLengthBytes, 0, 4);...
if (in.available() < 4) { throw new KeyAgreementException( "not enough bytes for a public key in message"); }
if (in.available() < 5) throw new KeyAgreementException("not enough bytes for a public key in message");
public PublicKey readPublicKey() throws KeyAgreementException { if (in.available() < 4) { throw new KeyAgreementException( "not enough bytes for a public key in message"); } byte[] elementLengthBytes = new byte[4]; in.read(elementLengthBytes, 0, 4); ...
{
public PublicKey readPublicKey() throws KeyAgreementException { if (in.available() < 4) { throw new KeyAgreementException( "not enough bytes for a public key in message"); } byte[] elementLengthBytes = new byte[4]; in.read(elementLengthBytes, 0, 4); ...
}
public PublicKey readPublicKey() throws KeyAgreementException { if (in.available() < 4) { throw new KeyAgreementException( "not enough bytes for a public key in message"); } byte[] elementLengthBytes = new byte[4]; in.read(elementLengthBytes, 0, 4); ...
IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(kb); if (kpc == null) { throw new KeyAgreementException( "invalid public key, or encoded with an unknown codec"); }
IKeyPairCodec kpc = getKeyPairCodec(keyTypeAndFormatID);
public PublicKey readPublicKey() throws KeyAgreementException { if (in.available() < 4) { throw new KeyAgreementException( "not enough bytes for a public key in message"); } byte[] elementLengthBytes = new byte[4]; in.read(elementLengthBytes, 0, 4); ...
if (b.isFocusOwner())
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities...
if (b.hasFocus() && b.isFocusPainted()) { Color saved_color = g.getColor(); g.setColor(focusColor); Rectangle focusRect = ir.union(tr); g.drawRect(focusRect.x, focusRect.y, focusRect.width, focusRect.height); g.setColor(saved_color); }
protected void paintFocus(Graphics g, AbstractButton b, Rectangle vr, Rectangle tr, Rectangle ir) { if (b.hasFocus() && b.isFocusPainted()) { Color saved_color = g.getColor(); g.setColor(focusColor); Rectangle focusRect = ir.union(tr); g.drawRect(focusRe...
String inputLine, outputLine;
private void getNewSessionOptions() { try { BufferedReader in = new BufferedReader( new InputStreamReader( socket.getInputStream())); String inputLine, outputLine; bootEvent = new BootEvent(this,in.readLine()); System.out....
else throw new IllegalArgumentException();
public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) vsb = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) hsb = (JScrollBar) component; else if (key == ROW_HEADER) r...
Component newComponent) { return null;
Component newComponent) { if (oldComponent != null && oldComponent != newComponent) oldComponent.getParent().remove(oldComponent); return newComponent;
protected Component addSingletonComponent(Component oldComponent, Component newComponent) { return null; }
if (policy != HORIZONTAL_SCROLLBAR_AS_NEEDED && policy != HORIZONTAL_SCROLLBAR_NEVER && policy != HORIZONTAL_SCROLLBAR_ALWAYS) throw new IllegalArgumentException("Illegal Scrollbar Policy");
public void setHorizontalScrollBarPolicy(int policy) { hsbPolicy = policy; }
if (policy != VERTICAL_SCROLLBAR_AS_NEEDED && policy != VERTICAL_SCROLLBAR_NEVER && policy != VERTICAL_SCROLLBAR_ALWAYS) throw new IllegalArgumentException("Illegal Scrollbar Policy");
public void setVerticalScrollBarPolicy(int policy) { vsbPolicy = policy; }
if (name.indexOf("*") != -1) { if ((!name.endsWith(".*") && !name.equals("*")) || name.indexOf("*") != name.lastIndexOf("*")) throw new IllegalArgumentException("Bad wildcard: " + name); } if ("".equals(name)) throw new IllegalArgumentException("Empty name");
if ("".equals(name)) throw new IllegalArgumentException("Empty name");
public BasicPermission(String name) { super(name); if (name.indexOf("*") != -1) { if ((!name.endsWith(".*") && !name.equals("*")) || name.indexOf("*") != name.lastIndexOf("*")) throw new IllegalArgumentException("Bad wildcard: " + name); } ...
this.helper = new X86CompilerHelper(os, vstack.createStackMgr(pool),
this.ifac = ItemFactory.getFactory(); this.helper = new X86CompilerHelper(os, vstack.createStackMgr(pool, ifac),
public X86BytecodeVisitor(NativeStream outputStream, CompiledMethod cm, boolean isBootstrap, X86CompilerContext context) { this.os = (AbstractX86Stream) outputStream; this.context = context; this.vstack = new VirtualStack(os); final X86RegisterPool pool = new X86RegisterPool()...
this.eContext = new EmitterContext(os, helper, vstack, pool);
this.eContext = new EmitterContext(os, helper, vstack, pool, ifac);
public X86BytecodeVisitor(NativeStream outputStream, CompiledMethod cm, boolean isBootstrap, X86CompilerContext context) { this.os = (AbstractX86Stream) outputStream; this.context = context; this.vstack = new VirtualStack(os); final X86RegisterPool pool = new X86RegisterPool()...
inlinedMethod.pushExitStack(vstack);
inlinedMethod.pushExitStack(ifac, vstack);
public void endInlinedMethod(VmMethod previousMethod) { helper.setMethod(previousMethod); os.setObjectRef(inlinedMethod.getEndOfInlineLabel()); this.currentMethod = previousMethod; inlinedMethod.pushExitStack(vstack); this.inlinedMethod = null; if (debug) { BootL...
inlinedMethod.pushOuterMethodStack(vstack);
inlinedMethod.pushOuterMethodStack(ifac, vstack);
public void startBasicBlock(BasicBlock bb) { if (log) { os.log("Start of basic block " + bb); } if (debug) { BootLog.debug("-- Start of BB " + bb); } startOfBB = true; this.vstack.reset(); eContext.getPool().reset(os); // Push the result ...
vstack.pushAll(tstack);
vstack.pushAll(ifac, tstack);
public void startBasicBlock(BasicBlock bb) { if (log) { os.log("Start of basic block " + bb); } if (debug) { BootLog.debug("-- Start of BB " + bb); } startOfBB = true; this.vstack.reset(); eContext.getPool().reset(os); // Push the result ...
vstack.push(RefItem.createConst(null));
vstack.push(ifac.createAConst(null));
public final void visit_aconst_null() { vstack.push(RefItem.createConst(null)); }
vstack.push(RefItem.createLocal(stackFrame.getEbpOffset(index)));
vstack.push(ifac.createLocal(JvmType.REFERENCE, stackFrame.getEbpOffset(index)));
public final void visit_aload(int index) { vstack.push(RefItem.createLocal(stackFrame.getEbpOffset(index))); }
vstack.push(eContext);
public final void visit_anewarray(VmConstClass classRef) { // Claim EAX, we're going to use it later L1AHelper.requestRegister(eContext, EAX); // Request tmp register final Register classr = L1AHelper.requestRegister(eContext, JvmType.INT, false); // Pop fina...
final Item result = DoubleItem.createFPUStack();
final Item result = ifac.createFPUStack(JvmType.DOUBLE);
public final void visit_daload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register refr = ref.getRegister(); checkBounds(ref, idx); FPUHelper.ensureStackCapacity(o...
vstack.push(DoubleItem.createConst(value));
vstack.push(ifac.createDConst(value));
public final void visit_dconst(double value) { vstack.push(DoubleItem.createConst(value)); }
vstack.push(DoubleItem.createLocal(stackFrame.getWideEbpOffset(index)));
vstack.push(ifac.createLocal(JvmType.DOUBLE, stackFrame.getWideEbpOffset(index)));
public final void visit_dload(int index) { vstack.push(DoubleItem.createLocal(stackFrame.getWideEbpOffset(index))); }
vstack.push(FloatItem.createConst(value));
vstack.push(ifac.createFConst(value));
public final void visit_fconst(float value) { vstack.push(FloatItem.createConst(value)); }
vstack.push(FloatItem.createLocal(stackFrame.getEbpOffset(index)));
vstack.push(ifac.createLocal(JvmType.FLOAT, stackFrame.getEbpOffset(index)));
public final void visit_fload(int index) { vstack.push(FloatItem.createLocal(stackFrame.getEbpOffset(index))); }
result = FloatItem.createFPUStack();
result = ifac.createFPUStack(JvmType.FLOAT);
public final void visit_getfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); ...
result = DoubleItem.createFPUStack();
result = ifac.createFPUStack(JvmType.DOUBLE);
public final void visit_getfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); ...
final Item result = FPUHelper.createFPUStack(type);
final Item result = ifac.createFPUStack(type);
public final void visit_getstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDeclaringClass().is...
vstack.push(IntItem.createConst((byte) v.getValue()));
vstack.push(ifac.createIConst((byte) v.getValue()));
public final void visit_i2b() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(IntItem.createConst((byte) v.getValue())); } else { v.loadToBITS8GPR(eContext); final Register r = v.getRegister(); os.writeMOVSX(r, r, BYTESIZE); ...
vstack.push(IntItem.createConst((char) v.getValue()));
vstack.push(ifac.createIConst((char) v.getValue()));
public final void visit_i2c() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(IntItem.createConst((char) v.getValue())); } else { v.load(eContext); final Register r = v.getRegister(); os.writeMOVZX(r, r, WORDSIZE); vs...
vstack.push(LongItem.createConst(v.getValue()));
vstack.push(ifac.createLConst(v.getValue()));
public final void visit_i2l() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(LongItem.createConst(v.getValue())); } else { final X86RegisterPool pool = eContext.getPool(); L1AHelper.requestRegister(eContext, EAX); L1AHelper.req...
final LongItem result = LongItem.createReg(EAX, EDX);
final LongItem result = (LongItem)ifac.createReg(JvmType.LONG, EAX, EDX);
public final void visit_i2l() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(LongItem.createConst(v.getValue())); } else { final X86RegisterPool pool = eContext.getPool(); L1AHelper.requestRegister(eContext, EAX); L1AHelper.req...
vstack.push(IntItem.createConst((short) v.getValue()));
vstack.push(ifac.createIConst((short) v.getValue()));
public final void visit_i2s() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(IntItem.createConst((short) v.getValue())); } else { v.load(eContext); final Register r = v.getRegister(); os.writeMOVSX(r, r, WORDSIZE); v...
vstack.push(IntItem.createConst(value));
vstack.push(ifac.createIConst(value));
public final void visit_iconst(int value) { vstack.push(IntItem.createConst(value)); }
vstack.push(IntItem.createLocal(stackFrame.getEbpOffset(index)));
vstack.push(ifac.createLocal(JvmType.INT, stackFrame.getEbpOffset(index)));
public final void visit_iload(int index) { vstack.push(IntItem.createLocal(stackFrame.getEbpOffset(index))); }
vstack.push(IntItem.createConst(-val.getValue()));
vstack.push(ifac.createIConst(-val.getValue()));
public final void visit_ineg() { final IntItem val = vstack.popInt(); val.loadIf(eContext, ~Item.Kind.CONSTANT); if (val.isConstant()) { vstack.push(IntItem.createConst(-val.getValue())); } else { os.writeNEG(val.getRegister()); vstack.push(val); }...
final IntItem result = IntItem.createReg(refr);
final IntItem result = (IntItem)ifac.createReg(JvmType.INT, refr);
public final void visit_instanceof(VmConstClass classRef) { // Prepare final X86RegisterPool pool = eContext.getPool(); // Pre-claim ECX L1AHelper.requestRegister(eContext, ECX); // Load reference final RefItem ref = vstack.popRef(); ref.load(eContext); final ...
final IntItem result = IntItem.createReg(EDX);
final IntItem result = (IntItem)ifac.createReg(JvmType.INT, EDX);
public final void visit_irem() { // Pre-claim result in EDX L1AHelper.requestRegister(eContext, EDX); final IntItem result = IntItem.createReg(EDX); eContext.getPool().transferOwnerTo(EDX, result); final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); ...
vstack.push(IntItem.createConst((int) v.getValue()));
vstack.push(ifac.createIConst((int) v.getValue()));
public final void visit_l2i() { final LongItem v = vstack.popLong(); if (v.isConstant()) { vstack.push(IntItem.createConst((int) v.getValue())); } else { final X86RegisterPool pool = eContext.getPool(); v.load(eContext); final Register lsb = v.getLsbR...
final IntItem result = IntItem.createReg(lsb);
final IntItem result = (IntItem)ifac.createReg(JvmType.INT, lsb);
public final void visit_l2i() { final LongItem v = vstack.popLong(); if (v.isConstant()) { vstack.push(IntItem.createConst((int) v.getValue())); } else { final X86RegisterPool pool = eContext.getPool(); v.load(eContext); final Register lsb = v.getLsbR...
vstack.push(LongItem.createConst(v));
vstack.push(ifac.createLConst(v));
public final void visit_lconst(long v) { vstack.push(LongItem.createConst(v)); }
vstack.push(LongItem.createLocal(stackFrame.getWideEbpOffset(index)));
vstack.push(ifac.createLocal(JvmType.LONG, stackFrame.getWideEbpOffset(index)));
public final void visit_lload(int index) { vstack.push(LongItem.createLocal(stackFrame.getWideEbpOffset(index))); }
vstack.push(LongItem.createConst(-v.getValue()));
vstack.push(ifac.createLConst(-v.getValue()));
public final void visit_lneg() { final LongItem v = vstack.popLong(); if (v.isConstant()) { vstack.push(LongItem.createConst(-v.getValue())); } else { // Load val v.load(eContext); final Register lsb = v.getLsbRegister(); final Register msb...
final LongItem result = LongItem.createReg(lsb, msb);
final LongItem result = (LongItem)ifac.createReg(JvmType.LONG, lsb, msb);
public final void visit_lshr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong(); final X86RegisterPool pool = eContext.getPool(); // Get cnt into ECX if (!cnt.uses(ECX)) { val.spillIfUsing(eContext, ECX); L1AHelper.requestRegister(...
final LongItem result = LongItem.createReg(lsb, msb);
final LongItem result = (LongItem)ifac.createReg(JvmType.LONG, lsb, msb);
public final void visit_lushr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong(); final X86RegisterPool pool = eContext.getPool(); // Get cnt into ECX if (!cnt.uses(ECX)) { val.spillIfUsing(eContext, ECX); L1AHelper.requestRegister...
final int ofs = arrayDataOffset + (i * slotSize);
final int ofs = arrayDataOffset + (i * 4);
public final void visit_multianewarray(VmConstClass clazz, int dimensions) { // flush all vstack items to the stack // all registers are freed vstack.push(eContext); // Create the dimensions array os.writePUSH(10); /* type=int */ os.writePUSH(dimensions); /* elements */ ...
result = FloatItem.createFPUStack();
result = (WordItem)ifac.createFPUStack(JvmType.FLOAT);
private final void waload(int jvmType) { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); final int valSize; final int scale; final int resultType; final boolean isfloat = (jvmType == JvmType.FLOAT); switch (jvmType) { case JvmType.BYT...
public BasicBlock(int startPC) { this(startPC, -1, false);
public BasicBlock(int startPC, int endPC, boolean startOfExceptionHandler) { this.startPC = startPC; this.endPC = endPC; this.startOfExceptionHandler = startOfExceptionHandler;
public BasicBlock(int startPC) { this(startPC, -1, false); }
throw new Error("not implemented");
if (solids.size() == 0) return new Rectangle2D.Double(0.0, 0.0, 0.0, 0.0); double xmin; double xmax; double ymin; double ymax; xmin = xmax = ((Segment) solids.elementAt(0)).P1.getX(); ymin = ymax = ((Segment) solids.elementAt(0)).P1.getY(); for (int path = 0; path < solids.size(); path++) { Rectangle2D r = ((Segment)...
public Rectangle2D getBounds2D() { // XXX Implement. throw new Error("not implemented"); }
return (new Rectangle2D.Double(xmin, ymin, (xmax - xmin), (ymax - ymin))); }
public Rectangle2D getBounds2D() { // XXX Implement. throw new Error("not implemented"); }
functions = new JList(lm); functions.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent lse) { if (!lse.getValueIsAdjusting()) { setKeyDescription(functions.getSelectedIndex()); } } }); loadList(LangTool.getString("key.labelKeys")); functions.setSelectionMode(ListSe...
void jbInit() throws Exception { // create some reusable borders and layouts BorderLayout borderLayout = new BorderLayout(); mapper = new KeyMapper(); mapper.init(); functions = new JList(lm); // add list selection listener to our functions list so that we // can display the mapp...
keyPanel.add(fp,BorderLayout.WEST); keyPanel.add(dp,BorderLayout.CENTER);
keyPanel.add(createFunctionsPanel(),BorderLayout.WEST); keyPanel.add(createMappingPanel(),BorderLayout.CENTER);
void jbInit() throws Exception { // create some reusable borders and layouts BorderLayout borderLayout = new BorderLayout(); mapper = new KeyMapper(); mapper.init(); functions = new JList(lm); // add list selection listener to our functions list so that we // can display the mapp...
final KeyGetter kg = new KeyGetter();
final KeyGetterInterface kg = getMeAKeyProcessor();
private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetter kg = new KeyGetter(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (String)functions.g...
kg.setDialog(dialog);
private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetter kg = new KeyGetter(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (String)functions.g...
mapper.removeKeyStroke(mnemonicData[index]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index]));
String function = mnemonicData[index]; if (altKey) function += KeyStroker.altSuffix; mapper.removeKeyStroke(function); setKeyInformation(function);
private void removeIt() { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); mapper.removeKeyStroke(mnemonicData[index]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index])); } else { ...
strokeDesc.setText(mapper.getKeyStrokeDesc( name));
setKeyInformation(name);
private void removeIt() { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); mapper.removeKeyStroke(mnemonicData[index]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index])); } else { ...
strokeDesc.setText(mapper.getKeyStrokeDesc( (String)functions.getSelectedValue()));
setKeyInformation(k);
private void removeIt() { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); mapper.removeKeyStroke(mnemonicData[index]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index])); } else { ...
strokeDesc.setText(mapper.getKeyStrokeDesc(mnemonicData[kd.getIndex()])); strokeDescAlt.setText(mapper.getKeyStrokeDesc(mnemonicData[kd.getIndex()] + ".alt2"));
setKeyInformation(mnemonicData[kd.getIndex()]);
private void setKeyDescription(int index) { // This try and catch is to fix a problem in JDK1.4-betas try { if (!macros && !special) { KeyDescription kd = (KeyDescription)lm.getElementAt(index); strokeDesc.setText(mapper.getKeyStrokeDesc(mnemonicData[kd.getIndex()])); ...
strokeDesc.setText(mapper.getKeyStrokeDesc((String)o)); strokeDescAlt.setText(mapper.getKeyStrokeDesc((String)o + ".alt2"));
setKeyInformation((String)o);
private void setKeyDescription(int index) { // This try and catch is to fix a problem in JDK1.4-betas try { if (!macros && !special) { KeyDescription kd = (KeyDescription)lm.getElementAt(index); strokeDesc.setText(mapper.getKeyStrokeDesc(mnemonicData[kd.getIndex()])); ...
strokeDesc.setText(mapper.getKeyStrokeDesc(m.getFullName())); strokeDescAlt.setText(mapper.getKeyStrokeDesc(m.getFullName() + ".alt2"));
setKeyInformation(m.getFullName());
private void setKeyDescription(int index) { // This try and catch is to fix a problem in JDK1.4-betas try { if (!macros && !special) { KeyDescription kd = (KeyDescription)lm.getElementAt(index); strokeDesc.setText(mapper.getKeyStrokeDesc(mnemonicData[kd.getIndex()])); ...
strokeDesc.setText(mapper.getKeyStrokeDesc(k));
setKeyInformation(k);
private void setKeyDescription(int index) { // This try and catch is to fix a problem in JDK1.4-betas try { if (!macros && !special) { KeyDescription kd = (KeyDescription)lm.getElementAt(index); strokeDesc.setText(mapper.getKeyStrokeDesc(mnemonicData[kd.getIndex()])); ...
stroke += ".alt2";
stroke += KeyStroker.altSuffix;
private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); String stroke = mnemonicData[index]; if (altKey) stroke += ".alt2"; if (isLinux) { mapper.setKeyStroke(stroke,ke,is...
if (altKey) strokeDescAlt.setText(mapper.getKeyStrokeDesc( stroke)); else strokeDesc.setText(mapper.getKeyStrokeDesc( stroke));
setKeyInformation(stroke);
private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); String stroke = mnemonicData[index]; if (altKey) stroke += ".alt2"; if (isLinux) { mapper.setKeyStroke(stroke,ke,is...