54 void check_no_unbound_labels();
55 #endif
56
57 FrameMap* frame_map() const { return _frame_map; }
58
59 void set_current_block(BlockBegin* b) { _current_block = b; }
60 BlockBegin* current_block() const { return _current_block; }
61
62 // non-safepoint debug info management
63 void flush_debug_info(int before_pc_offset) {
64 if (_pending_non_safepoint != NULL) {
65 if (_pending_non_safepoint_offset < before_pc_offset)
66 record_non_safepoint_debug_info();
67 _pending_non_safepoint = NULL;
68 }
69 }
70 void process_debug_info(LIR_Op* op);
71 void record_non_safepoint_debug_info();
72
73 // unified bailout support
74 void bailout(const char* msg) {
75 // reset the label in case it hits assertion in destructor.
76 _unwind_handler_entry.reset();
77 compilation()->bailout(msg);
78 }
79 bool bailed_out() const { return compilation()->bailed_out(); }
80
81 // code emission patterns and accessors
82 void check_codespace();
83 bool needs_icache(ciMethod* method) const;
84
85 // returns offset of icache check
86 int check_icache();
87
88 void jobject2reg(jobject o, Register reg);
89 void jobject2reg_with_patching(Register reg, CodeEmitInfo* info);
90
91 void metadata2reg(Metadata* o, Register reg);
92 void klass2reg_with_patching(Register reg, CodeEmitInfo* info);
93
94 void emit_stubs(CodeStubList* stub_list);
95
96 // addresses
97 Address as_Address(LIR_Address* addr);
98 Address as_Address_lo(LIR_Address* addr);
|
54 void check_no_unbound_labels();
55 #endif
56
57 FrameMap* frame_map() const { return _frame_map; }
58
59 void set_current_block(BlockBegin* b) { _current_block = b; }
60 BlockBegin* current_block() const { return _current_block; }
61
62 // non-safepoint debug info management
63 void flush_debug_info(int before_pc_offset) {
64 if (_pending_non_safepoint != NULL) {
65 if (_pending_non_safepoint_offset < before_pc_offset)
66 record_non_safepoint_debug_info();
67 _pending_non_safepoint = NULL;
68 }
69 }
70 void process_debug_info(LIR_Op* op);
71 void record_non_safepoint_debug_info();
72
73 // unified bailout support
74 void bailout(const char* msg) const { compilation()->bailout(msg); }
75 bool bailed_out() const { return compilation()->bailed_out(); }
76
77 // code emission patterns and accessors
78 void check_codespace();
79 bool needs_icache(ciMethod* method) const;
80
81 // returns offset of icache check
82 int check_icache();
83
84 void jobject2reg(jobject o, Register reg);
85 void jobject2reg_with_patching(Register reg, CodeEmitInfo* info);
86
87 void metadata2reg(Metadata* o, Register reg);
88 void klass2reg_with_patching(Register reg, CodeEmitInfo* info);
89
90 void emit_stubs(CodeStubList* stub_list);
91
92 // addresses
93 Address as_Address(LIR_Address* addr);
94 Address as_Address_lo(LIR_Address* addr);
|