@@ -92,7 +92,6 @@ class CodeSection {
92
92
relocInfo* _locs_limit; // first byte after relocation information buf
93
93
address _locs_point; // last relocated position (grows upward)
94
94
bool _locs_own; // did I allocate the locs myself?
95
- bool _frozen; // no more expansion of this section
96
95
bool _scratch_emit; // Buffer is used for scratch emit, don't relocate.
97
96
char _index; // my section number (SECT_INST, etc.)
98
97
CodeBuffer* _outer; // enclosing CodeBuffer
@@ -109,7 +108,6 @@ class CodeSection {
109
108
_locs_limit = NULL ;
110
109
_locs_point = NULL ;
111
110
_locs_own = false ;
112
- _frozen = false ;
113
111
_scratch_emit = false ;
114
112
debug_only (_index = (char )-1 );
115
113
debug_only (_outer = (CodeBuffer*)badAddress);
@@ -161,12 +159,10 @@ class CodeSection {
161
159
address locs_point () const { return _locs_point; }
162
160
csize_t locs_point_off () const { return (csize_t )(_locs_point - _start); }
163
161
csize_t locs_capacity () const { return (csize_t )(_locs_limit - _locs_start); }
164
- csize_t locs_remaining ()const { return (csize_t )(_locs_limit - _locs_end); }
165
162
166
163
int index () const { return _index; }
167
164
bool is_allocated () const { return _start != NULL ; }
168
165
bool is_empty () const { return _start == _end; }
169
- bool is_frozen () const { return _frozen; }
170
166
bool has_locs () const { return _locs_end != NULL ; }
171
167
172
168
// Mark scratch buffer.
@@ -184,8 +180,6 @@ class CodeSection {
184
180
void set_end (address pc) { assert (allocates2 (pc), " not in CodeBuffer memory: " INTPTR_FORMAT " <= " INTPTR_FORMAT " <= " INTPTR_FORMAT, p2i (_start), p2i (pc), p2i (_limit)); _end = pc; }
185
181
void set_mark (address pc) { assert (contains2 (pc), " not in codeBuffer" );
186
182
_mark = pc; }
187
- void set_mark_off (int offset) { assert (contains2 (offset+_start)," not in codeBuffer" );
188
- _mark = offset + _start; }
189
183
void set_mark () { _mark = _end; }
190
184
void clear_mark () { _mark = NULL ; }
191
185
@@ -259,10 +253,6 @@ class CodeSection {
259
253
260
254
csize_t align_at_start (csize_t off) const { return (csize_t ) align_up (off, alignment ()); }
261
255
262
- // Mark a section frozen. Assign its remaining space to
263
- // the following section. It will never expand after this point.
264
- inline void freeze (); // { _outer->freeze_section(this); }
265
-
266
256
// Ensure there's enough space left in the current section.
267
257
// Return true if there was an expansion.
268
258
bool maybe_expand_to_ensure_remaining (csize_t amount);
@@ -463,8 +453,6 @@ class CodeBuffer: public StackObj {
463
453
464
454
void initialize_section_size (CodeSection* cs, csize_t size);
465
455
466
- void freeze_section (CodeSection* cs);
467
-
468
456
// helper for CodeBuffer::expand()
469
457
void take_over_code_from (CodeBuffer* cs);
470
458
@@ -577,10 +565,8 @@ class CodeBuffer: public StackObj {
577
565
address insts_begin () const { return _insts.start (); }
578
566
address insts_end () const { return _insts.end (); }
579
567
void set_insts_end (address end) { _insts.set_end (end); }
580
- address insts_limit () const { return _insts.limit (); }
581
568
address insts_mark () const { return _insts.mark (); }
582
569
void set_insts_mark () { _insts.set_mark (); }
583
- void clear_insts_mark () { _insts.clear_mark (); }
584
570
585
571
// is there anything in the buffer other than the current section?
586
572
bool is_pure () const { return insts_size () == total_content_size (); }
@@ -652,12 +638,6 @@ class CodeBuffer: public StackObj {
652
638
_code_strings.free (); // sets _strings Null as a side-effect.
653
639
}
654
640
}
655
-
656
- // Print the comment associated with offset on stream, if there is one.
657
- virtual void print_block_comment (outputStream* stream, address block_begin) {
658
- intptr_t offset = (intptr_t )(block_begin - _total_start); // I assume total_start is not correct for all code sections.
659
- _code_strings.print_block_comment (stream, offset);
660
- }
661
641
#endif
662
642
663
643
// Code generation
@@ -683,9 +663,6 @@ class CodeBuffer: public StackObj {
683
663
}
684
664
}
685
665
686
- // Transform an address from the code in this code buffer to a specified code buffer
687
- address transform_address (const CodeBuffer &cb, address addr) const ;
688
-
689
666
void block_comment (intptr_t offset, const char * comment) PRODUCT_RETURN;
690
667
const char * code_string (const char * str) PRODUCT_RETURN_(return NULL ;);
691
668
@@ -714,11 +691,6 @@ class CodeBuffer: public StackObj {
714
691
715
692
};
716
693
717
-
718
- inline void CodeSection::freeze () {
719
- _outer->freeze_section (this );
720
- }
721
-
722
694
inline bool CodeSection::maybe_expand_to_ensure_remaining (csize_t amount) {
723
695
if (remaining () < amount) { _outer->expand (this , amount); return true ; }
724
696
return false ;
0 commit comments