Mercurial > hg > truffle
comparison src/share/vm/code/exceptionHandlerTable.hpp @ 4693:07bcee8b70a4
Simplify exception debug information and exception handler table creation based on Graal's simplified model of exception handler information (i.e. the dispatch is done in compiled code).
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 25 Feb 2012 00:40:34 +0100 |
parents | f95d63e2154a |
children | e522a00b91aa |
comparison
equal
deleted
inserted
replaced
4692:9d48ccb39292 | 4693:07bcee8b70a4 |
---|---|
86 private: | 86 private: |
87 HandlerTableEntry* _table; // the table | 87 HandlerTableEntry* _table; // the table |
88 int _length; // the current length of the table | 88 int _length; // the current length of the table |
89 int _size; // the number of allocated entries | 89 int _size; // the number of allocated entries |
90 ReallocMark _nesting; // assertion check for reallocations | 90 ReallocMark _nesting; // assertion check for reallocations |
91 | 91 |
92 public: | |
92 // add the entry & grow the table if needed | 93 // add the entry & grow the table if needed |
93 void add_entry(HandlerTableEntry entry); | 94 void add_entry(HandlerTableEntry entry); |
94 HandlerTableEntry* subtable_for(int catch_pco) const; | 95 HandlerTableEntry* subtable_for(int catch_pco) const; |
95 | 96 |
96 public: | |
97 // (compile-time) construction within compiler | 97 // (compile-time) construction within compiler |
98 ExceptionHandlerTable(int initial_size = 8); | 98 ExceptionHandlerTable(int initial_size = 8); |
99 | 99 |
100 // (run-time) construction from nmethod | 100 // (run-time) construction from nmethod |
101 ExceptionHandlerTable(const nmethod* nm); | 101 ExceptionHandlerTable(const nmethod* nm); |