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

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

Issue 1371193005: VM restart + shutdown fixes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix ups 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 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError); 1464 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError);
1465 1465
1466 RawObject** from() { 1466 RawObject** from() {
1467 return reinterpret_cast<RawObject**>(&ptr()->message_); 1467 return reinterpret_cast<RawObject**>(&ptr()->message_);
1468 } 1468 }
1469 RawString* message_; 1469 RawString* message_;
1470 RawObject** to() { 1470 RawObject** to() {
1471 return reinterpret_cast<RawObject**>(&ptr()->message_); 1471 return reinterpret_cast<RawObject**>(&ptr()->message_);
1472 } 1472 }
1473 bool is_user_initiated_; 1473 bool is_user_initiated_;
1474 bool is_vm_restart_;
1474 }; 1475 };
1475 1476
1476 1477
1477 class RawInstance : public RawObject { 1478 class RawInstance : public RawObject {
1478 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance); 1479 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance);
1479 }; 1480 };
1480 1481
1481 1482
1482 class RawLibraryPrefix : public RawInstance { 1483 class RawLibraryPrefix : public RawInstance {
1483 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); 1484 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix);
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
2237 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2238 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2238 kTypedDataInt8ArrayViewCid + 15); 2239 kTypedDataInt8ArrayViewCid + 15);
2239 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2240 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2240 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2241 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2241 return (kNullCid - kTypedDataInt8ArrayCid); 2242 return (kNullCid - kTypedDataInt8ArrayCid);
2242 } 2243 }
2243 2244
2244 } // namespace dart 2245 } // namespace dart
2245 2246
2246 #endif // VM_RAW_OBJECT_H_ 2247 #endif // VM_RAW_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698