OSDN Git Service

* langhooks.h (builtin_function): New langhook.
[pf3gnuchains/gcc-fork.git] / gcc / java / java-tree.def
index db64229..25ee538 100644 (file)
@@ -22,6 +22,13 @@ DEFTREECODE (UNARY_PLUS_EXPR, "unary_plus_expr", '1', 1)
    Once patched, the node will bear the type of the created array.  */
 DEFTREECODE (NEW_ARRAY_EXPR, "new_array_expr", 'e', 3)
 
+/* New anonymous array creation expression.
+   Operand 0 is the base type of the anonymous array.
+   Operand 1 is the signature of the dimensions this array contains.
+   Operand 2 is the anonymous array initializer.
+   Once patched, the node will bear the type of the created array.  */
+DEFTREECODE (NEW_ANONYMOUS_ARRAY_EXPR, "new_anonymous_array", 'e', 3)
+
 /* New class creation expression.
    Operand 0 is the name of the class to be created
    Operand 1 is the argument list used to select a constructor.
@@ -35,23 +42,64 @@ DEFTREECODE (THIS_EXPR, "this", '1', 0)
 
 /* Case statement expression.
    Operand 1 is the case value.  */
-DEFTREECODE (CASE_EXPR, "case", '1', 1)
+DEFTREECODE (CASE_EXPR, "case", 'e', 1)
 
 /* Default statement expression. */
-DEFTREECODE (DEFAULT_EXPR, "default", '1', 0)
+DEFTREECODE (DEFAULT_EXPR, "default", 'e', 0)
 
 /* Try expression
    Operand 0 is the tried block,
-   Operand 1 contains chained catch nodes
-   Operand 2 contains the finally clause.  */
-DEFTREECODE (TRY_EXPR, "try-catch-finally", 'e', 3)
+   Operand 1 contains chained catch nodes. */
+DEFTREECODE (TRY_EXPR, "try-catch", 'e', 2)
 
 /* Catch clause.
    Operand 0 is the catch clause block, which contains the declaration of
    the catch clause parameter.  */
-DEFTREECODE (CATCH_EXPR, "catch", '1', 1)
+DEFTREECODE (JAVA_CATCH_EXPR, "catch", '1', 1)
+
+/* Synchronized statement.
+   Operand 0 is the expression on which we wish to synchronize,
+   Operand 1 is the synchronized expression block.  */
+DEFTREECODE (SYNCHRONIZED_EXPR, "synchronized", 'e', 2)
+
+/* Throw statement.
+   Operand 0 is the throw expression.  */
+DEFTREECODE (THROW_EXPR, "throw", '1', 1)
+
+/* Conditional operator.
+   Operand 0 is the condition expression
+   Operand 1 is the then-value
+   Operand 2 is the else-value.  */
+DEFTREECODE (CONDITIONAL_EXPR, "?:", 'e', 3)
+
+/* instanceof operator.
+   Operand 0 is the expression that is getting tested
+   Operand 1 is the class used for the test.  */
+DEFTREECODE (INSTANCEOF_EXPR, "instanceof", 'e', 2)
+
+/* Array initializers.
+   Operand 0 is the (sub) array target to initialize, left to NULL_TREE
+   when the node is created.
+   Operand 1 is a CONSTRUCTOR node.  */
+DEFTREECODE (NEW_ARRAY_INIT, "new_array_init", '1', 1)
+
+/* Class literal.
+   Operand 0 is the name of the class we're trying to build a
+   reference from.  */
+DEFTREECODE (CLASS_LITERAL, "class_literal", '1', 1)
+
+/* The Java object within the exception object from the runtime.  */
+DEFTREECODE (JAVA_EXC_OBJ_EXPR, "java_exc_obj_expr", 'e', 0)
+
+/* Annotates a tree node (usually an expression) with source location
+   information: a file name (EXPR_WFL_FILENAME);  a line number
+   (EXPR_WFL_LINENO); and column number (EXPR_WFL_COLNO).  It is
+   expanded as the contained node (EXPR_WFL_NODE);  a line note should
+   be emitted first if EXPR_WFL_EMIT_LINE_NOTE.  */
+DEFTREECODE (EXPR_WITH_FILE_LOCATION, "expr_with_file_location", 'e', 3)
 
-/* Finally clause.
-   Operand 0 is the finally label.
-   Operand 1 is the finally block.  */
-DEFTREECODE (FINALLY_EXPR, "finally", 'e', 2) 
+/*
+Local variables:
+mode:c
+End:
+*/