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

Unified Diff: vm/snapshot_ids.h

Issue 10827209: Unify class ids and snapshot object ids list so that we don't have disparate and sometimes confusin… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/snapshot.cc ('k') | vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/snapshot_ids.h
===================================================================
--- vm/snapshot_ids.h (revision 0)
+++ vm/snapshot_ids.h (revision 0)
@@ -0,0 +1,43 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#ifndef VM_SNAPSHOT_IDS_H_
+#define VM_SNAPSHOT_IDS_H_
+
+#include "vm/raw_object.h"
+
+namespace dart {
+
+// Index for predefined singleton objects used in a snapshot.
+enum {
+ kNullObject = 0,
+ kSentinelObject,
+ kTrueValue,
+ kFalseValue,
+ kClassIdsOffset = kFalseValue,
+
+ // The class ids of predefined classes are included in this list
+ // at an offset of kClassIdsOffset.
+
+ kObjectType = (kNumPredefinedCids + kClassIdsOffset),
+ kNullType,
+ kDynamicType,
+ kVoidType,
+ kFunctionInterface,
+ kNumberInterface,
+ kDoubleInterface,
+ kIntInterface,
+ kBoolInterface,
+ kStringInterface,
+ kListInterface,
+ kByteArrayInterface,
+
+ kInstanceObjectId,
+ kMaxPredefinedObjectIds,
+ kInvalidIndex = -1,
+};
+
+} // namespace dart
+
+#endif // VM_SNAPSHOT_IDS_H_
« no previous file with comments | « vm/snapshot.cc ('k') | vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698