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

Unified Diff: runtime/vm/class_table.h

Issue 10407071: Introduce remote objects in Debugger protocol (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « runtime/include/dart_debugger_api.h ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_table.h
===================================================================
--- runtime/vm/class_table.h (revision 7863)
+++ runtime/vm/class_table.h (working copy)
@@ -20,11 +20,14 @@
~ClassTable();
RawClass* At(intptr_t index) const {
- ASSERT(index > 0);
- ASSERT(index < top_);
+ ASSERT(IsValidIndex(index));
return table_[index];
}
+ intptr_t IsValidIndex(intptr_t index) const {
+ return (index > 0) && (index < top_);
+ }
+
void Register(const Class& cls);
void VisitObjectPointers(ObjectPointerVisitor* visitor);
« no previous file with comments | « runtime/include/dart_debugger_api.h ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698