1 /* |
1 /* |
2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. |
2 * Copyright 1997-2010 Sun Microsystems, Inc. All Rights Reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
163 bool _print_assembly; // True if we should dump assembly code for this compilation |
163 bool _print_assembly; // True if we should dump assembly code for this compilation |
164 #ifndef PRODUCT |
164 #ifndef PRODUCT |
165 bool _trace_opto_output; |
165 bool _trace_opto_output; |
166 bool _parsed_irreducible_loop; // True if ciTypeFlow detected irreducible loops during parsing |
166 bool _parsed_irreducible_loop; // True if ciTypeFlow detected irreducible loops during parsing |
167 #endif |
167 #endif |
|
168 |
|
169 // JSR 292 |
|
170 bool _has_method_handle_invokes; // True if this method has MethodHandle invokes. |
168 |
171 |
169 // Compilation environment. |
172 // Compilation environment. |
170 Arena _comp_arena; // Arena with lifetime equivalent to Compile |
173 Arena _comp_arena; // Arena with lifetime equivalent to Compile |
171 ciEnv* _env; // CI interface |
174 ciEnv* _env; // CI interface |
172 CompileLog* _log; // from CompilerThread |
175 CompileLog* _log; // from CompilerThread |
334 bool trace_opto_output() const { return _trace_opto_output; } |
337 bool trace_opto_output() const { return _trace_opto_output; } |
335 bool parsed_irreducible_loop() const { return _parsed_irreducible_loop; } |
338 bool parsed_irreducible_loop() const { return _parsed_irreducible_loop; } |
336 void set_parsed_irreducible_loop(bool z) { _parsed_irreducible_loop = z; } |
339 void set_parsed_irreducible_loop(bool z) { _parsed_irreducible_loop = z; } |
337 #endif |
340 #endif |
338 |
341 |
|
342 // JSR 292 |
|
343 bool has_method_handle_invokes() const { return _has_method_handle_invokes; } |
|
344 void set_has_method_handle_invokes(bool z) { _has_method_handle_invokes = z; } |
|
345 |
339 void begin_method() { |
346 void begin_method() { |
340 #ifndef PRODUCT |
347 #ifndef PRODUCT |
341 if (_printer) _printer->begin_method(this); |
348 if (_printer) _printer->begin_method(this); |
342 #endif |
349 #endif |
343 } |
350 } |