< prev index next >

src/hotspot/share/runtime/signature.cpp

Print this page




  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/symbolTable.hpp"
  27 #include "classfile/systemDictionary.hpp"
  28 #include "memory/oopFactory.hpp"
  29 #include "memory/resourceArea.hpp"
  30 #include "memory/universe.hpp"
  31 #include "oops/instanceKlass.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "oops/symbol.hpp"
  34 #include "oops/typeArrayKlass.hpp"
  35 #include "oops/valueKlass.hpp"
  36 #include "runtime/handles.inline.hpp"
  37 #include "runtime/signature.hpp"
  38 
  39 // Implementation of SignatureIterator
  40 
  41 // Signature syntax:
  42 //
  43 // Signature  = "(" {Parameter} ")" ReturnType.
  44 // Parameter  = FieldType.
  45 // ReturnType = FieldType | "V".
  46 // FieldType  = "B" | "C" | "D" | "F" | "I" | "J" | "S" | "Z" | "L" ClassName ";" | "Q" ValueClassName ";" | "[" FieldType.
  47 // ClassName  = string.
  48 
  49 
  50 SignatureIterator::SignatureIterator(Symbol* signature) {
  51   _signature       = signature;
  52   _parameter_index = 0;
  53 }
  54 
  55 void SignatureIterator::expect(char c) {




  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/symbolTable.hpp"
  27 #include "classfile/systemDictionary.hpp"
  28 #include "memory/oopFactory.hpp"
  29 #include "memory/resourceArea.hpp"
  30 #include "memory/universe.hpp"
  31 #include "oops/instanceKlass.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "oops/symbol.hpp"
  34 #include "oops/typeArrayKlass.hpp"
  35 #include "oops/valueKlass.inline.hpp"
  36 #include "runtime/handles.inline.hpp"
  37 #include "runtime/signature.hpp"
  38 
  39 // Implementation of SignatureIterator
  40 
  41 // Signature syntax:
  42 //
  43 // Signature  = "(" {Parameter} ")" ReturnType.
  44 // Parameter  = FieldType.
  45 // ReturnType = FieldType | "V".
  46 // FieldType  = "B" | "C" | "D" | "F" | "I" | "J" | "S" | "Z" | "L" ClassName ";" | "Q" ValueClassName ";" | "[" FieldType.
  47 // ClassName  = string.
  48 
  49 
  50 SignatureIterator::SignatureIterator(Symbol* signature) {
  51   _signature       = signature;
  52   _parameter_index = 0;
  53 }
  54 
  55 void SignatureIterator::expect(char c) {


< prev index next >