comparison src/share/vm/adlc/forms.hpp @ 628:7bb995fbd3c0

Merge
author trims
date Thu, 12 Mar 2009 18:16:36 -0700
parents 337400e7a5dd
children c18cbe5936b8
comparison
equal deleted inserted replaced
580:ce2272390558 628:7bb995fbd3c0
1 /* 1 /*
2 * Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
122 int _ftype; // Indicator for derived class type 122 int _ftype; // Indicator for derived class type
123 123
124 public: 124 public:
125 // Public Data 125 // Public Data
126 Form *_next; // Next pointer for form lists 126 Form *_next; // Next pointer for form lists
127 long _linenum; // Line number for debugging 127 int _linenum; // Line number for debugging
128 128
129 // Dynamic type check for common forms. 129 // Dynamic type check for common forms.
130 virtual OpClassForm *is_opclass() const; 130 virtual OpClassForm *is_opclass() const;
131 virtual OperandForm *is_operand() const; 131 virtual OperandForm *is_operand() const;
132 virtual InstructForm *is_instruction() const; 132 virtual InstructForm *is_instruction() const;
340 int count() const; 340 int count() const;
341 341
342 void reset(); // Reset iteration 342 void reset(); // Reset iteration
343 const char *iter(); // after reset(), first element : else next 343 const char *iter(); // after reset(), first element : else next
344 const char *current(); // return current element in iteration. 344 const char *current(); // return current element in iteration.
345 const char *peek(int skip = 1); // returns element + skip in iteration if there is one
345 346
346 bool current_is_signal(); // Return 'true' if current entry is signal 347 bool current_is_signal(); // Return 'true' if current entry is signal
347 bool is_signal(const char *entry); // Return true if entry is a signal 348 bool is_signal(const char *entry); // Return true if entry is a signal
348 349
349 bool search(const char *); // Search for a name in the list 350 bool search(const char *); // Search for a name in the list