mirror of
https://github.com/dart-lang/sdk
synced 2024-09-23 01:13:46 +00:00
cfb2df1020
R=regis@google.com Review URL: https://codereview.chromium.org//982723002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44297 260f80e4-7a28-3924-810f-c04153c831b5
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
// 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,
|
|
kEmptyArrayObject,
|
|
kZeroArrayObject,
|
|
kTrueValue,
|
|
kFalseValue,
|
|
// Marker for special encoding of double objects in message snapshots.
|
|
kDoubleObject,
|
|
// Object id has been optimized away; reader should use next available id.
|
|
kOmittedObjectId,
|
|
|
|
kClassIdsOffset = kOmittedObjectId,
|
|
|
|
// The class ids of predefined classes are included in this list
|
|
// at an offset of kClassIdsOffset.
|
|
|
|
kObjectType = (kNumPredefinedCids + kClassIdsOffset),
|
|
kNullType,
|
|
kDynamicType,
|
|
kVoidType,
|
|
kFunctionType,
|
|
kNumberType,
|
|
kSmiType,
|
|
kMintType,
|
|
kDoubleType,
|
|
kIntType,
|
|
kBoolType,
|
|
kStringType,
|
|
kArrayType,
|
|
|
|
kInstanceObjectId,
|
|
kStaticImplicitClosureObjectId,
|
|
kMaxPredefinedObjectIds,
|
|
kInvalidIndex = -1,
|
|
};
|
|
|
|
} // namespace dart
|
|
|
|
#endif // VM_SNAPSHOT_IDS_H_
|