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

Unified Diff: runtime/vm/object.h

Issue 25344002: Fix crashing bug due to the fact that external one byte strings cannot be escaped (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ptal Created 7 years, 3 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 | « no previous file | 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 a1272a711c91598a24e1fdb0c6143e5b143a592e..a5a740108070f6d54b39b609d92e76d2d6b2b8dc 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4943,6 +4943,7 @@ class OneByteString : public AllStatic {
friend class Class;
friend class String;
+ friend class ExternalOneByteString;
friend class SnapshotReader;
};
@@ -5064,6 +5065,8 @@ class ExternalOneByteString : public AllStatic {
return reinterpret_cast<RawExternalOneByteString*>(Object::null());
}
+ static RawOneByteString* EscapeSpecialCharacters(const String& str);
+
static const ClassId kClassId = kExternalOneByteStringCid;
private:
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698