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

Unified Diff: runtime/bin/dbg_message.cc

Issue 217693002: - Make ports be less predictable. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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: runtime/bin/dbg_message.cc
===================================================================
--- runtime/bin/dbg_message.cc (revision 34525)
+++ runtime/bin/dbg_message.cc (working copy)
@@ -68,6 +68,16 @@
}
+int64_t MessageParser::GetInt64Param(const char* name) const {
+ const char* params = Params();
+ ASSERT(params != NULL);
+ dart::JSONReader r(params);
+ r.Seek(name);
+ ASSERT(r.Type() == dart::JSONReader::kInteger);
+ return strtoll(r.ValueChars(), NULL, 10);
+}
+
+
intptr_t MessageParser::GetOptIntParam(const char* name,
intptr_t default_val) const {
const char* params = Params();
« no previous file with comments | « runtime/bin/dbg_message.h ('k') | runtime/vm/message_handler.cc » ('j') | runtime/vm/port.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698