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

Side by Side Diff: runtime/vm/raw_object_snapshot.cc

Issue 9395016: First part of new ICData infrastructure: use a wrapper object instead of an array. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/bigint_operations.h" 5 #include "vm/bigint_operations.h"
6 #include "vm/object.h" 6 #include "vm/object.h"
7 #include "vm/object_store.h" 7 #include "vm/object_store.h"
8 #include "vm/snapshot.h" 8 #include "vm/snapshot.h"
9 #include "vm/visitor.h" 9 #include "vm/visitor.h"
10 10
(...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1817 regex.raw_ptr()->type_ = reader->ReadIntptrValue(); 1817 regex.raw_ptr()->type_ = reader->ReadIntptrValue();
1818 regex.raw_ptr()->flags_ = reader->ReadIntptrValue(); 1818 regex.raw_ptr()->flags_ = reader->ReadIntptrValue();
1819 1819
1820 // TODO(5411462): Need to implement a way of recompiling the regex. 1820 // TODO(5411462): Need to implement a way of recompiling the regex.
1821 1821
1822 return regex.raw(); 1822 return regex.raw();
1823 } 1823 }
1824 1824
1825 1825
1826 void RawJSRegExp::WriteTo(SnapshotWriter* writer, 1826 void RawJSRegExp::WriteTo(SnapshotWriter* writer,
1827 intptr_t object_id, 1827 intptr_t object_id,
1828 Snapshot::Kind kind) { 1828 Snapshot::Kind kind) {
1829 ASSERT(writer != NULL); 1829 ASSERT(writer != NULL);
1830 ASSERT(kind == Snapshot::kMessage); 1830 ASSERT(kind == Snapshot::kMessage);
1831 1831
1832 // Write out the serialization header value for this object. 1832 // Write out the serialization header value for this object.
1833 writer->WriteSerializationMarker(kInlined, object_id); 1833 writer->WriteSerializationMarker(kInlined, object_id);
1834 1834
1835 // Write out the class and tags information. 1835 // Write out the class and tags information.
1836 writer->WriteObjectHeader(ObjectStore::kJSRegExpClass, ptr()->tags_); 1836 writer->WriteObjectHeader(ObjectStore::kJSRegExpClass, ptr()->tags_);
1837 1837
1838 // Write out the data length field. 1838 // Write out the data length field.
1839 writer->Write<RawObject*>(ptr()->data_length_); 1839 writer->Write<RawObject*>(ptr()->data_length_);
1840 1840
1841 // Write out all the other fields. 1841 // Write out all the other fields.
1842 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); 1842 writer->Write<RawObject*>(ptr()->num_bracket_expressions_);
1843 writer->WriteObject(ptr()->pattern_); 1843 writer->WriteObject(ptr()->pattern_);
1844 writer->WriteIntptrValue(ptr()->type_); 1844 writer->WriteIntptrValue(ptr()->type_);
1845 writer->WriteIntptrValue(ptr()->flags_); 1845 writer->WriteIntptrValue(ptr()->flags_);
1846 1846
1847 // Do not write out the data part which is native. 1847 // Do not write out the data part which is native.
1848 } 1848 }
1849 1849
1850
1851 RawICData* ICData::ReadFrom(SnapshotReader* reader,
1852 intptr_t object_id,
1853 intptr_t tags,
1854 Snapshot::Kind kind) {
1855 UNIMPLEMENTED();
1856 return NULL;
1857 }
1858
1859
1860 void RawICData::WriteTo(SnapshotWriter* writer,
1861 intptr_t object_id,
1862 Snapshot::Kind kind) {
1863 UNIMPLEMENTED();
1864 }
1865
1866
1850 } // namespace dart 1867 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698