530 static oop message(Handle throwable); |
530 static oop message(Handle throwable); |
531 static void set_message(oop throwable, oop value); |
531 static void set_message(oop throwable, oop value); |
532 static Symbol* detail_message(oop throwable); |
532 static Symbol* detail_message(oop throwable); |
533 static void print_stack_element(outputStream *st, Handle mirror, int method, |
533 static void print_stack_element(outputStream *st, Handle mirror, int method, |
534 int version, int bci, int cpref); |
534 int version, int bci, int cpref); |
535 static void print_stack_element(outputStream *st, methodHandle method, int bci); |
535 static void print_stack_element(outputStream *st, const methodHandle& method, int bci); |
536 static void print_stack_usage(Handle stream); |
536 static void print_stack_usage(Handle stream); |
537 |
537 |
538 // Allocate space for backtrace (created but stack trace not filled in) |
538 // Allocate space for backtrace (created but stack trace not filled in) |
539 static void allocate_backtrace(Handle throwable, TRAPS); |
539 static void allocate_backtrace(Handle throwable, TRAPS); |
540 // Fill in current stack trace for throwable with preallocated backtrace (no GC) |
540 // Fill in current stack trace for throwable with preallocated backtrace (no GC) |
541 static void fill_in_stack_trace_of_preallocated_backtrace(Handle throwable); |
541 static void fill_in_stack_trace_of_preallocated_backtrace(Handle throwable); |
542 // Fill in current stack trace, can cause GC |
542 // Fill in current stack trace, can cause GC |
543 static void fill_in_stack_trace(Handle throwable, methodHandle method, TRAPS); |
543 static void fill_in_stack_trace(Handle throwable, const methodHandle& method, TRAPS); |
544 static void fill_in_stack_trace(Handle throwable, methodHandle method = methodHandle()); |
544 static void fill_in_stack_trace(Handle throwable, const methodHandle& method = methodHandle()); |
545 // Programmatic access to stack trace |
545 // Programmatic access to stack trace |
546 static oop get_stack_trace_element(oop throwable, int index, TRAPS); |
546 static oop get_stack_trace_element(oop throwable, int index, TRAPS); |
547 static int get_stack_trace_depth(oop throwable, TRAPS); |
547 static int get_stack_trace_depth(oop throwable, TRAPS); |
548 // Printing |
548 // Printing |
549 static void print(oop throwable, outputStream* st); |
549 static void print(oop throwable, outputStream* st); |
1345 static void set_fileName(oop element, oop value); |
1345 static void set_fileName(oop element, oop value); |
1346 static void set_lineNumber(oop element, int value); |
1346 static void set_lineNumber(oop element, int value); |
1347 |
1347 |
1348 // Create an instance of StackTraceElement |
1348 // Create an instance of StackTraceElement |
1349 static oop create(Handle mirror, int method, int version, int bci, int cpref, TRAPS); |
1349 static oop create(Handle mirror, int method, int version, int bci, int cpref, TRAPS); |
1350 static oop create(methodHandle method, int bci, TRAPS); |
1350 static oop create(const methodHandle& method, int bci, TRAPS); |
1351 |
1351 |
1352 // Debugging |
1352 // Debugging |
1353 friend class JavaClasses; |
1353 friend class JavaClasses; |
1354 }; |
1354 }; |
1355 |
1355 |