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

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

Issue 1371193005: VM restart + shutdown fixes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code review 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_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 4809 matching lines...) Expand 10 before | Expand all | Expand 10 after
4820 friend class Class; 4820 friend class Class;
4821 friend class ObjectStore; 4821 friend class ObjectStore;
4822 }; 4822 };
4823 4823
4824 4824
4825 class UnwindError : public Error { 4825 class UnwindError : public Error {
4826 public: 4826 public:
4827 bool is_user_initiated() const { return raw_ptr()->is_user_initiated_; } 4827 bool is_user_initiated() const { return raw_ptr()->is_user_initiated_; }
4828 void set_is_user_initiated(bool value) const; 4828 void set_is_user_initiated(bool value) const;
4829 4829
4830 bool is_vm_restart() const { return raw_ptr()->is_vm_restart_; }
4831 void set_is_vm_restart(bool value) const;
4832
4830 RawString* message() const { return raw_ptr()->message_; } 4833 RawString* message() const { return raw_ptr()->message_; }
4831 4834
4832 static intptr_t InstanceSize() { 4835 static intptr_t InstanceSize() {
4833 return RoundedAllocationSize(sizeof(RawUnwindError)); 4836 return RoundedAllocationSize(sizeof(RawUnwindError));
4834 } 4837 }
4835 4838
4836 static RawUnwindError* New(const String& message, 4839 static RawUnwindError* New(const String& message,
4837 Heap::Space space = Heap::kNew); 4840 Heap::Space space = Heap::kNew);
4838 4841
4839 virtual const char* ToErrorCString() const; 4842 virtual const char* ToErrorCString() const;
(...skipping 3308 matching lines...) Expand 10 before | Expand all | Expand 10 after
8148 8151
8149 8152
8150 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8153 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8151 intptr_t index) { 8154 intptr_t index) {
8152 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8155 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8153 } 8156 }
8154 8157
8155 } // namespace dart 8158 } // namespace dart
8156 8159
8157 #endif // VM_OBJECT_H_ 8160 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698