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

Unified Diff: runtime/vm/raw_object.cc

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
« runtime/vm/parser.cc ('K') | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.cc
===================================================================
--- runtime/vm/raw_object.cc (revision 17032)
+++ runtime/vm/raw_object.cc (working copy)
@@ -226,7 +226,7 @@
case kExceptionHandlersCid: {
const RawExceptionHandlers* raw_handlers =
reinterpret_cast<const RawExceptionHandlers*>(this);
- intptr_t num_handlers = Smi::Value(raw_handlers->ptr()->length_);
+ intptr_t num_handlers = raw_handlers->ptr()->length_;
instance_size = ExceptionHandlers::InstanceSize(num_handlers);
break;
}
@@ -523,9 +523,10 @@
intptr_t RawExceptionHandlers::VisitExceptionHandlersPointers(
RawExceptionHandlers* raw_obj, ObjectPointerVisitor* visitor) {
RawExceptionHandlers* obj = raw_obj->ptr();
- intptr_t length = Smi::Value(obj->length_);
- visitor->VisitPointer(reinterpret_cast<RawObject**>(&obj->length_));
- return ExceptionHandlers::InstanceSize(length);
+ intptr_t len = obj->length_;
+ visitor->VisitPointer(
+ reinterpret_cast<RawObject**>(&obj->handled_types_data_));
+ return ExceptionHandlers::InstanceSize(len);
}
« runtime/vm/parser.cc ('K') | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698