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 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 4778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4789 void set_stacktrace(const Instance& stacktrace) const; | 4789 void set_stacktrace(const Instance& stacktrace) const; |
4790 | 4790 |
4791 FINAL_HEAP_OBJECT_IMPLEMENTATION(UnhandledException, Error); | 4791 FINAL_HEAP_OBJECT_IMPLEMENTATION(UnhandledException, Error); |
4792 friend class Class; | 4792 friend class Class; |
4793 friend class ObjectStore; | 4793 friend class ObjectStore; |
4794 }; | 4794 }; |
4795 | 4795 |
4796 | 4796 |
4797 class UnwindError : public Error { | 4797 class UnwindError : public Error { |
4798 public: | 4798 public: |
| 4799 bool is_user_initiated() const { return raw_ptr()->is_user_initiated_; } |
| 4800 void set_is_user_initiated(bool value) const; |
| 4801 |
4799 RawString* message() const { return raw_ptr()->message_; } | 4802 RawString* message() const { return raw_ptr()->message_; } |
4800 | 4803 |
4801 static intptr_t InstanceSize() { | 4804 static intptr_t InstanceSize() { |
4802 return RoundedAllocationSize(sizeof(RawUnwindError)); | 4805 return RoundedAllocationSize(sizeof(RawUnwindError)); |
4803 } | 4806 } |
4804 | 4807 |
4805 static RawUnwindError* New(const String& message, | 4808 static RawUnwindError* New(const String& message, |
4806 Heap::Space space = Heap::kNew); | 4809 Heap::Space space = Heap::kNew); |
4807 | 4810 |
4808 virtual const char* ToErrorCString() const; | 4811 virtual const char* ToErrorCString() const; |
(...skipping 3304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8113 | 8116 |
8114 | 8117 |
8115 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8118 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
8116 intptr_t index) { | 8119 intptr_t index) { |
8117 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8120 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
8118 } | 8121 } |
8119 | 8122 |
8120 } // namespace dart | 8123 } // namespace dart |
8121 | 8124 |
8122 #endif // VM_OBJECT_H_ | 8125 #endif // VM_OBJECT_H_ |
OLD | NEW |