mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
8041771: C1: remove unused IR::_locals_size
The unused IR::_locals_size is removed. Reviewed-by: kvn, roland
This commit is contained in:
parent
7e3f05c6f7
commit
856856524e
2 changed files with 1 additions and 5 deletions
|
@ -263,8 +263,7 @@ int CodeEmitInfo::interpreter_frame_size() const {
|
||||||
// Implementation of IR
|
// Implementation of IR
|
||||||
|
|
||||||
IR::IR(Compilation* compilation, ciMethod* method, int osr_bci) :
|
IR::IR(Compilation* compilation, ciMethod* method, int osr_bci) :
|
||||||
_locals_size(in_WordSize(-1))
|
_num_loops(0) {
|
||||||
, _num_loops(0) {
|
|
||||||
// setup IR fields
|
// setup IR fields
|
||||||
_compilation = compilation;
|
_compilation = compilation;
|
||||||
_top_scope = new IRScope(compilation, NULL, -1, method, osr_bci, true);
|
_top_scope = new IRScope(compilation, NULL, -1, method, osr_bci, true);
|
||||||
|
|
|
@ -293,7 +293,6 @@ class IR: public CompilationResourceObj {
|
||||||
private:
|
private:
|
||||||
Compilation* _compilation; // the current compilation
|
Compilation* _compilation; // the current compilation
|
||||||
IRScope* _top_scope; // the root of the scope hierarchy
|
IRScope* _top_scope; // the root of the scope hierarchy
|
||||||
WordSize _locals_size; // the space required for all locals
|
|
||||||
int _num_loops; // Total number of loops
|
int _num_loops; // Total number of loops
|
||||||
BlockList* _code; // the blocks in code generation order w/ use counts
|
BlockList* _code; // the blocks in code generation order w/ use counts
|
||||||
|
|
||||||
|
@ -310,8 +309,6 @@ class IR: public CompilationResourceObj {
|
||||||
BlockBegin* start() const { return top_scope()->start(); }
|
BlockBegin* start() const { return top_scope()->start(); }
|
||||||
BlockBegin* std_entry() const { return start()->end()->as_Base()->std_entry(); }
|
BlockBegin* std_entry() const { return start()->end()->as_Base()->std_entry(); }
|
||||||
BlockBegin* osr_entry() const { return start()->end()->as_Base()->osr_entry(); }
|
BlockBegin* osr_entry() const { return start()->end()->as_Base()->osr_entry(); }
|
||||||
WordSize locals_size() const { return _locals_size; }
|
|
||||||
int locals_size_in_words() const { return in_words(_locals_size); }
|
|
||||||
BlockList* code() const { return _code; }
|
BlockList* code() const { return _code; }
|
||||||
int num_loops() const { return _num_loops; }
|
int num_loops() const { return _num_loops; }
|
||||||
int max_stack() const { return top_scope()->max_stack(); } // expensive
|
int max_stack() const { return top_scope()->max_stack(); } // expensive
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue