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

Side by Side Diff: runtime/vm/raw_object.h

Issue 1241673003: Async-step, first cut. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/scopes.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 #ifndef VM_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 const uint8_t* data() const { OPEN_ARRAY_START(uint8_t, uint8_t); } 1157 const uint8_t* data() const { OPEN_ARRAY_START(uint8_t, uint8_t); }
1158 }; 1158 };
1159 1159
1160 1160
1161 class RawLocalVarDescriptors : public RawObject { 1161 class RawLocalVarDescriptors : public RawObject {
1162 public: 1162 public:
1163 enum VarInfoKind { 1163 enum VarInfoKind {
1164 kStackVar = 1, 1164 kStackVar = 1,
1165 kContextVar, 1165 kContextVar,
1166 kContextLevel, 1166 kContextLevel,
1167 kSavedCurrentContext 1167 kSavedCurrentContext,
1168 kAsyncOperation
1168 }; 1169 };
1169 1170
1170 enum { 1171 enum {
1171 kKindPos = 0, 1172 kKindPos = 0,
1172 kKindSize = 8, 1173 kKindSize = 8,
1173 kIndexPos = kKindPos + kKindSize, 1174 kIndexPos = kKindPos + kKindSize,
1174 // Since there are 24 bits for the stack slot index, Functions can have 1175 // Since there are 24 bits for the stack slot index, Functions can have
1175 // only ~16.7 million stack slots. 1176 // only ~16.7 million stack slots.
1176 kPayloadSize = sizeof(int32_t) * kBitsPerByte, 1177 kPayloadSize = sizeof(int32_t) * kBitsPerByte,
1177 kIndexSize = kPayloadSize - kIndexPos, 1178 kIndexSize = kPayloadSize - kIndexPos,
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2188 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2188 kTypedDataInt8ArrayViewCid + 15); 2189 kTypedDataInt8ArrayViewCid + 15);
2189 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2190 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2190 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2191 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2191 return (kNullCid - kTypedDataInt8ArrayCid); 2192 return (kNullCid - kTypedDataInt8ArrayCid);
2192 } 2193 }
2193 2194
2194 } // namespace dart 2195 } // namespace dart
2195 2196
2196 #endif // VM_RAW_OBJECT_H_ 2197 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698