rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
} if (content instanceof DomToplevelNode || block.getStyle().requiresLayer()) { c.pushLayer(block); | private static Box layout(LayoutContext c, Box block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } boolean oldFirstLine ... | |
if (block.getStyle().isAutoHeight()) { int delta = c.getBlockFormattingContext().getFloatManager().getClearDelta( c, (int) margin.top() + (int) border.top() + (int) padding.top() + block.height); if (delta > 0) { block.height += delta ; } } | private static Box layout(LayoutContext c, Box block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } boolean oldFirstLine ... | |
return ((InlineBox)child).findTrailingText(); | result = ((InlineBox)child).findTrailingText(); if (result != null && result.isEmpty()) { continue; } return result; | public InlineText findTrailingText() { if (getInlineChildCount() == 0) { return null; } InlineText result = null; for (int offset = getInlineChildCount() - 1; offset >= 0; offset--) { Object child = getInlineChild(offset); if (child instan... |
doc = XMLResource.load(marker.getClass().getResourceAsStream(short_url)).getDocument(); | panel.setDocument(ref.toExternalForm()); | public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... |
doc = XMLResource.load(new URL(url_text)).getDocument(); | panel.setDocument(url_text); } else { | public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... |
} else { doc = XMLResource.load(new URL(url_text)).getDocument(); ref = new File(url_text).toURL(); | panel.setDocument(ref.toExternalForm()); | public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... |
panel.setDocument(doc, ref.toString()); | public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... | |
client.connect(); | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | |
public void addNotify() { | addNotify() { | public void addNotify() { if (peer == null) peer = getToolkit().createFileDialog(this); super.addNotify(); } |
public FilenameFilter getFilenameFilter() { return (filter); } | getFilenameFilter() { return(filter); } | public FilenameFilter getFilenameFilter() { return (filter); } |
public int getMode() { return (mode); } | getMode() { return(mode); } | public int getMode() { return (mode); } |
protected String paramString() { return ("dir=" + dir + ",file=" + file + ",mode=" + mode + "," + super.paramString()); } | paramString() { return ("dir=" + dir + ",file=" + file + ",mode=" + mode + "," + super.paramString()); } | protected String paramString() { return ("dir=" + dir + ",file=" + file + ",mode=" + mode + "," + super.paramString()); } |
public synchronized void setDirectory(String dir) { | setDirectory(String dir) { | public synchronized void setDirectory(String dir) { this.dir = dir; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setDirectory(dir); } } |
f.setDirectory(dir); } | f.setDirectory (dir); | public synchronized void setDirectory(String dir) { this.dir = dir; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setDirectory(dir); } } |
} | public synchronized void setDirectory(String dir) { this.dir = dir; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setDirectory(dir); } } | |
public synchronized void setFile(String file) { | setFile(String file) { | public synchronized void setFile(String file) { this.file = file; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFile(file); } } |
f.setFile(file); } | f.setFile (file); | public synchronized void setFile(String file) { this.file = file; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFile(file); } } |
} | public synchronized void setFile(String file) { this.file = file; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFile(file); } } | |
public synchronized void setFilenameFilter(FilenameFilter filter) { | setFilenameFilter(FilenameFilter filter) { | public synchronized void setFilenameFilter(FilenameFilter filter) { this.filter = filter; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFilenameFilter(filter); } } |
f.setFilenameFilter(filter); } | f.setFilenameFilter (filter); | public synchronized void setFilenameFilter(FilenameFilter filter) { this.filter = filter; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFilenameFilter(filter); } } |
} | public synchronized void setFilenameFilter(FilenameFilter filter) { this.filter = filter; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFilenameFilter(filter); } } | |
public void setMode(int mode) { | setMode(int mode) { | public void setMode(int mode) { if ((mode != LOAD) && (mode != SAVE)) throw new IllegalArgumentException("Bad mode: " + mode); this.mode = mode; } |
ResultLayout(Point labelPosition, float lineWidth, int color) | ResultLayout(Point2D labelPosition, float lineWidth, int color) | ResultLayout(Point labelPosition, float lineWidth, int color) { if(labelPosition != null) this.labelPosition = new Point(labelPosition.x, labelPosition.y); this.lineWidth = lineWidth; this.color = color; } |
this.labelPosition = new Point(labelPosition.x, labelPosition.y); | this.labelPosition = labelPosition; | ResultLayout(Point labelPosition, float lineWidth, int color) { if(labelPosition != null) this.labelPosition = new Point(labelPosition.x, labelPosition.y); this.lineWidth = lineWidth; this.color = color; } |
inline.setStyle(new Style(c.getCurrentStyle(), max_width, c)); | inline.setStyle(new Style(c.getCurrentStyle(), max_width)); | private static InlineBox calculateInline(LayoutContext c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendi... |
LinkedList pushedOnFirstLine = null; | List pushedOnFirstLine = null; | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... |
prev_line.setStyle(new Style(c.getCurrentStyle(), 0, c)); | prev_line.setStyle(new Style(c.getCurrentStyle(), 0)); | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... |
LinkedList pendingPushStyles = null; | List pendingPushStyles = null; | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... |
pushedOnFirstLine = new LinkedList(); | pushedOnFirstLine = new ArrayList(); | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... |
pushedOnFirstLine.addLast(cascaded); | pushedOnFirstLine.add(cascaded); | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... |
pendingPushStyles = new LinkedList(); } pendingPushStyles.addLast((StylePush) o); | pendingPushStyles = new ArrayList(); } pendingPushStyles.add((StylePush) o); | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... |
pendingPushStyles.removeLast(); | pendingPushStyles.remove(pendingPushStyles.size()-1); | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... |
pushedOnFirstLine.removeLast(); | pushedOnFirstLine.remove(pushedOnFirstLine.size()-1); | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... |
pushedOnFirstLine.addLast(currentContent.getStyle()); | pushedOnFirstLine.add(currentContent.getStyle()); | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... |
curr_line.setStyle(new Style(c.getCurrentStyle(), 0, c)); | curr_line.setStyle(new Style(c.getCurrentStyle(), 0)); | private static LineBox newLine(Box box, Rectangle bounds, LineBox prev_line, LineMetrics blockLineMetrics, LayoutContext c) { LineBox curr_line = new LineBox(); c.pushStyle(CascadedStyle.emptyCascadedStyle); curr_line.setStyle(new Style(c.getCurrentStyle(), 0, c)); c.popStyle(); /... |
LayoutContext c, Box block, int minHeight, LinkedList pushedOnFirstLine) { | LayoutContext c, Box block, int minHeight, List pushedOnFirstLine) { | private static void saveLine(LineBox line_to_save, LineBox prev_line, Rectangle bounds, LayoutContext c, Box block, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first line for (int i = 0... |
{ Message mess = (Message)routable; | { org.jboss.messaging.core.Message m; if (routable.isReference()) { m = ((MessageReference)routable).getMessage(); } else { m = (org.jboss.messaging.core.Message)routable; } if (!(m instanceof Message)) { return false; } Message mess = (Message)m; | public synchronized boolean accept(Routable routable) { try { Message mess = (Message)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); ... |
throw new IllegalStateException(e); | throw new RuntimeException(e); | protected static void postDeliver(SessionDelegate sess, String receiverID, Message m, boolean isConnectionConsumer) { try { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!isConnectionConsum... |
throw new IllegalStateException(e); | throw new RuntimeException(e); | protected static void preDeliver(SessionDelegate sess, String receiverID, Message m, boolean isConnectionConsumer) { try { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!isConnectionConsume... |
this.executor = new QueuedExecutor(); | ServerConsumerEndpoint(int id, Channel messageQueue, String queueName, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal, JBossDestination dest) throws InvalidSelectorException { if (trace) { log.trace("constructing ... | |
class Runner implements Runnable { Callback cb; Runner(Callback cb) { this.cb = cb; } public void run() { try { callbackHandler.handleCallback(cb); } catch (HandleCallbackException e) { log.error("Failed to handle callback", e); } } } | public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | |
executor.execute(new Runner(callback)); | callbackHandler.handleCallback(callback); | public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... |
catch (InterruptedException e) | catch (HandleCallbackException e) | public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... |
log.error("Failed to handle callback", e); return null; | public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | |
protected Font createFont(RenderingContext ctx, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant) { | protected static Font createFont(RenderingContext ctx, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant) { | protected Font createFont(RenderingContext ctx, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant) { //Uu.p("creating font: " + root_font + " size = " + size + // " weight = " + weight + " style = " + style + " variant = " + variant); int font_const = Font.P... |
protected String getFontInstanceHashName(String name, float size, IdentValue weight, IdentValue style, IdentValue variant) { | protected static String getFontInstanceHashName(String name, float size, IdentValue weight, IdentValue style, IdentValue variant) { | protected String getFontInstanceHashName(String name, float size, IdentValue weight, IdentValue style, IdentValue variant) { return name + "-" + size + "-" + weight + "-" + style + "-" + variant; } |
SAXParser(boolean validating, boolean namespaceAware, boolean xIncludeAware) | public SAXParser() | SAXParser(boolean validating, boolean namespaceAware, boolean xIncludeAware) { this.validating = validating; this.namespaceAware = namespaceAware; this.xIncludeAware = xIncludeAware; } |
this.validating = validating; this.namespaceAware = namespaceAware; this.xIncludeAware = xIncludeAware; | SAXParser(boolean validating, boolean namespaceAware, boolean xIncludeAware) { this.validating = validating; this.namespaceAware = namespaceAware; this.xIncludeAware = xIncludeAware; } | |
if ((FEATURES + "external-general-entities").equals(name)) return externalEntities ? Boolean.TRUE : Boolean.FALSE; if ((FEATURES + "external-parameter-entities").equals(name)) return externalEntities ? Boolean.TRUE : Boolean.FALSE; | public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((FEATURES + "is-standalone").equals(name)) return xmlStandalone ? Boolean.TRUE : Boolean.FAL... | |
return reader.getAttributeType(index); | String ret = reader.getAttributeType(index); return ("ENUMERATION".equals(ret)) ? "NMTOKEN" : ret; | public String getType(int index) { return reader.getAttributeType(index); } |
return reader.getAttributeNamespace(index); | String ret = reader.getAttributeNamespace(index); return (ret == null) ? "" : ret; | public String getURI(int index) { return reader.getAttributeNamespace(index); } |
if (lexicalHandler != null) { String rootName = parser.doctype.rootName; String publicId = parser.doctype.publicId; String systemId2 = parser.doctype.systemId; | XMLParser.Doctype doctype = parser.doctype; if (lexicalHandler != null) { String rootName = doctype.rootName; String publicId = doctype.publicId; String systemId2 = doctype.systemId; | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... |
if (declHandler != null) { for (Iterator i = parser.doctype.elements.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name = (String) entry.getKey(); String model = (String) entry.getValue(); | for (Iterator i = doctype.entryIterator(); i.hasNext(); ) { String entry = (String) i.next(); char c = entry.charAt(0); String name = entry.substring(1); if ('E' == c) { if (declHandler != null) { String model = doctype.getElementModel(name); | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... |
for (Iterator i = parser.doctype.attlists.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String elementName = (String) entry.getKey(); Map attlist = (Map) entry.getValue(); for (Iterator j = attlist.entrySet().iterator(); | } else if ('A' == c) { if (declHandler != null) { for (Iterator j = doctype.attlistIterator(name); | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... |
String name = (String) att.getKey(); | String aname = (String) att.getKey(); | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... |
declHandler.attributeDecl(elementName, name, | declHandler.attributeDecl(name, aname, | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... |
} else if ('e' == c) { Object entity = doctype.getEntity(name); if (entity instanceof String) { if (declHandler != null) declHandler.internalEntityDecl(name, (String) entity); } else { XMLParser.ExternalIds ids = (XMLParser.ExternalIds) entity; if (ids.notationName != null) { if (dtdHandler != null) { String pub = ids... | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | |
reset(); | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | |
finally { if (opened) in.close(); reset(); } | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | |
xmlStandalone = false; | public void reset() { parser = null; encoding = null; xmlVersion = null; } | |
if (entityResolver != null) { try { InputSource input = entityResolver.resolveEntity(null, uri); if (input != null) return input.getByteStream(); } catch (SAXException e) { XMLStreamException e2 = new XMLStreamException(e.getMessage()); e2.initCause(e); throw e2; } catch (IOException e) { XMLStreamException e2 = new XM... | return resolve(null, uri); | public InputStream resolve(String uri) throws XMLStreamException { if (entityResolver != null) { try { InputSource input = entityResolver.resolveEntity(null, uri); if (input != null) return input.getByteStream(); } catch (SAXException e) ... |
if ((FEATURES + "string-interning").equals(name)) | else if ((FEATURES + "string-interning").equals(name)) | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... |
if ((FEATURES + "validation").equals(name)) | else if ((FEATURES + "validation").equals(name)) | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... |
if ((PROPERTIES + "declaration-handler").equals(name)) | else if ((FEATURES + "external-general-entities").equals(name)) externalEntities = Boolean.TRUE.equals(value); else if ((FEATURES + "external-parameter-entities").equals(name)) externalEntities = Boolean.TRUE.equals(value); else if ((PROPERTIES + "declaration-handler").equals(name)) | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... |
if ((PROPERTIES + "lexical-handler").equals(name)) | else if ((PROPERTIES + "lexical-handler").equals(name)) | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... |
else | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... | |
RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { int i = idx.getValue(); os.writeMOV(INTSIZE, r, i + V... | RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); | public final void visit_aastore() { RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); i... |
helper.writeArrayStoreWriteBarrier(S0, T0, T1, S1); } | val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { int i = idx.getValue(); os.writeMOV(INTSIZE, r, i + VmArray.DATA_OFFSET * 4, val .getRegister()); } else { os.writeMOV(INTSIZE, r, idx.getRegister()... | public final void visit_aastore() { RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); i... |
OpcodeNotImplemented("anewarray"); vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); | OpcodeNotImplemented("anewarray"); vstack.push(eContext); | public final void visit_anewarray(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("anewarray"); vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); /* Count */ stackFrame.writePushMethodRef(); helper.writePUSH(EAX); /* Class */ helper.writePUSH(S0)... |
stackFrame.writePushMethodRef(); helper.writePUSH(EAX); helper.writePUSH(S0); helper.invokeJavaMethod(context.getAnewarrayMethod()); | writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); | public final void visit_anewarray(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("anewarray"); vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); /* Count */ stackFrame.writePushMethodRef(); helper.writePUSH(EAX); /* Class */ helper.writePUSH(S0)... |
vstack.pushItem(RefItem.createStack()); } | stackFrame.writePushMethodRef(); helper.writePUSH(EAX); helper.writePUSH(S0); helper.invokeJavaMethod(context.getAnewarrayMethod()); vstack.pushItem(RefItem.createStack()); } | public final void visit_anewarray(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("anewarray"); vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); /* Count */ stackFrame.writePushMethodRef(); helper.writePUSH(EAX); /* Class */ helper.writePUSH(S0)... |
IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { int i = idx.getValue(); os.writeMOV(WORDSIZE, r, i + ... | IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); | public final void visit_castore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); i... |
} | val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { int i = idx.getValue(); os.writeMOV(WORDSIZE, r, i + VmArray.DATA_OFFSET * 4, val .getRegister()); } else { os.writeMOV(WORDSIZE, r, idx.getRegister... | public final void visit_castore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); i... |
OpcodeNotImplemented("checkcast"); vstack.push(eContext); RefItem ref = vstack.popRef(); vstack.pushItem(ref); writeResolveAndLoadClassToEAX(classRef, S0); | OpcodeNotImplemented("checkcast"); vstack.push(eContext); RefItem ref = vstack.popRef(); vstack.pushItem(ref); | public final void visit_checkcast(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("checkcast"); vstack.push(eContext); RefItem ref = vstack.popRef(); vstack.pushItem(ref); writeResolveAndLoadClassToEAX(classRef, S0); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* o... |
final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); | writeResolveAndLoadClassToEAX(classRef, S0); | public final void visit_checkcast(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("checkcast"); vstack.push(eContext); RefItem ref = vstack.popRef(); vstack.pushItem(ref); writeResolveAndLoadClassToEAX(classRef, S0); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* o... |
os.writeMOV(INTSIZE, ECX, SP, 0); os.writeTEST(ECX, ECX); os.writeJCC(okLabel, X86Constants.JZ); instanceOf(okLabel); | final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); | public final void visit_checkcast(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("checkcast"); vstack.push(eContext); RefItem ref = vstack.popRef(); vstack.pushItem(ref); writeResolveAndLoadClassToEAX(classRef, S0); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* o... |
helper.writePUSH(SoftByteCodes.EX_CLASSCAST); helper.writePUSH(0); helper.invokeJavaMethod(context.getSystemExceptionMethod()); | os.writeMOV(INTSIZE, ECX, SP, 0); os.writeTEST(ECX, ECX); os.writeJCC(okLabel, X86Constants.JZ); instanceOf(okLabel); | public final void visit_checkcast(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("checkcast"); vstack.push(eContext); RefItem ref = vstack.popRef(); vstack.pushItem(ref); writeResolveAndLoadClassToEAX(classRef, S0); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* o... |
helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); | helper.writePUSH(SoftByteCodes.EX_CLASSCAST); helper.writePUSH(0); helper.invokeJavaMethod(context.getSystemExceptionMethod()); | public final void visit_checkcast(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("checkcast"); vstack.push(eContext); RefItem ref = vstack.popRef(); vstack.pushItem(ref); writeResolveAndLoadClassToEAX(classRef, S0); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* o... |
os.setObjectRef(okLabel); } | helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); os.setObjectRef(okLabel); } | public final void visit_checkcast(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("checkcast"); vstack.push(eContext); RefItem ref = vstack.popRef(); vstack.pushItem(ref); writeResolveAndLoadClassToEAX(classRef, S0); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* o... |
vstack.push(eContext); RefItem v = vstack.popRef(); vstack.pushItem(v); writeResolveAndLoadClassToEAX(classRef, S0); | vstack.push(eContext); RefItem v = vstack.popRef(); vstack.pushItem(v); | public final void visit_instanceof(VmConstClass classRef) { //TODO: port to orp-style vstack.push(eContext); RefItem v = vstack.popRef(); vstack.pushItem(v); /* Objectref is already on the stack */ writeResolveAndLoadClassToEAX(classRef, S0); final Label trueLabel = new Label(this.curInstrLabel + "io-true"); ... |
final Label trueLabel = new Label(this.curInstrLabel + "io-true"); final Label endLabel = new Label(this.curInstrLabel + "io-end"); | writeResolveAndLoadClassToEAX(classRef, S0); | public final void visit_instanceof(VmConstClass classRef) { //TODO: port to orp-style vstack.push(eContext); RefItem v = vstack.popRef(); vstack.pushItem(v); /* Objectref is already on the stack */ writeResolveAndLoadClassToEAX(classRef, S0); final Label trueLabel = new Label(this.curInstrLabel + "io-true"); ... |
helper.writePOP(Register.ECX); instanceOf(trueLabel); os.writeXOR(T0, T0); os.writeJMP(endLabel); | final Label trueLabel = new Label(this.curInstrLabel + "io-true"); final Label endLabel = new Label(this.curInstrLabel + "io-end"); | public final void visit_instanceof(VmConstClass classRef) { //TODO: port to orp-style vstack.push(eContext); RefItem v = vstack.popRef(); vstack.pushItem(v); /* Objectref is already on the stack */ writeResolveAndLoadClassToEAX(classRef, S0); final Label trueLabel = new Label(this.curInstrLabel + "io-true"); ... |
os.setObjectRef(trueLabel); os.writeMOV_Const(T0, 1); | helper.writePOP(Register.ECX); instanceOf(trueLabel); os.writeXOR(T0, T0); os.writeJMP(endLabel); | public final void visit_instanceof(VmConstClass classRef) { //TODO: port to orp-style vstack.push(eContext); RefItem v = vstack.popRef(); vstack.pushItem(v); /* Objectref is already on the stack */ writeResolveAndLoadClassToEAX(classRef, S0); final Label trueLabel = new Label(this.curInstrLabel + "io-true"); ... |
os.setObjectRef(endLabel); os.writePUSH(T0); } | os.setObjectRef(trueLabel); os.writeMOV_Const(T0, 1); os.setObjectRef(endLabel); os.writePUSH(T0); } | public final void visit_instanceof(VmConstClass classRef) { //TODO: port to orp-style vstack.push(eContext); RefItem v = vstack.popRef(); vstack.pushItem(v); /* Objectref is already on the stack */ writeResolveAndLoadClassToEAX(classRef, S0); final Label trueLabel = new Label(this.curInstrLabel + "io-true"); ... |
public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { vstack.push(eContext); methodRef.resolve(loader); | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { vstack.push(eContext); | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
final VmMethod method = methodRef.getResolvedVmMethod(); final int selector = method.getSelector(); final int imtIndex = selector % ObjectLayout.IMT_LENGTH; final int argSlotCount = count - 1; final Label noCollLabel = new Label(this.curInstrLabel + "NoCollision"); final Label findSelectorLabel = new Label(this.curInst... | methodRef.resolve(loader); | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
final int nofArgs = method.getNoArguments(); for (int i=0; i<nofArgs; i++) { Item v = vstack.popItem(); v.release(eContext); } os.writeMOV(INTSIZE, Register.EBX, SP, argSlotCount * slotSize); | final VmMethod method = methodRef.getResolvedVmMethod(); final int selector = method.getSelector(); final int imtIndex = selector % ObjectLayout.IMT_LENGTH; final int argSlotCount = count - 1; final Label noCollLabel = new Label(this.curInstrLabel + "NoCollision"); final Label findSelectorLabel = new Label(this.curInst... | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
os.writeMOV_Const(ECX, selector); os.writeMOV_Const(EDX, imtIndex); | final int nofArgs = method.getNoArguments(); for (int i = 0; i < nofArgs; i++) { Item v = vstack.popItem(); v.release(eContext); } | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
os.writeMOV(INTSIZE, Register.EBX, Register.EBX, ObjectLayout.TIB_SLOT * slotSize); os.writeMOV(INTSIZE, Register.ESI, Register.EBX, (VmArray.DATA_OFFSET + TIBLayout.IMTCOLLISIONS_INDEX) * slotSize); os.writeMOV(INTSIZE, Register.EAX, Register.ESI, Register.EDX, 1, VmArray.DATA_OFFSET * slotSize); os.writeTEST_AL(0xF... | os.writeMOV(INTSIZE, Register.EBX, SP, argSlotCount * slotSize); | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
os.writeJCC(noCollLabel, X86Constants.JZ); | os.writeMOV_Const(ECX, selector); os.writeMOV_Const(EDX, imtIndex); | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
os.writeMOV(INTSIZE, Register.ESI, Register.ESI, Register.EDX, 4, VmArray.DATA_OFFSET * slotSize); os.writeMOV(INTSIZE, Register.ECX, Register.ESI, VmArray.LENGTH_OFFSET * slotSize); os.writeLEA(Register.ESI, Register.ESI, VmArray.DATA_OFFSET * slotSize); | os.writeMOV(INTSIZE, Register.EBX, Register.EBX, ObjectLayout.TIB_SLOT * slotSize); os.writeMOV(INTSIZE, Register.ESI, Register.EBX, (VmArray.DATA_OFFSET + TIBLayout.IMTCOLLISIONS_INDEX) * slotSize); os.writeMOV(INTSIZE, Register.EAX, Register.ESI, Register.EDX, 1, VmArray.DATA_OFFSET * slotSize); os.writeTEST_AL(0xF... | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
os.setObjectRef(findSelectorLabel); | os.writeJCC(noCollLabel, X86Constants.JZ); | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
os.writeLODSD(); os.writeMOV(INTSIZE, Register.EDX, Register.EAX, context.getVmMethodSelectorField().getOffset()); os.writeCMP(Register.EBX, Register.EDX); os.writeJCC(endLabel, X86Constants.JE); try { os.writeLOOP(findSelectorLabel); } catch (UnresolvedObjectRefException ex) { throw new CompileError(ex); } os.writeX... | os.writeMOV(INTSIZE, Register.ESI, Register.ESI, Register.EDX, 4, VmArray.DATA_OFFSET * slotSize); os.writeMOV(INTSIZE, Register.ECX, Register.ESI, VmArray.LENGTH_OFFSET * slotSize); os.writeLEA(Register.ESI, Register.ESI, VmArray.DATA_OFFSET * slotSize); | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
os.setObjectRef(noCollLabel); os.writeMOV(INTSIZE, Register.EAX, Register.ESI, Register.EDX, 4, VmArray.DATA_OFFSET * slotSize); | os.setObjectRef(findSelectorLabel); | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
os.setObjectRef(endLabel); | os.writeLODSD(); os.writeMOV(INTSIZE, Register.EDX, Register.EAX, context .getVmMethodSelectorField().getOffset()); os.writeCMP(Register.EBX, Register.EDX); os.writeJCC(endLabel, X86Constants.JE); try { os.writeLOOP(findSelectorLabel); } catch (UnresolvedObjectRefException ex) { throw new CompileError(ex); } os.write... | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
helper.invokeJavaMethod(methodRef.getSignature()); pushReturnValue(methodRef.getSignature()); } | os.setObjectRef(noCollLabel); os.writeMOV(INTSIZE, Register.EAX, Register.ESI, Register.EDX, 4, VmArray.DATA_OFFSET * slotSize); os.setObjectRef(endLabel); helper.invokeJavaMethod(methodRef.getSignature()); pushReturnValue(methodRef.getSignature()); } | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = new * Label(this.curInstrLabel + "startClass"); os.setObjectRef(startC... |
vstack.push(eContext); methodRef.resolve(loader); final VmStaticMethod sm = (VmStaticMethod)methodRef.getResolvedVmMethod(); | vstack.push(eContext); | public final void visit_invokestatic(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmStaticMethod sm = (VmStaticMethod)methodRef.getResolvedVmMethod(); final int nofArgs = sm.getNoArguments(); for (int i=0; i<nofArgs; i++) { //TODO: check p... |
final int nofArgs = sm.getNoArguments(); for (int i=0; i<nofArgs; i++) { Item v = vstack.popItem(); v.release(eContext); } helper.writeGetStaticsEntry(curInstrLabel, EAX, sm); helper.invokeJavaMethod(methodRef.getSignature()); | methodRef.resolve(loader); final VmStaticMethod sm = (VmStaticMethod) methodRef .getResolvedVmMethod(); | public final void visit_invokestatic(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmStaticMethod sm = (VmStaticMethod)methodRef.getResolvedVmMethod(); final int nofArgs = sm.getNoArguments(); for (int i=0; i<nofArgs; i++) { //TODO: check p... |
pushReturnValue(methodRef.getSignature()); } | final int nofArgs = sm.getNoArguments(); for (int i = 0; i < nofArgs; i++) { Item v = vstack.popItem(); v.release(eContext); } helper.writeGetStaticsEntry(curInstrLabel, EAX, sm); helper.invokeJavaMethod(methodRef.getSignature()); pushReturnValue(methodRef.getSignature()); } | public final void visit_invokestatic(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmStaticMethod sm = (VmStaticMethod)methodRef.getResolvedVmMethod(); final int nofArgs = sm.getNoArguments(); for (int i=0; i<nofArgs; i++) { //TODO: check p... |
vstack.push(eContext); methodRef.resolve(loader); final VmMethod mts = methodRef.getResolvedVmMethod(); final int nofArgs = mts.getNoArguments(); for (int i=0; i<nofArgs; i++) { Item v = vstack.popItem(); v.release(eContext); } if (mts.isStatic()) { throw new IncompatibleClassChangeError("Static method in invokevir... | vstack.push(eContext); | public final void visit_invokevirtual(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmMethod mts = methodRef.getResolvedVmMethod(); final int nofArgs = mts.getNoArguments(); for (int i=0; i<nofArgs; i++) { //TODO: check parameter type Item... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.