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

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

Issue 10830131: Adding deopt info to code object. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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') | no next file » | 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/symbols.h" 9 #include "vm/symbols.h"
10 #include "vm/visitor.h" 10 #include "vm/visitor.h"
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 } 932 }
933 933
934 934
935 void RawExceptionHandlers::WriteTo(SnapshotWriter* writer, 935 void RawExceptionHandlers::WriteTo(SnapshotWriter* writer,
936 intptr_t object_id, 936 intptr_t object_id,
937 Snapshot::Kind kind) { 937 Snapshot::Kind kind) {
938 UNREACHABLE(); 938 UNREACHABLE();
939 } 939 }
940 940
941 941
942 RawDeoptInfo* DeoptInfo::ReadFrom(SnapshotReader* reader,
943 intptr_t object_id,
944 intptr_t tags,
945 Snapshot::Kind kind) {
946 UNREACHABLE();
947 return DeoptInfo::null();
948 }
949
950
951 void RawDeoptInfo::WriteTo(SnapshotWriter* writer,
952 intptr_t object_id,
953 Snapshot::Kind kind) {
954 UNREACHABLE();
955 }
956
957
942 RawContext* Context::ReadFrom(SnapshotReader* reader, 958 RawContext* Context::ReadFrom(SnapshotReader* reader,
943 intptr_t object_id, 959 intptr_t object_id,
944 intptr_t tags, 960 intptr_t tags,
945 Snapshot::Kind kind) { 961 Snapshot::Kind kind) {
946 ASSERT(reader != NULL); 962 ASSERT(reader != NULL);
947 963
948 // Allocate context object. 964 // Allocate context object.
949 intptr_t num_vars = reader->ReadIntptrValue(); 965 intptr_t num_vars = reader->ReadIntptrValue();
950 Context& context = Context::ZoneHandle(reader->isolate(), Context::null()); 966 Context& context = Context::ZoneHandle(reader->isolate(), Context::null());
951 if (kind == Snapshot::kFull) { 967 if (kind == Snapshot::kFull) {
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 writer->Write<RawObject*>(ptr()->num_bracket_expressions_); 2007 writer->Write<RawObject*>(ptr()->num_bracket_expressions_);
1992 writer->WriteObjectImpl(ptr()->pattern_); 2008 writer->WriteObjectImpl(ptr()->pattern_);
1993 writer->WriteIntptrValue(ptr()->type_); 2009 writer->WriteIntptrValue(ptr()->type_);
1994 writer->WriteIntptrValue(ptr()->flags_); 2010 writer->WriteIntptrValue(ptr()->flags_);
1995 2011
1996 // Do not write out the data part which is native. 2012 // Do not write out the data part which is native.
1997 } 2013 }
1998 2014
1999 2015
2000 } // namespace dart 2016 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698