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

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

Issue 1361423004: Don't use a special var descriptor for :async_op since it can now be either stack or context alloca… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: also assert async op is either closure or null Created 5 years, 2 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
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 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 }; 1195 };
1196 1196
1197 1197
1198 class RawLocalVarDescriptors : public RawObject { 1198 class RawLocalVarDescriptors : public RawObject {
1199 public: 1199 public:
1200 enum VarInfoKind { 1200 enum VarInfoKind {
1201 kStackVar = 1, 1201 kStackVar = 1,
1202 kContextVar, 1202 kContextVar,
1203 kContextLevel, 1203 kContextLevel,
1204 kSavedCurrentContext, 1204 kSavedCurrentContext,
1205 kAsyncOperation
1206 }; 1205 };
1207 1206
1208 enum { 1207 enum {
1209 kKindPos = 0, 1208 kKindPos = 0,
1210 kKindSize = 8, 1209 kKindSize = 8,
1211 kIndexPos = kKindPos + kKindSize, 1210 kIndexPos = kKindPos + kKindSize,
1212 // Since there are 24 bits for the stack slot index, Functions can have 1211 // Since there are 24 bits for the stack slot index, Functions can have
1213 // only ~16.7 million stack slots. 1212 // only ~16.7 million stack slots.
1214 kPayloadSize = sizeof(int32_t) * kBitsPerByte, 1213 kPayloadSize = sizeof(int32_t) * kBitsPerByte,
1215 kIndexSize = kPayloadSize - kIndexPos, 1214 kIndexSize = kPayloadSize - kIndexPos,
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
2233 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2232 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2234 kTypedDataInt8ArrayViewCid + 15); 2233 kTypedDataInt8ArrayViewCid + 15);
2235 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2234 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2236 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2235 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2237 return (kNullCid - kTypedDataInt8ArrayCid); 2236 return (kNullCid - kTypedDataInt8ArrayCid);
2238 } 2237 }
2239 2238
2240 } // namespace dart 2239 } // namespace dart
2241 2240
2242 #endif // VM_RAW_OBJECT_H_ 2241 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | runtime/vm/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698