bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | 8,869 |
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();... | 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();... | 8,870 |
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); } | 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); } | 8,871 |
private static int loadLib(String filename) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkRead(filename); return VMRuntime.nativeLoad(filename); } | private static int loadLib(String filename, ClassLoader loader) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkRead(filename); return VMRuntime.nativeLoad(filename); } | 8,872 |
private static int loadLib(String filename) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkRead(filename); return VMRuntime.nativeLoad(filename); } | private static int loadLib(String filename) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkRead(filename); return VMRuntime.nativeLoad(filename); } | 8,873 |
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 (... | 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 (... | 8,874 |
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);... | 8,875 |
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); ... | 8,876 |
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); ... | 8,877 |
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);... | 8,878 |
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); ... | 8,879 |
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); int... | 8,880 |
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); i... | 8,881 |
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); ... | 8,882 |
public void reset() { userData.setEnabled(false); userData.setText(""); //select.setSelected(false); all.setSelected(true); } | publicvoidreset(){userData.setEnabled(false);userData.setText("");//select.setSelected(false);all.setSelected(true);} | 8,883 |
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... | 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... | 8,886 |
private void getNewSessionOptions() { try { BufferedReader in = new BufferedReader( new InputStreamReader( socket.getInputStream())); String inputLine, outputLine; bootEvent = new BootEvent(this,in.readLine()); System.out.... | private void getNewSessionOptions() { try { BufferedReader in = new BufferedReader( new InputStreamReader( socket.getInputStream())); bootEvent = new BootEvent(this,in.readLine()); System.out.println(bootEvent.getNewSessio... | 8,888 |
protected Component addSingletonComponent(Component oldComponent, Component newComponent) { return null; } | protected Component addSingletonComponent(Component oldComponent, Component newComponent) { return null; } | 8,890 |
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point vie... | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point vie... | 8,891 |
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point vie... | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point vie... | 8,892 |
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point vie... | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point vie... | 8,893 |
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point vie... | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point vie... | 8,894 |
public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime... | public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime... | 8,895 |
public JApplet() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // Will do set/create. initStageDone = true; // Init stage is now over. } | public JApplet() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // Will do set/create. initStageDone = true; // Init stage is now over. } | 8,898 |
public JApplet() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // Will do set/create. initStageDone = true; // Init stage is now over. } | public JApplet() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // Will do set/create. initStageDone = true; // Init stage is now over. } | 8,899 |
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ... | protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ... | 8,900 |
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ... | protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ... | 8,901 |
public Component getGlassPane() { return getRootPane().getGlassPane(); } | public Component getGlassPane() { return getRootPane().getGlassPane(); } | 8,902 |
public JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; } | public JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; } | 8,903 |
protected boolean isRootPaneCheckingEnabled() { return rootPaneCheckingEnabled; } | protected boolean isRootPaneCheckingEnabled() { return rootPaneCheckingEnabled; } | 8,904 |
protected String paramString() { return "JFrame"; } | protected String paramString() { return "JFrame"; } | 8,905 |
protected void processKeyEvent(KeyEvent e) { super.processKeyEvent(e); } | protected void processKeyEvent(KeyEvent e) { super.processKeyEvent(e); } | 8,906 |
public void remove(Component comp) { // If we're removing the root pane, use super.remove. Otherwise // pass it on to the content pane instead if (comp == rootPane) super.remove(rootPane); else getContentPane().remove(comp); } | public void remove(Component comp) { // If we're removing the root pane, use super.remove. Otherwise // pass it on to the content pane instead if (comp == rootPane) super.remove(rootPane); else getContentPane().remove(comp); } | 8,907 |
public void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } | public void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } | 8,908 |
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayo... | public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou... | 8,909 |
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayo... | public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayo... | 8,910 |
protected void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | protected void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | 8,911 |
protected void setRootPaneCheckingEnabled(boolean enabled) { rootPaneCheckingEnabled = enabled; } | protected void setRootPaneCheckingEnabled(boolean enabled) { rootPaneCheckingEnabled = enabled; } | 8,912 |
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); } ... | 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); } ... | 8,913 |
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); } ... | 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); } ... | 8,914 |
public boolean equals(Object obj) { return getClass().isInstance(obj) && getName().equals(((BasicPermission) obj).getName()); } | public boolean equals(Object obj) { return getClass().isInstance(obj) && getName().equals(((BasicPermission) obj).getName()); } | 8,915 |
public String getActions() { return ""; } | public String getActions() { return ""; } | 8,916 |
public int hashCode() { return getName().hashCode(); } | public int hashCode() { return getName().hashCode(); } | 8,917 |
public boolean implies(Permission perm) { if (!getClass().isInstance(perm)) return false; String otherName = perm.getName(); String name = getName(); if (name.equals(otherName)) return true; int last = name.length() - 1; return name.charAt(last) == '*' && oth... | public boolean implies(Permission perm) { if (!getClass().isInstance(perm)) return false; String otherName = perm.getName(); String name = getName(); if (name.equals(otherName)) return true; int last = name.length() - 1; return name.charAt(last) == '*' && oth... | 8,918 |
public boolean implies(Permission perm) { if (!getClass().isInstance(perm)) return false; String otherName = perm.getName(); String name = getName(); if (name.equals(otherName)) return true; int last = name.length() - 1; return name.charAt(last) == '*' && oth... | public boolean implies(Permission perm) { if (!getClass().isInstance(perm)) return false; String otherName = perm.getName(); String name = getName(); if (name.equals(otherName)) return true; int last = name.length() - 1; return name.charAt(last) == '*' && oth... | 8,919 |
public PermissionCollection newPermissionCollection() { return new BasicPermissionCollection(getClass()); } | public PermissionCollection newPermissionCollection() { return new BasicPermissionCollection(getClass()); } | 8,920 |
BasicPermissionCollection(Class c) { permClass = c; } | BasicPermissionCollection(Class c) { permClass = c; } | 8,921 |
public void add(Permission perm) { if (isReadOnly()) throw new SecurityException("readonly"); if (!permClass.isInstance(perm)) throw new IllegalArgumentException("Expecting instance of " + permClass); BasicPermission bp = (BasicPermission) perm; Stri... | public void add(Permission perm) { if (isReadOnly()) throw new SecurityException("readonly"); if (!permClass.isInstance(perm)) throw new IllegalArgumentException("Expecting instance of " + permClass); BasicPermission bp = (BasicPermission) perm; Stri... | 8,922 |
public void add(Permission perm) { if (isReadOnly()) throw new SecurityException("readonly"); if (!permClass.isInstance(perm)) throw new IllegalArgumentException("Expecting instance of " + permClass); BasicPermission bp = (BasicPermission) perm; Stri... | public void add(Permission perm) { if (isReadOnly()) throw new SecurityException("readonly"); if (!permClass.isInstance(perm)) throw new IllegalArgumentException("Expecting instance of " + permClass); BasicPermission bp = (BasicPermission) perm; Stri... | 8,923 |
public Enumeration elements() { return permissions.elements(); } | public Enumeration elements() { return permissions.elements(); } | 8,924 |
public boolean implies(Permission permission) { if (!permClass.isInstance(permission)) return false; if (all_allowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength =... | public boolean implies(Permission permission) { if (!permClass.isInstance(permission)) return false; if (all_allowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength =... | 8,925 |
public boolean implies(Permission permission) { if (!permClass.isInstance(permission)) return false; if (all_allowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength =... | public boolean implies(Permission permission) { if (!permClass.isInstance(permission)) return false; if (all_allowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength =... | 8,926 |
public boolean implies(Permission permission) { if (!permClass.isInstance(permission)) return false; if (all_allowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength =... | public boolean implies(Permission permission) { if (!permClass.isInstance(permission)) return false; if (all_allowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength =... | 8,927 |
public boolean implies(Permission permission) { if (!permClass.isInstance(permission)) return false; if (all_allowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength =... | public boolean implies(Permission permission) { if (!permClass.isInstance(permission)) return false; if (all_allowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength =... | 8,928 |
public boolean implies(Permission permission) { if (!permClass.isInstance(permission)) return false; if (all_allowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength =... | public boolean implies(Permission permission) { if (!permClass.isInstance(permission)) return false; if (all_allowed) return true; BasicPermission toImply = (BasicPermission) permission; String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength =... | 8,929 |
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()... | 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()... | 8,930 |
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()... | 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()... | 8,931 |
public void endInlinedMethod(VmMethod previousMethod) { helper.setMethod(previousMethod); os.setObjectRef(inlinedMethod.getEndOfInlineLabel()); this.currentMethod = previousMethod; inlinedMethod.pushExitStack(vstack); this.inlinedMethod = null; if (debug) { BootL... | public void endInlinedMethod(VmMethod previousMethod) { helper.setMethod(previousMethod); os.setObjectRef(inlinedMethod.getEndOfInlineLabel()); this.currentMethod = previousMethod; inlinedMethod.pushExitStack(ifac, vstack); this.inlinedMethod = null; if (debug) { ... | 8,933 |
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 ... | 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 ... | 8,934 |
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 ... | 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 ... | 8,935 |
public final void visit_aconst_null() { vstack.push(RefItem.createConst(null)); } | public final void visit_aconst_null() { vstack.push(ifac.createAConst(null)); } | 8,936 |
public final void visit_aload(int index) { vstack.push(RefItem.createLocal(stackFrame.getEbpOffset(index))); } | public final void visit_aload(int index) { vstack.push(ifac.createLocal(JvmType.REFERENCE, stackFrame.getEbpOffset(index))); } | 8,937 |
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... | 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... | 8,939 |
public final void visit_dconst(double value) { vstack.push(DoubleItem.createConst(value)); } | public final void visit_dconst(double value) { vstack.push(ifac.createDConst(value)); } | 8,940 |
public final void visit_dload(int index) { vstack.push(DoubleItem.createLocal(stackFrame.getWideEbpOffset(index))); } | public final void visit_dload(int index) { vstack.push(ifac.createLocal(JvmType.DOUBLE, stackFrame.getWideEbpOffset(index))); } | 8,941 |
public final void visit_fconst(float value) { vstack.push(FloatItem.createConst(value)); } | public final void visit_fconst(float value) { vstack.push(ifac.createFConst(value)); } | 8,942 |
public final void visit_fload(int index) { vstack.push(FloatItem.createLocal(stackFrame.getEbpOffset(index))); } | public final void visit_fload(int index) { vstack.push(ifac.createLocal(JvmType.FLOAT, stackFrame.getEbpOffset(index))); } | 8,943 |
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()); ... | 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()); ... | 8,944 |
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()); ... | 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()); ... | 8,945 |
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... | 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... | 8,946 |
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); ... | public final void visit_i2b() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(ifac.createIConst((byte) v.getValue())); } else { v.loadToBITS8GPR(eContext); final Register r = v.getRegister(); os.writeMOVSX(r, r, BYTESIZE); ... | 8,947 |
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... | public final void visit_i2c() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(ifac.createIConst((char) v.getValue())); } else { v.load(eContext); final Register r = v.getRegister(); os.writeMOVZX(r, r, WORDSIZE); vsta... | 8,948 |
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... | public final void visit_i2l() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(ifac.createLConst(v.getValue())); } else { final X86RegisterPool pool = eContext.getPool(); L1AHelper.requestRegister(eContext, EAX); L1AHelper.reques... | 8,949 |
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... | 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... | 8,950 |
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... | public final void visit_i2s() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(ifac.createIConst((short) v.getValue())); } else { v.load(eContext); final Register r = v.getRegister(); os.writeMOVSX(r, r, WORDSIZE); vst... | 8,951 |
public final void visit_iconst(int value) { vstack.push(IntItem.createConst(value)); } | public final void visit_iconst(int value) { vstack.push(ifac.createIConst(value)); } | 8,952 |
public final void visit_iload(int index) { vstack.push(IntItem.createLocal(stackFrame.getEbpOffset(index))); } | public final void visit_iload(int index) { vstack.push(ifac.createLocal(JvmType.INT, stackFrame.getEbpOffset(index))); } | 8,953 |
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); }... | public final void visit_ineg() { final IntItem val = vstack.popInt(); val.loadIf(eContext, ~Item.Kind.CONSTANT); if (val.isConstant()) { vstack.push(ifac.createIConst(-val.getValue())); } else { os.writeNEG(val.getRegister()); vstack.push(val); } ... | 8,954 |
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 ... | 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 ... | 8,955 |
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(); ... | public final void visit_irem() { // Pre-claim result in EDX L1AHelper.requestRegister(eContext, EDX); final IntItem result = (IntItem)ifac.createReg(JvmType.INT, EDX); eContext.getPool().transferOwnerTo(EDX, result); final IntItem v2 = vstack.popInt(); final IntItem v1 = vs... | 8,956 |
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... | public final void visit_l2i() { final LongItem v = vstack.popLong(); if (v.isConstant()) { vstack.push(ifac.createIConst((int) v.getValue())); } else { final X86RegisterPool pool = eContext.getPool(); v.load(eContext); final Register lsb = v.getLsbReg... | 8,957 |
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... | 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... | 8,958 |
public final void visit_lconst(long v) { vstack.push(LongItem.createConst(v)); } | public final void visit_lconst(long v) { vstack.push(ifac.createLConst(v)); } | 8,959 |
public final void visit_lload(int index) { vstack.push(LongItem.createLocal(stackFrame.getWideEbpOffset(index))); } | public final void visit_lload(int index) { vstack.push(ifac.createLocal(JvmType.LONG, stackFrame.getWideEbpOffset(index))); } | 8,960 |
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... | public final void visit_lneg() { final LongItem v = vstack.popLong(); if (v.isConstant()) { vstack.push(ifac.createLConst(-v.getValue())); } else { // Load val v.load(eContext); final Register lsb = v.getLsbRegister(); final Register msb = ... | 8,961 |
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(... | 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(... | 8,962 |
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... | 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... | 8,963 |
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 */ ... | 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 */ ... | 8,964 |
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... | 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... | 8,965 |
public BasicBlock(int startPC) { this(startPC, -1, false); } | public BasicBlock(int startPC) { this(startPC, -1, false); } | 8,966 |
public Rectangle2D getBounds2D() { // XXX Implement. throw new Error("not implemented"); } | public Rectangle2D getBounds2D() { // XXX Implement. 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 = ... | 8,967 |
public KeyConfigure(Frame parent, String[] macros, CodePage cp) { super(parent); codePage = cp; macrosList = macros; if (OperatingSystem.isUnix() && !OperatingSystem.isMacOS()) {// if (System.getProperty("os.name").toLowerCase().indexOf("linux") != -1) {// System.out.println("using o... | public KeyConfigure(Frame parent, String[] macros, CodePage cp) {super(parent);codePage = cp;macrosList = macros;if (OperatingSystem.isUnix() && !OperatingSystem.isMacOS()) {//if (System.getProperty("os.name").toLowerCase().indexOf("linux") != -1) {// System.out.println("using os " + os); isLinux = true;}try { jbInit(... | 8,969 |
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... | 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... | 8,970 |
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... | 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... | 8,971 |
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... | void jbInit() throws Exception {// create some reusable borders and layoutsBorderLayout 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 mapped key(s) to the function when a new// functio... | 8,972 |
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... | private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetterInterface kg = getMeAKeyProcessor(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (Stri... | 8,973 |
private void removeIt() { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); mapper.removeKeyStroke(mnemonicData[index]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index])); } else { ... | private void removeIt() { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); mapper.removeKeyStroke(mnemonicData[index]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index])); } else { ... | 8,975 |
private void removeIt() { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); mapper.removeKeyStroke(mnemonicData[index]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index])); } else { ... | private void removeIt() { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); mapper.removeKeyStroke(mnemonicData[index]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index])); } else { ... | 8,976 |
private void removeIt() { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); mapper.removeKeyStroke(mnemonicData[index]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index])); } else { ... | private void removeIt() { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); mapper.removeKeyStroke(mnemonicData[index]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index])); } else { ... | 8,977 |
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()])); ... | 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()])); ... | 8,978 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.