Index: runtime/vm/raw_object_snapshot.cc |
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc |
index 17cf3372b85ca254369c4ffb8db68c15cff0ab05..194317f1ed6e52fd1ce29df2617368f7ee50f933 100644 |
--- a/runtime/vm/raw_object_snapshot.cc |
+++ b/runtime/vm/raw_object_snapshot.cc |
@@ -3513,15 +3513,15 @@ void RawStacktrace::WriteTo(SnapshotWriter* writer, |
} |
-RawJSRegExp* JSRegExp::ReadFrom(SnapshotReader* reader, |
- intptr_t object_id, |
- intptr_t tags, |
- Snapshot::Kind kind, |
- bool as_reference) { |
+RawRegExp* RegExp::ReadFrom(SnapshotReader* reader, |
+ intptr_t object_id, |
+ intptr_t tags, |
+ Snapshot::Kind kind, |
+ bool as_reference) { |
ASSERT(reader != NULL); |
- // Allocate JSRegExp object. |
- JSRegExp& regex = JSRegExp::ZoneHandle(reader->zone(), NEW_OBJECT(JSRegExp)); |
+ // Allocate RegExp object. |
+ RegExp& regex = RegExp::ZoneHandle(reader->zone(), NEW_OBJECT(RegExp)); |
reader->AddBackRef(object_id, ®ex, kIsDeserialized); |
// Read and Set all the other fields. |
@@ -3549,17 +3549,17 @@ RawJSRegExp* JSRegExp::ReadFrom(SnapshotReader* reader, |
} |
-void RawJSRegExp::WriteTo(SnapshotWriter* writer, |
- intptr_t object_id, |
- Snapshot::Kind kind, |
- bool as_reference) { |
+void RawRegExp::WriteTo(SnapshotWriter* writer, |
+ intptr_t object_id, |
+ Snapshot::Kind kind, |
+ bool as_reference) { |
ASSERT(writer != NULL); |
// Write out the serialization header value for this object. |
writer->WriteInlinedObjectHeader(object_id); |
// Write out the class and tags information. |
- writer->WriteIndexedObject(kJSRegExpCid); |
+ writer->WriteIndexedObject(kRegExpCid); |
writer->WriteTags(writer->GetObjectTags(this)); |
// Write out all the other fields. |