Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: runtime/vm/raw_object.h

Issue 11883023: Collect debugging info for catch clauses (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 17032)
+++ runtime/vm/raw_object.h (working copy)
@@ -858,12 +858,24 @@
class RawExceptionHandlers : public RawObject {
+ public:
+ struct HandlerInfo {
+ int16_t try_index; // Try block index associated with handler.
+ int16_t outer_try_index; // Try block index of enclosing try block.
+ intptr_t handler_pc; // PC value of handler.
+ };
+ private:
RAW_HEAP_OBJECT_IMPLEMENTATION(ExceptionHandlers);
- RawSmi* length_; // Number of exception handler entries.
+ // Number of exception handler entries.
+ intptr_t length_;
- // Variable length data follows here.
- intptr_t data_[0];
+ // Array with [length_] entries. Each entry is an array of all handled
+ // exception types.
+ RawArray* handled_types_data_;
+
+ // Exception handler info of length [length_].
+ HandlerInfo data_[0];
};
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698