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

Unified Diff: vm/dart_api_impl.cc

Issue 9965042: - Add a class index to the classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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: vm/dart_api_impl.cc
===================================================================
--- vm/dart_api_impl.cc (revision 5947)
+++ vm/dart_api_impl.cc (working copy)
@@ -14,6 +14,7 @@
#include "vm/dart_entry.h"
#include "vm/debuginfo.h"
#include "vm/exceptions.h"
+#include "vm/flags.h"
#include "vm/growable_array.h"
#include "vm/message.h"
#include "vm/native_entry.h"
@@ -28,6 +29,8 @@
namespace dart {
+DECLARE_FLAG(bool, print_class_table);
+
ThreadLocalKey Api::api_native_key_ = Thread::kUnsetThreadLocalKey;
const char* CanonicalFunction(const char* func) {
@@ -770,6 +773,9 @@
return Api::NewLocalHandle(obj);
}
ASSERT(obj.IsNull());
+ if (FLAG_print_class_table) {
+ isolate->class_table()->Print();
+ }
return Api::Success();
}

Powered by Google App Engine
This is Rietveld 408576698