Mercurial > hg > truffle
changeset 7668:d19837d236e5
Merge.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 04 Feb 2013 13:21:13 +0100 |
parents | 10a72efd23bc (diff) 36ead721a04f (current diff) |
children | 20cc221ed5ca 301cbb131b5d 960a15fea39a |
files | |
diffstat | 8 files changed, 17 insertions(+), 48 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/bytecode/BC_l2i.java Fri Feb 01 21:10:53 2013 +0100 +++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/bytecode/BC_l2i.java Mon Feb 04 13:21:13 2013 +0100 @@ -25,9 +25,6 @@ import com.oracle.graal.jtt.*; import org.junit.*; -/* - * TODO: test roundoff behavior - */ public class BC_l2i extends JTTTest { public static int test(long a) {
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/StandardOp.java Fri Feb 01 21:10:53 2013 +0100 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/StandardOp.java Mon Feb 04 13:21:13 2013 +0100 @@ -78,8 +78,6 @@ * LIR operation that is an unconditional jump to {@link #destination()}. When the LIR is * constructed, the last operation of every block must implement this interface. After register * allocation, unnecessary jumps can be deleted. - * - * TODO (cwimmer) Currently, a block can also end with an XIR operation. */ public static class JumpOp extends LIRInstruction {
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/ShiftNode.java Fri Feb 01 21:10:53 2013 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/ShiftNode.java Mon Feb 04 13:21:13 2013 +0100 @@ -38,7 +38,5 @@ */ public ShiftNode(Kind kind, ValueNode x, ValueNode s) { super(kind, x, s); - // TODO (cwimmer) Why check for null here - what is a shift with no left operand? - assert x == null || x.kind() == kind; } }
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/ControlFlowException.java Fri Feb 01 21:10:53 2013 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/ControlFlowException.java Mon Feb 04 13:21:13 2013 +0100 @@ -26,14 +26,21 @@ * An exception thrown to model control flow in a Truffle interpreter. The Truffle optimizer has * special knowledge of this exception class for performance optimizations. */ -public class ControlFlowException extends Exception { +public class ControlFlowException extends RuntimeException { private static final long serialVersionUID = 3676602078425211386L; /** - * Creates an exception thrown to enter a slow path. + * Creates an exception thrown to model control flow. */ - public ControlFlowException(String message, Throwable cause) { - super(message, cause); + public ControlFlowException() { + } + + /** + * For performance reasons, this exception does not record any stack trace information. + */ + @Override + public synchronized Throwable fillInStackTrace() { + return null; } }
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/BreakException.java Fri Feb 01 21:10:53 2013 +0100 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/BreakException.java Mon Feb 04 13:21:13 2013 +0100 @@ -22,6 +22,8 @@ */ package com.oracle.truffle.sl.nodes; +import com.oracle.truffle.api.nodes.*; + public final class BreakException extends ControlFlowException { private static final long serialVersionUID = -91013036379258890L;
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/ContinueException.java Fri Feb 01 21:10:53 2013 +0100 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/ContinueException.java Mon Feb 04 13:21:13 2013 +0100 @@ -22,6 +22,8 @@ */ package com.oracle.truffle.sl.nodes; +import com.oracle.truffle.api.nodes.*; + public final class ContinueException extends ControlFlowException { private static final long serialVersionUID = 5329687983726237188L;
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/ControlFlowException.java Fri Feb 01 21:10:53 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2012, 2012, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ -package com.oracle.truffle.sl.nodes; - -/** - * Common base class for exceptions that are used to implement control flow. - */ -public abstract class ControlFlowException extends RuntimeException { - - private static final long serialVersionUID = 4924673852577649008L; - - @SuppressWarnings("all") - @Override - public final Throwable fillInStackTrace() { - return null; - } -}
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/ReturnException.java Fri Feb 01 21:10:53 2013 +0100 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/ReturnException.java Mon Feb 04 13:21:13 2013 +0100 @@ -22,6 +22,8 @@ */ package com.oracle.truffle.sl.nodes; +import com.oracle.truffle.api.nodes.*; + public final class ReturnException extends ControlFlowException { private static final long serialVersionUID = 4073191346281369231L;