OLD | NEW |
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 RUNTIME_VM_OBJECT_H_ | 5 #ifndef RUNTIME_VM_OBJECT_H_ |
6 #define RUNTIME_VM_OBJECT_H_ | 6 #define RUNTIME_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 5403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5414 friend class Class; | 5414 friend class Class; |
5415 friend class ObjectStore; | 5415 friend class ObjectStore; |
5416 }; | 5416 }; |
5417 | 5417 |
5418 | 5418 |
5419 class UnwindError : public Error { | 5419 class UnwindError : public Error { |
5420 public: | 5420 public: |
5421 bool is_user_initiated() const { return raw_ptr()->is_user_initiated_; } | 5421 bool is_user_initiated() const { return raw_ptr()->is_user_initiated_; } |
5422 void set_is_user_initiated(bool value) const; | 5422 void set_is_user_initiated(bool value) const; |
5423 | 5423 |
5424 bool is_vm_restart() const { return raw_ptr()->is_vm_restart_; } | |
5425 void set_is_vm_restart(bool value) const; | |
5426 | |
5427 RawString* message() const { return raw_ptr()->message_; } | 5424 RawString* message() const { return raw_ptr()->message_; } |
5428 | 5425 |
5429 static intptr_t InstanceSize() { | 5426 static intptr_t InstanceSize() { |
5430 return RoundedAllocationSize(sizeof(RawUnwindError)); | 5427 return RoundedAllocationSize(sizeof(RawUnwindError)); |
5431 } | 5428 } |
5432 | 5429 |
5433 static RawUnwindError* New(const String& message, | 5430 static RawUnwindError* New(const String& message, |
5434 Heap::Space space = Heap::kNew); | 5431 Heap::Space space = Heap::kNew); |
5435 | 5432 |
5436 virtual const char* ToErrorCString() const; | 5433 virtual const char* ToErrorCString() const; |
(...skipping 3495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8932 | 8929 |
8933 inline void TypeArguments::SetHash(intptr_t value) const { | 8930 inline void TypeArguments::SetHash(intptr_t value) const { |
8934 // This is only safe because we create a new Smi, which does not cause | 8931 // This is only safe because we create a new Smi, which does not cause |
8935 // heap allocation. | 8932 // heap allocation. |
8936 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8933 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
8937 } | 8934 } |
8938 | 8935 |
8939 } // namespace dart | 8936 } // namespace dart |
8940 | 8937 |
8941 #endif // RUNTIME_VM_OBJECT_H_ | 8938 #endif // RUNTIME_VM_OBJECT_H_ |
OLD | NEW |