1 /* |
1 /* |
2 * Copyright 2005-2009 Sun Microsystems, Inc. All Rights Reserved. |
2 * Copyright 2005-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. |
2812 return new IRScopeDebugInfo(cur_scope, cur_bci, locals, expressions, monitors, caller_debug_info); |
2812 return new IRScopeDebugInfo(cur_scope, cur_bci, locals, expressions, monitors, caller_debug_info); |
2813 } |
2813 } |
2814 |
2814 |
2815 |
2815 |
2816 void LinearScan::compute_debug_info(CodeEmitInfo* info, int op_id) { |
2816 void LinearScan::compute_debug_info(CodeEmitInfo* info, int op_id) { |
2817 if (!compilation()->needs_debug_information()) { |
|
2818 return; |
|
2819 } |
|
2820 TRACE_LINEAR_SCAN(3, tty->print_cr("creating debug information at op_id %d", op_id)); |
2817 TRACE_LINEAR_SCAN(3, tty->print_cr("creating debug information at op_id %d", op_id)); |
2821 |
2818 |
2822 IRScope* innermost_scope = info->scope(); |
2819 IRScope* innermost_scope = info->scope(); |
2823 ValueStack* innermost_state = info->stack(); |
2820 ValueStack* innermost_state = info->stack(); |
2824 |
2821 |