⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 java-tree.h

📁 gcc-2.95.3 Linux下最常用的C编译器
💻 H
📖 第 1 页 / 共 3 页
字号:
extern void jcf_trim_old_input PROTO ((struct JCF *));#ifdef BUFSIZextern void jcf_print_utf8 PROTO ((FILE *, const unsigned char *, int));extern void jcf_print_char PROTO ((FILE *, int));extern void jcf_print_utf8_replace PROTO ((FILE *, const unsigned char *,					   int, int, int));# if JCF_USE_STDIOextern char* open_class PROTO ((char *, struct JCF *, FILE *, const char *));# elseextern char* open_class PROTO ((char *, struct JCF *, int, const char *));# endif /* JCF_USE_STDIO */#endif/* Access flags etc for a method (a FUNCTION_DECL): */#define METHOD_PUBLIC(DECL) DECL_LANG_FLAG_1 (DECL)#define METHOD_PRIVATE(DECL) TREE_PRIVATE (DECL)#define METHOD_PROTECTED(DECL) TREE_PROTECTED (DECL)#define METHOD_STATIC(DECL) DECL_LANG_FLAG_2 (DECL)#define METHOD_FINAL(DECL) DECL_LANG_FLAG_3 (DECL)#define METHOD_SYNCHRONIZED(DECL) DECL_LANG_FLAG_4 (DECL)#define METHOD_NATIVE(DECL) DECL_EXTERNAL(DECL)#define METHOD_ABSTRACT(DECL) DECL_LANG_FLAG_5 (DECL)#define METHOD_TRANSIENT(DECL) DECL_LANG_FLAG_6 (DECL)#define DECL_CONSTRUCTOR_P(DECL) DECL_LANG_FLAG_7(DECL)/* Access flags etc for a variable/field (a FIELD_DECL): */#define FIELD_PRIVATE(DECL) TREE_PRIVATE (DECL)#define FIELD_PROTECTED(DECL) TREE_PROTECTED (DECL)#define FIELD_PUBLIC(DECL) DECL_LANG_FLAG_1 (DECL)#define FIELD_STATIC(DECL) TREE_STATIC (DECL)#define FIELD_FINAL(DECL) DECL_LANG_FLAG_3 (DECL)#define FIELD_VOLATILE(DECL) DECL_LANG_FLAG_4 (DECL)#define FIELD_TRANSIENT(DECL) DECL_LANG_FLAG_5 (DECL)/* Access flags etc for a class (a TYPE_DECL): */#define CLASS_PUBLIC(DECL) DECL_LANG_FLAG_1 (DECL)#define CLASS_FINAL(DECL) DECL_LANG_FLAG_3 (DECL)#define CLASS_INTERFACE(DECL) DECL_LANG_FLAG_4 (DECL)#define CLASS_ABSTRACT(DECL) DECL_LANG_FLAG_5 (DECL)#define CLASS_SUPER(DECL) DECL_LANG_FLAG_6 (DECL)/* @deprecated marker flag on methods, fields and classes */#define METHOD_DEPRECATED(DECL) DECL_LANG_FLAG_0 (DECL)#define FIELD_DEPRECATED(DECL) DECL_LANG_FLAG_0 (DECL)#define CLASS_DEPRECATED(DECL) DECL_LANG_FLAG_0 (DECL)#define DECL_DEPRECATED(DECL) DECL_LANG_FLAG_0 (DECL)/* The number of virtual methods in this class's dispatch table. Does not include initial two dummy entries (one points to the Class object, and the other is for G++ -fvtable-thunks compatibility). */#define TYPE_NVIRTUALS(TYPE) TYPE_BINFO_VIRTUALS (TYPE)/* A TREE_VEC (indexed by DECL_VINDEX) containing this class's   virtual methods. */#define TYPE_VTABLE(TYPE) TYPE_BINFO_VTABLE(TYPE)/* Use CLASS_LOADED_P? FIXME */#define CLASS_COMPLETE_P(DECL) DECL_LANG_FLAG_2 (DECL) /* This maps a bytecode offset (PC) to various flags,   listed below (starting with BCODE_). */extern char *instruction_bits;/* True iff the byte is the start of an instruction. */#define BCODE_INSTRUCTION_START 1/* True iff there is a jump to this location. */#define BCODE_JUMP_TARGET 2/* True iff there is a return to this location.   (I.e. the preceedng instruction was a call.) */#define BCODE_RETURN_TARGET 4/* True iff this is the start of an exception handler. */#define BCODE_EXCEPTION_TARGET 16/* True iff there is a jump to this location (and it needs a label). */#define BCODE_TARGET \  (BCODE_JUMP_TARGET|BCODE_RETURN_TARGET \   | BCODE_EXCEPTION_TARGET)/* True iff there is an entry in the linenumber table for this location. */#define BCODE_HAS_LINENUMBER 32/* True iff there is more than one entry in the linenumber table for   this location.  (This probably does not make much sense.)  */#define BCODE_HAS_MULTI_LINENUMBERS 64/* True if this instruction has been verified. */#define BCODE_VERIFIED 8/* A pointer to the line number table of the current method. */extern unsigned char *linenumber_table;/* The length (in items) of the line number table. */extern int linenumber_count;/* In type_map, means that slot is uninitialized or otherwise unusable. */#define TYPE_UNKNOWN NULL_TREE/* In type_map, means the second half of a 64-bit double or long. */#define TYPE_SECOND void_type_node/* In type_map, means the null type (i.e. type of a null reference). */ #define TYPE_NULL ptr_type_node/* In a type map means the type the address subroutine return address. */#define TYPE_RETURN_ADDR return_address_type_node/* In a subroutine's return type map, indicates that the slot was neither   used nor set in the subroutine. */#define TYPE_UNUSED error_mark_node/* A array mapping variable/stack slot index to the type current   in that variable/stack slot.   TYPE_UNKNOWN, TYPE_SECOND, and TYPE_NULL are special cases. */extern tree *type_map;/* Map a stack index to the type currently in that slot. */#define stack_type_map (type_map+DECL_MAX_LOCALS(current_function_decl))/* True iff TYPE takes two variable/stack slots. */#define TYPE_IS_WIDE(TYPE) \  ((TYPE) == double_type_node || (TYPE) == long_type_node)/* True iff TYPE is a Java array type. */#define TYPE_ARRAY_P(TYPE) TYPE_LANG_FLAG_1 (TYPE)/* If FUNCTION_TYPE or METHOD_TYPE: cache for build_java_argument_signature. */#define TYPE_ARGUMENT_SIGNATURE(TYPE) TYPE_VFIELD(TYPE)/* Given an array type, give the type of the elements. *//* FIXME this use of TREE_TYPE conflicts with something or other. */#define TYPE_ARRAY_ELEMENT(ATYPE) TREE_TYPE(ATYPE)/* True if class TYPE has been loaded. */#define CLASS_LOADED_P(TYPE) TYPE_LANG_FLAG_2 (TYPE)/* True if class TYPE was defined in Java source code. */#define CLASS_FROM_SOURCE_P(TYPE) TYPE_LANG_FLAG_3 (TYPE)/* True of a RECORD_TYPE of a class/interface type (not array type) */#define CLASS_P(TYPE) TYPE_LANG_FLAG_4 (TYPE)/* True if class TYPE was defined in a Java source file compiled. */#define CLASS_FROM_CURRENTLY_COMPILED_SOURCE_P(TYPE) \  TYPE_LANG_FLAG_5 (TYPE)/* True if class TYPE has a field initializer $finit$ function */#define CLASS_HAS_FINIT_P(TYPE) TYPE_LANG_FLAG_6 (TYPE)/* True if identifier ID was seen while processing a single type import stmt */#define IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P(ID) TREE_LANG_FLAG_0 (ID)/* True if identifier ID was seen while processing an import statement */#define IS_A_CLASSFILE_NAME(ID) TREE_LANG_FLAG_1 (ID)/* True if ID is a qualified named (contains . or /) */#define QUALIFIED_P(ID) TREE_LANG_FLAG_2 (ID)/* True if ID is an already processed import on demand */#define IS_AN_IMPORT_ON_DEMAND_P(ID) TREE_LANG_FLAG_3 (ID)/* True if ID is a command-line specified filename */#define IS_A_COMMAND_LINE_FILENAME_P(ID) TREE_LANG_FLAG_4 (ID)/* True if filename ID has already been parsed */#define HAS_BEEN_ALREADY_PARSED_P(ID) TREE_LANG_FLAG_5 (ID)/* True if EXPR is RHS sub-tree of a compound assign expression */#define COMPOUND_ASSIGN_P(EXPR) TREE_LANG_FLAG_1 (EXPR)/* True if a SWITCH_EXPR has a DEFAULT_EXPR. */#define SWITCH_HAS_DEFAULT(NODE) TREE_LANG_FLAG_3 (NODE)/* True if EXPR (a WFL in that case) was created after the   reduction of PRIMARY . XXX */#define PRIMARY_P(EXPR) TREE_LANG_FLAG_2 (EXPR)/* True if EXPR (a MODIFY_EXPR in that case) is the result of variable   initialization during its declaration */#define MODIFY_EXPR_FROM_INITIALIZATION_P(EXPR) TREE_LANG_FLAG_2 (EXPR)/* True if EXPR (a WFL in that case) resolves into an expression name */#define RESOLVE_EXPRESSION_NAME_P(WFL) TREE_LANG_FLAG_0 (WFL)/* True if EXPR (a LOOP_EXPR in that case) is part of a for statement */#define IS_FOR_LOOP_P(EXPR) TREE_LANG_FLAG_0 (EXPR)/* True if EXPR (a WFL in that case) resolves into a package name */#define RESOLVE_PACKAGE_NAME_P(WFL) TREE_LANG_FLAG_3 (WFL)/* True if EXPR (a WFL in that case) resolves into a type name */#define RESOLVE_TYPE_NAME_P(WFL) TREE_LANG_FLAG_4 (WFL)/* True if STMT (a WFL in that case) holds a BREAK statement */#define IS_BREAK_STMT_P(WFL) TREE_LANG_FLAG_5 (WFL)/* True if EXPR (a CALL_EXPR in that case) is a crafted StringBuffer */#define IS_CRAFTED_STRING_BUFFER_P(EXPR) TREE_LANG_FLAG_5 (EXPR)/* If set in CALL_EXPR, the receiver is 'super'. */#define CALL_USING_SUPER(EXPR) TREE_LANG_FLAG_4 (EXPR)/* True if NODE (a statement) can complete normally. */#define CAN_COMPLETE_NORMALLY(NODE) TREE_LANG_FLAG_6(NODE)/* Add a FIELD_DECL to RECORD_TYPE RTYPE.   The field has name NAME (a char*), and type FTYPE.   Unless this is the first field, FIELD most hold the previous field.   FIELD is set to the newly created FIELD_DECL.   We set DECL_ARTIFICIAL so these fields get skipped by make_class_data   if compiling java.lang.Object or java.lang.Class. */#define PUSH_FIELD(RTYPE, FIELD, NAME, FTYPE) \{ tree tmp_field = build_decl (FIELD_DECL, get_identifier(NAME), FTYPE); \  if (TYPE_FIELDS (RTYPE) == NULL_TREE) TYPE_FIELDS (RTYPE) = tmp_field; \  else TREE_CHAIN(FIELD) = tmp_field; \  DECL_CONTEXT (tmp_field) = RTYPE; \  DECL_ARTIFICIAL (tmp_field) = 1; \  FIELD = tmp_field; }#define FINISH_RECORD(RTYPE) layout_type (RTYPE)/* Start building a RECORD_TYPE constructor with a given TYPE in CONS. */#define START_RECORD_CONSTRUCTOR(CONS, CTYPE) { \  CONS = build (CONSTRUCTOR, CTYPE, NULL_TREE, NULL_TREE);\  TREE_CHAIN(CONS) = TYPE_FIELDS (CTYPE); }/* Append a field initializer to CONS for the dummy field for the inherited   fields.  The dummy field has the given VALUE, and the same type as the   super-class.   Must be specified before calls to PUSH_FIELD_VALUE. */#define PUSH_SUPER_VALUE(CONS, VALUE) {\  tree field = TREE_CHAIN(CONS);\  if (DECL_NAME (field) != NULL_TREE) abort();\  CONSTRUCTOR_ELTS(CONS) = tree_cons (field, VALUE, CONSTRUCTOR_ELTS(CONS));\  TREE_CHAIN(CONS) = TREE_CHAIN (field); }/* Append a field initializer to CONS for a field with the given VALUE.   NAME is a char* string used for error checking;   the initializer must be specified in order. */#define PUSH_FIELD_VALUE(CONS, NAME, VALUE) {\  tree field = TREE_CHAIN(CONS);\  if (strcmp (IDENTIFIER_POINTER (DECL_NAME (field)), NAME) != 0) abort();\  CONSTRUCTOR_ELTS(CONS) = tree_cons (field, VALUE, CONSTRUCTOR_ELTS(CONS));\  TREE_CHAIN(CONS) = TREE_CHAIN (field); }/* Finish creating a record CONSTRUCTOR CONS. */#define FINISH_RECORD_CONSTRUCTOR(CONS) \  CONSTRUCTOR_ELTS(CONS) = nreverse (CONSTRUCTOR_ELTS(CONS))/* Macros on constructors invocations.  */#define CALL_CONSTRUCTOR_P(NODE)		\  (TREE_CODE (NODE) == NEW_CLASS_EXPR || CALL_EXPLICIT_CONSTRUCTOR_P (NODE))#define CALL_EXPLICIT_CONSTRUCTOR_P(NODE)				\  (CALL_THIS_CONSTRUCTOR_P (NODE) || CALL_SUPER_CONSTRUCTOR_P (NODE))#define CALL_THIS_CONSTRUCTOR_P(NODE)					\  (TREE_CODE (NODE) == CALL_EXPR					\   && EXPR_WFL_NODE (TREE_OPERAND (NODE, 0)) == this_identifier_node)#define CALL_SUPER_CONSTRUCTOR_P(NODE)					\  (TREE_CODE (NODE) == CALL_EXPR					\   && EXPR_WFL_NODE (TREE_OPERAND (NODE, 0)) == super_identifier_node)/* Using a FINALLY_EXPR node */#define FINALLY_EXPR_LABEL(NODE) TREE_OPERAND ((NODE), 0)#define FINALLY_EXPR_BLOCK(NODE) TREE_OPERAND ((NODE), 1)#define BLOCK_EXPR_DECLS(NODE)  BLOCK_VARS(NODE)#define BLOCK_EXPR_BODY(NODE)   BLOCK_SUBBLOCKS(NODE)#define BUILD_MONITOR_ENTER(WHERE, ARG)				\  {								\    (WHERE) = build (CALL_EXPR, int_type_node,			\		     build_address_of (soft_monitorenter_node),	\		     build_tree_list (NULL_TREE, (ARG)), 	\		     NULL_TREE);				\    TREE_SIDE_EFFECTS (WHERE) = 1;				\  }#define BUILD_MONITOR_EXIT(WHERE, ARG)				\  {								\    (WHERE) = build (CALL_EXPR, int_type_node,			\		     build_address_of (soft_monitorexit_node),	\		     build_tree_list (NULL_TREE, (ARG)),	\		     NULL_TREE);				\    TREE_SIDE_EFFECTS (WHERE) = 1;				\  }/* Non zero if TYPE is an unchecked exception */#define IS_UNCHECKED_EXCEPTION_P(TYPE)				\  (inherits_from_p ((TYPE), runtime_exception_type_node)	\   || inherits_from_p ((TYPE), error_exception_type_node))extern int java_error_count;					\/* Make the current function where this macro is invoked report error   messages and and return, if any */#define java_parse_abort_on_error()					\  {									\     if (java_error_count > save_error_count)				\       return;								\   }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -