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

📄 messages.h

📁 This is a java virtual machine implement in c
💻 H
📖 第 1 页 / 共 2 页
字号:
/*0001*//*
/*0002./ * Copyright (c) 2001 Sun Microsystems, Inc. All Rights Reserved.
/*0003./ *
/*0004./ * This software is the confidential and proprietary information of Sun
/*0005./ * Microsystems, Inc. ("Confidential Information").  You shall not
/*0006./ * disclose such Confidential Information and shall use it only in
/*0007./ * accordance with the terms of the license agreement you entered into
/*0008./ * with Sun.
/*0009./ *
/*0010./ * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
/*0011./ * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
/*0012./ * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
/*0013./ * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
/*0014./ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
/*0015./ * THIS SOFTWARE OR ITS DERIVATIVES.
/*0016./ *
/*0017./ */
/*0018*/
/*0019*//*=========================================================================
/*0020./ * SYSTEM:    KVM
/*0021./ * SUBSYSTEM: Error messages
/*0022./ * FILE:      messages.h
/*0023./ * OVERVIEW:  This file separates the error message strings
/*0024./ *            and other user-level C strings from the rest 
/*0025./ *            of the virtual machine.
/*0026./ * AUTHOR:    Antero Taivalsaari
/*0027./ *            Frank Yellin
/*0028./ *=======================================================================*/
/*0029*/
/*0030*//*=========================================================================
/*0031./ * Include files
/*0032./ *=======================================================================*/
/*0033*/
/*0034*//*=========================================================================
/*0035./ * Definitions and declarations
/*0036./ *=======================================================================*/
/*0037*/
/*0038*//*=========================================================================
/*0039./ * Messages in VmCommon
/*0040./ *=======================================================================*/
/*0041*/
/*0042*//* Messages in events.h */
/*0043*/
/*0044*/#define KVM_MSG_INVALID_TIMESLICE \
/*0045*/        "Fatal: Timeslice < 0"
/*0046*/
/*0047*/
/*0048*//* Messages in StartJVM.c */
/*0049*/
/*0050*/#define KVM_MSG_CLASS_NOT_FOUND_1STRPARAM \
/*0051*/        "Class %s not found"
/*0052*/
/*0053*/#define KVM_MSG_MUST_PROVIDE_CLASS_NAME \
/*0054*/        "Must provide class name"
/*0055*/
/*0056*/
/*0057*//* Messages in bytecodes.c */
/*0058*/
/*0059*/#define KVM_MSG_EXPECTED_INITIALIZED_CLASS \
/*0060*/        "Expected an initialized class"
/*0061*/
/*0062*/#define KVM_MSG_BAD_CLASS_CANNOT_INSTANTIATE \
/*0063*/        "Cannot instantiate bad class"
/*0064*/
/*0065*/#define KVM_MSG_ILLEGAL_WIDE_BYTECODE_EXTENSION \
/*0066*/        "Illegal WIDE bytecode extension"
/*0067*/
/*0068*/#define KVM_MSG_BREAKPOINT \
/*0069*/        "Breakpoint\n"
/*0070*/
/*0071*/#define KVM_MSG_NO_SUCH_METHOD_2STRPARAMS \
/*0072*/        "No such method %s.%s"
/*0073*/
/*0074*/
/*0075*//* Messages in class.c */
/*0076*/
/*0077*/#define KVM_MSG_CLASS_EXTENDS_FINAL_CLASS_2STRPARAMS \
/*0078*/        "Class %s extends final class %s"
/*0079*/
/*0080*/#define KVM_MSG_INTERFACE_DOES_NOT_EXTEND_JAVALANGOBJECT_1STRPARAM \
/*0081*/        "Interface %s does not extend java.lang.Object"
/*0082*/
/*0083*/#define KVM_MSG_ERROR_VERIFYING_CLASS_1STRPARAM \
/*0084*/        "Error verifying class %s"
/*0085*/
/*0086*/#define KVM_MSG_BAD_CLASS_STATE \
/*0087*/        "Bad class state"
/*0088*/
/*0089*/#define KVM_MSG_STATIC_INITIALIZER_FAILED \
/*0090*/        "Static class initializer failed"
/*0091*/
/*0092*/#define KVM_MSG_UNABLE_TO_INITIALIZE_SYSTEM_CLASSES \
/*0093*/        "Unable to initialize system classes"
/*0094*/
/*0095*/#define KVM_MSG_BAD_CALL_TO_GETRAWCLASS \
/*0096*/        "Bad call to getRawClass"
/*0097*/
/*0098*/#define KVM_MSG_BAD_CALL_TO_GETCLASS \
/*0099*/        "Bad call to getClass"
/*0100*/
/*0101*/#define KVM_MSG_BAD_SIGNATURE \
/*0102*/        "Bad signature found"
/*0103*/
/*0104*/#define KVM_MSG_STRINGBUFFER_OVERFLOW \
/*0105*/        "Buffer overflow in getStringContentsSafely()"
/*0106*/
/*0107*/
/*0108*//* Messages in collector.c and collectorDebug.c */
/*0109*/
/*0110*/#define KVM_MSG_NOT_ENOUGH_MEMORY \
/*0111*/        "Not enough memory to initialize the system"
/*0112*/
/*0113*/#define KVM_MSG_CALLED_ALLOCATOR_WHEN_FORBIDDEN \
/*0114*/        "Called memory allocator when forbidden"
/*0115*/
/*0116*/#define KVM_MSG_UNABLE_TO_EXPAND_PERMANENT_MEMORY \
/*0117*/        "Unable to expand permanent memory"
/*0118*/
/*0119*/#define KVM_MSG_BAD_DYNAMIC_HEAP_OBJECTS_FOUND \
/*0120*/        "Bad dynamic heap objects found"
/*0121*/
/*0122*/#define KVM_MSG_BAD_STACK_INFORMATION \
/*0123*/        "Bad stack information found"
/*0124*/
/*0125*/#define KVM_MSG_CONFLICTING_STACK_SIZES \
/*0126*/        "Conflicting stack sizes"
/*0127*/
/*0128*/#define KVM_MSG_SWEEPING_SCAN_WENT_PAST_HEAP_TOP \
/*0129*/        "Sweeping scan went past heap top"
/*0130*/
/*0131*/#define KVM_MSG_BREAK_TABLE_CORRUPTED \
/*0132*/        "GC break table corrupted"
/*0133*/
/*0134*/#define KVM_MSG_HEAP_ADDRESS_NOT_FOUR_BYTE_ALIGNED \
/*0135*/        "Heap address is not four-byte aligned"
/*0136*/
/*0137*/#define KVM_MSG_UNEXPECTED_STATICBIT \
/*0138*/        "Unexpected STATICBIT found"
/*0139*/
/*0140*/#define KVM_MSG_BAD_GC_TAG_VALUE \
/*0141*/        "Bad GC tag value found"
/*0142*/
/*0143*/#define KVM_MSG_INVALID_HEAP_POINTER \
/*0144*/        "Invalid heap pointer found"
/*0145*/
/*0146*/
/*0147*//* Additional messages in collectorDebug.c */
/*0148*/
/*0149*/#define KVM_MSG_POINTER_IN_OLD_SPACE \
/*0150*/        "Fatal: Pointer in old space"
/*0151*/
/*0152*/#define KVM_MSG_HEAP_CORRUPTED \
/*0153*/        "Heap corrupted"
/*0154*/
/*0155*/
/*0156*//* Messages in execute.c */
/*0157*/
/*0158*/#define KVM_MSG_ABSTRACT_METHOD_INVOKED \
/*0159*/        "Abstract method invoked"
/*0160*/
/*0161*/#define KVM_MSG_ILLEGAL_BYTECODE_1LONGPARAM \
/*0162*/        "Illegal bytecode %ld"
/*0163*/
/*0164*/#define KVM_MSG_SLOWINTERPRETER_STOPPED \
/*0165*/        "Stopped in SlowInterpret()"
/*0166*/
/*0167*/#define KVM_MSG_INTERPRETER_STOPPED \
/*0168*/        "Stopped in Interpret()"
/*0169*/
/*0170*/#define KVM_MSG_BYTECODE_NOT_IMPLEMENTED_1LONGPARAM \
/*0171*/        "Bytecode %ld not implemented"
/*0172*/
/*0173*/
/*0174*//* Messages in fields.c */
/*0175*/
/*0176*/#define KVM_MSG_BAD_METHOD_SIGNATURE \
/*0177*/        "Bad method signature"
/*0178*/
/*0179*/#define KVM_MSG_BAD_CALL_TO_GETNAMEANDTYPEKEY \
/*0180*/        "Bad call to getNameAndTypeKey()"
/*0181*/
/*0182*/
/*0183*//* Messages in frame.c */
/*0184*/
/*0185*/#define KVM_MSG_ILLEGAL_EXCEPTION_NAME_1STRPARAM \
/*0186*/        "Illegal exception name %s"
/*0187*/
/*0188*/
/*0189*//* Messages in garbage.c */
/*0190*/
/*0191*/#define KVM_MSG_TEMPORARY_ROOT_OVERFLOW \
/*0192*/        "Temporary root overflow"
/*0193*/
/*0194*/#define KVM_MSG_GLOBAL_ROOT_OVERFLOW \
/*0195*/        "Global root overflow"
/*0196*/
/*0197*/#define KVM_MSG_OUT_OF_HEAP_MEMORY \
/*0198*/        "Out of heap memory!"
/*0199*/
/*0200*/
/*0201*//* Messages in hashtable.c */
/*0202*/
/*0203*/#define KVM_MSG_BAD_CALL_TO_GETUSTRING \
/*0204*/        "Bad call to getUString()"
/*0205*/
/*0206*/#define KVM_MSG_TOO_MANY_NAMETABLE_KEYS \
/*0207*/        "Too many entries in name table"
/*0208*/
/*0209*/#define KVM_MSG_TOO_MANY_CLASS_KEYS \
/*0210*/        "Too many entries in class table"
/*0211*/
/*0212*/#define KVM_MSG_CREATING_CLASS_IN_SYSTEM_PACKAGE \
/*0213*/        "Cannot create class in system package"
/*0214*/
/*0215*/
/*0216*//* Messages in interpret.c */
/*0217*/
/*0218*/#define KVM_MSG_STACK_POINTER_CORRUPTED \
/*0219*/        "Stack pointer corrupted"
/*0220*/
/*0221*/#define KVM_MSG_FRAME_POINTER_CORRUPTED \
/*0222*/        "Frame pointer corrupted"
/*0223*/
/*0224*/#define KVM_MSG_LOCALS_POINTER_CORRUPTED \
/*0225*/        "Locals pointer corrupted"
/*0226*/
/*0227*/#define KVM_MSG_ACTIVE_THREAD_COUNT_CORRUPTED \
/*0228*/        "Active thread count corrupted"
/*0229*/
/*0230*/#define KVM_MSG_NO_SUCH_FIELD_2STRPARAMS \
/*0231*/        "No such field %s.%s"
/*0232*/
/*0233*/#define KVM_MSG_NO_SUCH_METHOD_2STRPARAMS \
/*0234*/        "No such method %s.%s"
/*0235*/
/*0236*/
/*0237*//* Messages in loader.c */
/*0238*/
/*0239*/#define KVM_MSG_BAD_UTF8_INDEX \
/*0240*/        "Bad Utf8 index"
/*0241*/
/*0242*/#define KVM_MSG_BAD_UTF8_STRING \
/*0243*/        "Bad Utf8 string"
/*0244*/
/*0245*/#define KVM_MSG_BAD_NAME \
/*0246*/        "Bad class, field or method name"
/*0247*/
/*0248*/#define KVM_MSG_BAD_CLASS_ACCESS_FLAGS \
/*0249*/        "Bad class access flags"
/*0250*/
/*0251*/#define KVM_MSG_BAD_FIELD_ACCESS_FLAGS \
/*0252*/        "Bad field access flags"
/*0253*/
/*0254*/#define KVM_MSG_BAD_FIELD_SIGNATURE \
/*0255*/        "Bad field signature"
/*0256*/
/*0257*/#define KVM_MSG_BAD_METHOD_ACCESS_FLAGS \
/*0258*/        "Bad method access flags"
/*0259*/
/*0260*/#define KVM_MSG_BAD_CONSTANT_INDEX \
/*0261*/        "Bad constant index"
/*0262*/
/*0263*/#define KVM_MSG_NOT_A_JAVA_CLASSFILE \
/*0264*/        "Class loading failed: Not a Java class file!"
/*0265*/
/*0266*/#define KVM_MSG_BAD_64BIT_CONSTANT \
/*0267*/        "Bad 64-bit constant"
/*0268*/
/*0269*/#define KVM_MSG_INVALID_CONSTANT_POOL_ENTRY \
/*0270*/        "Invalid constant pool entry"
/*0271*/
/*0272*/#define KVM_MSG_BAD_FIELD_OR_METHOD_REFERENCE \
/*0273*/        "Bad field or method reference"
/*0274*/
/*0275*/#define KVM_MSG_BAD_NAME_OR_TYPE_REFERENCE \
/*0276*/        "Bad name/type reference"
/*0277*/
/*0278*/#define KVM_MSG_BAD_SUPERCLASS \
/*0279*/        "Bad superclass"
/*0280*/
/*0281*/#define KVM_MSG_BAD_CONSTANTVALUE_LENGTH \
/*0282*/        "Bad ConstantValue length"
/*0283*/
/*0284*/#define KVM_MSG_DUPLICATE_CONSTANTVALUE_ATTRIBUTE \
/*0285*/        "Duplicate ConstantValue attribute"
/*0286*/
/*0287*/#define KVM_MSG_BAD_CONSTANT_INDEX \
/*0288*/        "Bad constant index"
/*0289*/
/*0290*/#define KVM_MSG_DUPLICATE_FIELD_FOUND \
/*0291*/        "Duplicate field found"
/*0292*/
/*0293*/#define KVM_MSG_BAD_EXCEPTION_HANDLER_FOUND \
/*0294*/        "Bad exception handler found"
/*0295*/
/*0296*/#define KVM_MSG_BAD_NEWOBJECT \
/*0297*/        "Bad NewObject"
/*0298*/
/*0299*/#define KVM_MSG_BAD_STACKMAP \
/*0300*/        "Bad stack map"
/*0301*/
/*0302*/#define KVM_MSG_DUPLICATE_STACKMAP_ATTRIBUTE \
/*0303*/        "Duplicate StackMap attribute"
/*0304*/
/*0305*/#define KVM_MSG_METHOD_LONGER_THAN_32KB \
/*0306*/        "Maximum byte code length (32kB) exceeded"
/*0307*/
/*0308*/#define KVM_MSG_TOO_MANY_LOCALS_AND_STACK \
/*0309*/        "Maximum size of locals and stack exceeded"
/*0310*/
/*0311*/#define KVM_MSG_BAD_ATTRIBUTE_SIZE \
/*0312*/        "Bad attribute size"
/*0313*/
/*0314*/#define KVM_MSG_DUPLICATE_CODE_ATTRIBUTE \
/*0315*/        "Duplicate Code attribute"
/*0316*/
/*0317*/#define KVM_MSG_BAD_CODE_ATTRIBUTE_LENGTH \
/*0318*/        "Bad Code attribute length"
/*0319*/
/*0320*/#define KVM_MSG_DUPLICATE_EXCEPTION_TABLE \
/*0321*/        "Duplicate exception table"
/*0322*/
/*0323*/#define KVM_MSG_BAD_EXCEPTION_ATTRIBUTE \
/*0324*/        "Bad exception attribute"
/*0325*/
/*0326*/#define KVM_MSG_MISSING_CODE_ATTRIBUTE \
/*0327*/        "Missing code attribute"
/*0328*/
/*0329*/#define KVM_MSG_TOO_MANY_METHOD_ARGUMENTS \
/*0330*/        "More than 255 method arguments"
/*0331*/
/*0332*/#define KVM_MSG_BAD_FRAME_SIZE \

⌨️ 快捷键说明

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