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

Unified Diff: runtime/vm/object.h

Issue 219333011: Change how we provide value previews in the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix tests / gen js 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
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/instance_view.html ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 92ac4212358783f080c3b9bce9e549cae820e7a3..9fb353c40a68f5ef9e8d34cd86f413a2f3f3eb0f 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4042,14 +4042,6 @@ class Instance : public Object {
// error object if evaluating the expression fails.
RawObject* Evaluate(const String& expr) const;
- // Returns a string representation of this instance in a form
- // that is suitable for an end user.
- //
- // max_len is advisory, and the returned string may exceed this max
- // length.
- virtual const char* ToUserCString(intptr_t max_len = 40,
- intptr_t nesting = 0) const;
-
static intptr_t InstanceSize() {
return RoundedAllocationSize(sizeof(RawInstance));
}
@@ -5139,6 +5131,9 @@ class String : public Instance {
void ToUTF8(uint8_t* utf8_array, intptr_t array_len) const;
+ // Produces a quoted, escaped, (possibly) truncated string.
+ const char* ToUserCString(intptr_t max_len) const;
+
// Copies the string characters into the provided external array
// and morphs the string object into an external string object.
// The remaining unused part of the original string object is marked as
@@ -5149,10 +5144,6 @@ class String : public Instance {
void* peer,
Dart_PeerFinalizer cback) const;
- // Produces a quoted, escaped, (possibly) truncated string.
- const char* ToUserCString(intptr_t max_len = 40,
- intptr_t nesting = 0) const;
-
// Creates a new String object from a C string that is assumed to contain
// UTF-8 encoded characters and '\0' is considered a termination character.
// TODO(7123) - Rename this to FromCString(....).
@@ -5899,11 +5890,6 @@ class GrowableObjectArray : public Instance {
return Instance::null();
}
- // Produces a readable representation of this array, e.g. '[1,2,3]',
- // subject to length limits.
- const char* ToUserCString(intptr_t max_len = 40,
- intptr_t nesting = 0) const;
-
static intptr_t type_arguments_offset() {
return OFFSET_OF(RawGrowableObjectArray, type_arguments_);
}
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/instance_view.html ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698