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

Unified Diff: runtime/vm/raw_object_snapshot.cc

Issue 1071713003: - Remove JSCRE from the runtime. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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/vm/raw_object.cc ('k') | runtime/vm/regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object_snapshot.cc
===================================================================
--- runtime/vm/raw_object_snapshot.cc (revision 44981)
+++ runtime/vm/raw_object_snapshot.cc (working copy)
@@ -2751,12 +2751,9 @@
ASSERT(reader != NULL);
ASSERT(kind == Snapshot::kMessage);
- // Read the length so that we can determine instance size to allocate.
- intptr_t len = reader->ReadSmiValue();
-
// Allocate JSRegExp object.
JSRegExp& regex = JSRegExp::ZoneHandle(
- reader->zone(), JSRegExp::New(len, HEAP_SPACE(kind)));
+ reader->zone(), JSRegExp::New(HEAP_SPACE(kind)));
reader->AddBackRef(object_id, &regex, kIsDeserialized);
// Set the object tags.
@@ -2770,8 +2767,7 @@
regex.StoreNonPointer(&regex.raw_ptr()->type_flags_,
reader->Read<int8_t>());
- // TODO(5411462): Need to implement a way of recompiling the regex.
-
+ // TODO(18854): Need to implement a way of recreating the irrexp functions.
Vyacheslav Egorov (Google) 2015/04/08 23:52:32 I think they can just be written out - lazy compil
Ivan Posva 2015/04/08 23:58:49 Discussing with Siva we would prefer not to send t
return regex.raw();
}
@@ -2789,15 +2785,10 @@
writer->WriteIndexedObject(kJSRegExpCid);
writer->WriteTags(writer->GetObjectTags(this));
- // Write out the data length field.
- writer->Write<RawObject*>(ptr()->data_length_);
-
// Write out all the other fields.
writer->Write<RawObject*>(ptr()->num_bracket_expressions_);
writer->WriteObjectImpl(ptr()->pattern_);
writer->Write<int8_t>(ptr()->type_flags_);
-
- // Do not write out the data part which is native.
}
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698