< prev index next >

src/share/vm/utilities/constantTag.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2014, 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. --- 1,7 ---- /* ! * Copyright (c) 1997, 2017, 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.
*** 41,51 **** JVM_CONSTANT_ClassIndex = 101, // Temporary tag while constructing constant pool JVM_CONSTANT_StringIndex = 102, // Temporary tag while constructing constant pool JVM_CONSTANT_UnresolvedClassInError = 103, // Error tag due to resolution error JVM_CONSTANT_MethodHandleInError = 104, // Error tag due to resolution error JVM_CONSTANT_MethodTypeInError = 105, // Error tag due to resolution error ! JVM_CONSTANT_InternalMax = 105 // Last implementation tag }; class constantTag VALUE_OBJ_CLASS_SPEC { private: --- 41,52 ---- JVM_CONSTANT_ClassIndex = 101, // Temporary tag while constructing constant pool JVM_CONSTANT_StringIndex = 102, // Temporary tag while constructing constant pool JVM_CONSTANT_UnresolvedClassInError = 103, // Error tag due to resolution error JVM_CONSTANT_MethodHandleInError = 104, // Error tag due to resolution error JVM_CONSTANT_MethodTypeInError = 105, // Error tag due to resolution error ! JVM_CONSTANT_InvokeDynamicInError = 106, // Error tag due to resolution error ! JVM_CONSTANT_InternalMax = 106 // Last implementation tag }; class constantTag VALUE_OBJ_CLASS_SPEC { private:
*** 77,86 **** --- 78,90 ---- return _tag == JVM_CONSTANT_MethodHandleInError; } bool is_method_type_in_error() const { return _tag == JVM_CONSTANT_MethodTypeInError; } + bool is_invoke_dynamic_in_error() const { + return _tag == JVM_CONSTANT_InvokeDynamicInError; + } bool is_klass_index() const { return _tag == JVM_CONSTANT_ClassIndex; } bool is_string_index() const { return _tag == JVM_CONSTANT_StringIndex; } bool is_klass_reference() const { return is_klass_index() || is_unresolved_klass(); }
< prev index next >