173 nonstatic_field(JavaThread, _threadObj, OopHandle) \
174 nonstatic_field(JavaThread, _anchor, JavaFrameAnchor) \
175 nonstatic_field(JavaThread, _vm_result, oop) \
176 nonstatic_field(JavaThread, _stack_overflow_state._stack_overflow_limit, address) \
177 volatile_nonstatic_field(JavaThread, _exception_oop, oop) \
178 volatile_nonstatic_field(JavaThread, _exception_pc, address) \
179 volatile_nonstatic_field(JavaThread, _is_method_handle_return, int) \
180 volatile_nonstatic_field(JavaThread, _doing_unsafe_access, bool) \
181 nonstatic_field(JavaThread, _osthread, OSThread*) \
182 nonstatic_field(JavaThread, _pending_deoptimization, int) \
183 nonstatic_field(JavaThread, _pending_failed_speculation, jlong) \
184 nonstatic_field(JavaThread, _pending_transfer_to_interpreter, bool) \
185 nonstatic_field(JavaThread, _jvmci_counters, jlong*) \
186 nonstatic_field(JavaThread, _jvmci_reserved0, jlong) \
187 nonstatic_field(JavaThread, _jvmci_reserved1, jlong) \
188 nonstatic_field(JavaThread, _jvmci_reserved_oop0, oop) \
189 nonstatic_field(JavaThread, _should_post_on_exceptions_flag, int) \
190 nonstatic_field(JavaThread, _jni_environment, JNIEnv) \
191 nonstatic_field(JavaThread, _poll_data, SafepointMechanism::ThreadData) \
192 nonstatic_field(JavaThread, _stack_overflow_state._reserved_stack_activation, address) \
193 \
194 static_field(java_lang_Class, _klass_offset, int) \
195 static_field(java_lang_Class, _array_klass_offset, int) \
196 \
197 nonstatic_field(InvocationCounter, _counter, unsigned int) \
198 \
199 nonstatic_field(Klass, _secondary_super_cache, Klass*) \
200 nonstatic_field(Klass, _secondary_supers, Array<Klass*>*) \
201 nonstatic_field(Klass, _super, Klass*) \
202 nonstatic_field(Klass, _super_check_offset, juint) \
203 volatile_nonstatic_field(Klass, _subklass, Klass*) \
204 nonstatic_field(Klass, _layout_helper, jint) \
205 nonstatic_field(Klass, _name, Symbol*) \
206 nonstatic_field(Klass, _prototype_header, markWord) \
207 volatile_nonstatic_field(Klass, _next_sibling, Klass*) \
208 nonstatic_field(Klass, _java_mirror, OopHandle) \
209 nonstatic_field(Klass, _modifier_flags, jint) \
210 nonstatic_field(Klass, _access_flags, AccessFlags) \
211 nonstatic_field(Klass, _class_loader_data, ClassLoaderData*) \
212 \
435 \
436 declare_constant(JVM_CONSTANT_Invalid) \
437 declare_constant(JVM_CONSTANT_InternalMin) \
438 declare_constant(JVM_CONSTANT_UnresolvedClass) \
439 declare_constant(JVM_CONSTANT_ClassIndex) \
440 declare_constant(JVM_CONSTANT_StringIndex) \
441 declare_constant(JVM_CONSTANT_UnresolvedClassInError) \
442 declare_constant(JVM_CONSTANT_MethodHandleInError) \
443 declare_constant(JVM_CONSTANT_MethodTypeInError) \
444 declare_constant(JVM_CONSTANT_DynamicInError) \
445 declare_constant(JVM_CONSTANT_InternalMax) \
446 \
447 declare_constant(ArrayData::array_len_off_set) \
448 declare_constant(ArrayData::array_start_off_set) \
449 \
450 declare_constant(BitData::exception_seen_flag) \
451 declare_constant(BitData::null_seen_flag) \
452 declare_constant(BranchData::not_taken_off_set) \
453 \
454 declare_constant_with_value("CardTable::dirty_card", CardTable::dirty_card_val()) \
455 \
456 declare_constant(CodeInstaller::VERIFIED_ENTRY) \
457 declare_constant(CodeInstaller::UNVERIFIED_ENTRY) \
458 declare_constant(CodeInstaller::OSR_ENTRY) \
459 declare_constant(CodeInstaller::EXCEPTION_HANDLER_ENTRY) \
460 declare_constant(CodeInstaller::DEOPT_HANDLER_ENTRY) \
461 declare_constant(CodeInstaller::FRAME_COMPLETE) \
462 declare_constant(CodeInstaller::INVOKEINTERFACE) \
463 declare_constant(CodeInstaller::INVOKEVIRTUAL) \
464 declare_constant(CodeInstaller::INVOKESTATIC) \
465 declare_constant(CodeInstaller::INVOKESPECIAL) \
466 declare_constant(CodeInstaller::INLINE_INVOKE) \
467 declare_constant(CodeInstaller::POLL_NEAR) \
468 declare_constant(CodeInstaller::POLL_RETURN_NEAR) \
469 declare_constant(CodeInstaller::POLL_FAR) \
470 declare_constant(CodeInstaller::POLL_RETURN_FAR) \
471 declare_constant(CodeInstaller::CARD_TABLE_SHIFT) \
472 declare_constant(CodeInstaller::CARD_TABLE_ADDRESS) \
473 declare_constant(CodeInstaller::HEAP_TOP_ADDRESS) \
474 declare_constant(CodeInstaller::HEAP_END_ADDRESS) \
563 declare_constant(Deoptimization::Reason_aliasing) \
564 declare_constant(Deoptimization::Reason_transfer_to_interpreter) \
565 declare_constant(Deoptimization::Reason_not_compiled_exception_handler) \
566 declare_constant(Deoptimization::Reason_unresolved) \
567 declare_constant(Deoptimization::Reason_jsr_mismatch) \
568 declare_constant(Deoptimization::Reason_TRAP_HISTORY_LENGTH) \
569 declare_constant(Deoptimization::_support_large_access_byte_array_virtualization) \
570 \
571 declare_constant(FieldInfo::access_flags_offset) \
572 declare_constant(FieldInfo::name_index_offset) \
573 declare_constant(FieldInfo::signature_index_offset) \
574 declare_constant(FieldInfo::initval_index_offset) \
575 declare_constant(FieldInfo::low_packed_offset) \
576 declare_constant(FieldInfo::high_packed_offset) \
577 declare_constant(FieldInfo::field_slots) \
578 \
579 declare_constant(InstanceKlass::linked) \
580 declare_constant(InstanceKlass::being_initialized) \
581 declare_constant(InstanceKlass::fully_initialized) \
582 \
583 /*********************************/ \
584 /* InstanceKlass _misc_flags */ \
585 /*********************************/ \
586 \
587 declare_constant(InstanceKlass::_misc_has_nonstatic_concrete_methods) \
588 declare_constant(InstanceKlass::_misc_declares_nonstatic_concrete_methods) \
589 \
590 declare_constant(JumpData::taken_off_set) \
591 declare_constant(JumpData::displacement_off_set) \
592 \
593 declare_preprocessor_constant("JVMCI::ok", JVMCI::ok) \
594 declare_preprocessor_constant("JVMCI::dependencies_failed", JVMCI::dependencies_failed) \
595 declare_preprocessor_constant("JVMCI::cache_full", JVMCI::cache_full) \
596 declare_preprocessor_constant("JVMCI::code_too_large", JVMCI::code_too_large) \
597 declare_preprocessor_constant("JVMCI::nmethod_reclaimed", JVMCI::nmethod_reclaimed) \
598 declare_preprocessor_constant("JVMCI::first_permanent_bailout", JVMCI::first_permanent_bailout) \
599 \
600 declare_constant(JVMCIRuntime::none) \
601 declare_constant(JVMCIRuntime::by_holder) \
602 declare_constant(JVMCIRuntime::by_full_signature) \
611 declare_constant(Klass::_lh_header_size_mask) \
612 declare_constant(Klass::_lh_array_tag_shift) \
613 declare_constant(Klass::_lh_array_tag_type_value) \
614 declare_constant(Klass::_lh_array_tag_obj_value) \
615 \
616 declare_constant(markWord::no_hash) \
617 \
618 declare_constant(Method::_caller_sensitive) \
619 declare_constant(Method::_force_inline) \
620 declare_constant(Method::_dont_inline) \
621 declare_constant(Method::_hidden) \
622 declare_constant(Method::_intrinsic_candidate) \
623 declare_constant(Method::_reserved_stack_access) \
624 \
625 declare_constant(Method::nonvirtual_vtable_index) \
626 declare_constant(Method::invalid_vtable_index) \
627 \
628 declare_constant(MultiBranchData::per_case_cell_count) \
629 \
630 declare_constant(ReceiverTypeData::nonprofiled_count_off_set) \
631 declare_constant(ReceiverTypeData::receiver_type_row_cell_count) \
632 declare_constant(ReceiverTypeData::receiver0_offset) \
633 declare_constant(ReceiverTypeData::count0_offset) \
634 \
635 declare_constant(vmIntrinsics::_invokeBasic) \
636 declare_constant(vmIntrinsics::_linkToVirtual) \
637 declare_constant(vmIntrinsics::_linkToStatic) \
638 declare_constant(vmIntrinsics::_linkToSpecial) \
639 declare_constant(vmIntrinsics::_linkToInterface) \
640 \
641 declare_constant(vmSymbols::FIRST_SID) \
642 declare_constant(vmSymbols::SID_LIMIT) \
643
644 #define VM_LONG_CONSTANTS(declare_constant, declare_preprocessor_constant) \
645 declare_constant(InvocationCounter::count_increment) \
646 declare_constant(InvocationCounter::count_shift) \
647 \
648 declare_constant(markWord::hash_shift) \
649 declare_constant(markWord::monitor_value) \
650 \
|
173 nonstatic_field(JavaThread, _threadObj, OopHandle) \
174 nonstatic_field(JavaThread, _anchor, JavaFrameAnchor) \
175 nonstatic_field(JavaThread, _vm_result, oop) \
176 nonstatic_field(JavaThread, _stack_overflow_state._stack_overflow_limit, address) \
177 volatile_nonstatic_field(JavaThread, _exception_oop, oop) \
178 volatile_nonstatic_field(JavaThread, _exception_pc, address) \
179 volatile_nonstatic_field(JavaThread, _is_method_handle_return, int) \
180 volatile_nonstatic_field(JavaThread, _doing_unsafe_access, bool) \
181 nonstatic_field(JavaThread, _osthread, OSThread*) \
182 nonstatic_field(JavaThread, _pending_deoptimization, int) \
183 nonstatic_field(JavaThread, _pending_failed_speculation, jlong) \
184 nonstatic_field(JavaThread, _pending_transfer_to_interpreter, bool) \
185 nonstatic_field(JavaThread, _jvmci_counters, jlong*) \
186 nonstatic_field(JavaThread, _jvmci_reserved0, jlong) \
187 nonstatic_field(JavaThread, _jvmci_reserved1, jlong) \
188 nonstatic_field(JavaThread, _jvmci_reserved_oop0, oop) \
189 nonstatic_field(JavaThread, _should_post_on_exceptions_flag, int) \
190 nonstatic_field(JavaThread, _jni_environment, JNIEnv) \
191 nonstatic_field(JavaThread, _poll_data, SafepointMechanism::ThreadData) \
192 nonstatic_field(JavaThread, _stack_overflow_state._reserved_stack_activation, address) \
193 nonstatic_field(JavaThread, _lock_stack, LockStack) \
194 nonstatic_field(LockStack, _top, uint32_t) \
195 \
196 static_field(java_lang_Class, _klass_offset, int) \
197 static_field(java_lang_Class, _array_klass_offset, int) \
198 \
199 nonstatic_field(InvocationCounter, _counter, unsigned int) \
200 \
201 nonstatic_field(Klass, _secondary_super_cache, Klass*) \
202 nonstatic_field(Klass, _secondary_supers, Array<Klass*>*) \
203 nonstatic_field(Klass, _super, Klass*) \
204 nonstatic_field(Klass, _super_check_offset, juint) \
205 volatile_nonstatic_field(Klass, _subklass, Klass*) \
206 nonstatic_field(Klass, _layout_helper, jint) \
207 nonstatic_field(Klass, _name, Symbol*) \
208 nonstatic_field(Klass, _prototype_header, markWord) \
209 volatile_nonstatic_field(Klass, _next_sibling, Klass*) \
210 nonstatic_field(Klass, _java_mirror, OopHandle) \
211 nonstatic_field(Klass, _modifier_flags, jint) \
212 nonstatic_field(Klass, _access_flags, AccessFlags) \
213 nonstatic_field(Klass, _class_loader_data, ClassLoaderData*) \
214 \
437 \
438 declare_constant(JVM_CONSTANT_Invalid) \
439 declare_constant(JVM_CONSTANT_InternalMin) \
440 declare_constant(JVM_CONSTANT_UnresolvedClass) \
441 declare_constant(JVM_CONSTANT_ClassIndex) \
442 declare_constant(JVM_CONSTANT_StringIndex) \
443 declare_constant(JVM_CONSTANT_UnresolvedClassInError) \
444 declare_constant(JVM_CONSTANT_MethodHandleInError) \
445 declare_constant(JVM_CONSTANT_MethodTypeInError) \
446 declare_constant(JVM_CONSTANT_DynamicInError) \
447 declare_constant(JVM_CONSTANT_InternalMax) \
448 \
449 declare_constant(ArrayData::array_len_off_set) \
450 declare_constant(ArrayData::array_start_off_set) \
451 \
452 declare_constant(BitData::exception_seen_flag) \
453 declare_constant(BitData::null_seen_flag) \
454 declare_constant(BranchData::not_taken_off_set) \
455 \
456 declare_constant_with_value("CardTable::dirty_card", CardTable::dirty_card_val()) \
457 declare_constant_with_value("LockStack::_end_offset", LockStack::end_offset()) \
458 \
459 declare_constant(CodeInstaller::VERIFIED_ENTRY) \
460 declare_constant(CodeInstaller::UNVERIFIED_ENTRY) \
461 declare_constant(CodeInstaller::OSR_ENTRY) \
462 declare_constant(CodeInstaller::EXCEPTION_HANDLER_ENTRY) \
463 declare_constant(CodeInstaller::DEOPT_HANDLER_ENTRY) \
464 declare_constant(CodeInstaller::FRAME_COMPLETE) \
465 declare_constant(CodeInstaller::INVOKEINTERFACE) \
466 declare_constant(CodeInstaller::INVOKEVIRTUAL) \
467 declare_constant(CodeInstaller::INVOKESTATIC) \
468 declare_constant(CodeInstaller::INVOKESPECIAL) \
469 declare_constant(CodeInstaller::INLINE_INVOKE) \
470 declare_constant(CodeInstaller::POLL_NEAR) \
471 declare_constant(CodeInstaller::POLL_RETURN_NEAR) \
472 declare_constant(CodeInstaller::POLL_FAR) \
473 declare_constant(CodeInstaller::POLL_RETURN_FAR) \
474 declare_constant(CodeInstaller::CARD_TABLE_SHIFT) \
475 declare_constant(CodeInstaller::CARD_TABLE_ADDRESS) \
476 declare_constant(CodeInstaller::HEAP_TOP_ADDRESS) \
477 declare_constant(CodeInstaller::HEAP_END_ADDRESS) \
566 declare_constant(Deoptimization::Reason_aliasing) \
567 declare_constant(Deoptimization::Reason_transfer_to_interpreter) \
568 declare_constant(Deoptimization::Reason_not_compiled_exception_handler) \
569 declare_constant(Deoptimization::Reason_unresolved) \
570 declare_constant(Deoptimization::Reason_jsr_mismatch) \
571 declare_constant(Deoptimization::Reason_TRAP_HISTORY_LENGTH) \
572 declare_constant(Deoptimization::_support_large_access_byte_array_virtualization) \
573 \
574 declare_constant(FieldInfo::access_flags_offset) \
575 declare_constant(FieldInfo::name_index_offset) \
576 declare_constant(FieldInfo::signature_index_offset) \
577 declare_constant(FieldInfo::initval_index_offset) \
578 declare_constant(FieldInfo::low_packed_offset) \
579 declare_constant(FieldInfo::high_packed_offset) \
580 declare_constant(FieldInfo::field_slots) \
581 \
582 declare_constant(InstanceKlass::linked) \
583 declare_constant(InstanceKlass::being_initialized) \
584 declare_constant(InstanceKlass::fully_initialized) \
585 \
586 declare_constant(LockingMode::LM_MONITOR) \
587 declare_constant(LockingMode::LM_LEGACY) \
588 declare_constant(LockingMode::LM_LIGHTWEIGHT) \
589 \
590 /*********************************/ \
591 /* InstanceKlass _misc_flags */ \
592 /*********************************/ \
593 \
594 declare_constant(InstanceKlass::_misc_has_nonstatic_concrete_methods) \
595 declare_constant(InstanceKlass::_misc_declares_nonstatic_concrete_methods) \
596 \
597 declare_constant(JumpData::taken_off_set) \
598 declare_constant(JumpData::displacement_off_set) \
599 \
600 declare_preprocessor_constant("JVMCI::ok", JVMCI::ok) \
601 declare_preprocessor_constant("JVMCI::dependencies_failed", JVMCI::dependencies_failed) \
602 declare_preprocessor_constant("JVMCI::cache_full", JVMCI::cache_full) \
603 declare_preprocessor_constant("JVMCI::code_too_large", JVMCI::code_too_large) \
604 declare_preprocessor_constant("JVMCI::nmethod_reclaimed", JVMCI::nmethod_reclaimed) \
605 declare_preprocessor_constant("JVMCI::first_permanent_bailout", JVMCI::first_permanent_bailout) \
606 \
607 declare_constant(JVMCIRuntime::none) \
608 declare_constant(JVMCIRuntime::by_holder) \
609 declare_constant(JVMCIRuntime::by_full_signature) \
618 declare_constant(Klass::_lh_header_size_mask) \
619 declare_constant(Klass::_lh_array_tag_shift) \
620 declare_constant(Klass::_lh_array_tag_type_value) \
621 declare_constant(Klass::_lh_array_tag_obj_value) \
622 \
623 declare_constant(markWord::no_hash) \
624 \
625 declare_constant(Method::_caller_sensitive) \
626 declare_constant(Method::_force_inline) \
627 declare_constant(Method::_dont_inline) \
628 declare_constant(Method::_hidden) \
629 declare_constant(Method::_intrinsic_candidate) \
630 declare_constant(Method::_reserved_stack_access) \
631 \
632 declare_constant(Method::nonvirtual_vtable_index) \
633 declare_constant(Method::invalid_vtable_index) \
634 \
635 declare_constant(MultiBranchData::per_case_cell_count) \
636 \
637 declare_constant(ReceiverTypeData::nonprofiled_count_off_set) \
638 \
639 declare_constant(ObjectMonitor::ANONYMOUS_OWNER) \
640 \
641 declare_constant(ReceiverTypeData::receiver_type_row_cell_count) \
642 declare_constant(ReceiverTypeData::receiver0_offset) \
643 declare_constant(ReceiverTypeData::count0_offset) \
644 \
645 declare_constant(vmIntrinsics::_invokeBasic) \
646 declare_constant(vmIntrinsics::_linkToVirtual) \
647 declare_constant(vmIntrinsics::_linkToStatic) \
648 declare_constant(vmIntrinsics::_linkToSpecial) \
649 declare_constant(vmIntrinsics::_linkToInterface) \
650 \
651 declare_constant(vmSymbols::FIRST_SID) \
652 declare_constant(vmSymbols::SID_LIMIT) \
653
654 #define VM_LONG_CONSTANTS(declare_constant, declare_preprocessor_constant) \
655 declare_constant(InvocationCounter::count_increment) \
656 declare_constant(InvocationCounter::count_shift) \
657 \
658 declare_constant(markWord::hash_shift) \
659 declare_constant(markWord::monitor_value) \
660 \
|