| 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 3472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3483 void SetBit(intptr_t bit_index, bool value) const; | 3483 void SetBit(intptr_t bit_index, bool value) const; |
| 3484 | 3484 |
| 3485 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stackmap, Object); | 3485 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stackmap, Object); |
| 3486 friend class BitmapBuilder; | 3486 friend class BitmapBuilder; |
| 3487 friend class Class; | 3487 friend class Class; |
| 3488 }; | 3488 }; |
| 3489 | 3489 |
| 3490 | 3490 |
| 3491 class ExceptionHandlers : public Object { | 3491 class ExceptionHandlers : public Object { |
| 3492 public: | 3492 public: |
| 3493 static const intptr_t kInvalidPcOffset = 0; |
| 3494 |
| 3493 intptr_t num_entries() const; | 3495 intptr_t num_entries() const; |
| 3494 | 3496 |
| 3495 void GetHandlerInfo(intptr_t try_index, | 3497 void GetHandlerInfo(intptr_t try_index, |
| 3496 RawExceptionHandlers::HandlerInfo* info) const; | 3498 RawExceptionHandlers::HandlerInfo* info) const; |
| 3497 | 3499 |
| 3498 uword HandlerPCOffset(intptr_t try_index) const; | 3500 uword HandlerPCOffset(intptr_t try_index) const; |
| 3499 intptr_t OuterTryIndex(intptr_t try_index) const; | 3501 intptr_t OuterTryIndex(intptr_t try_index) const; |
| 3500 bool NeedsStacktrace(intptr_t try_index) const; | 3502 bool NeedsStacktrace(intptr_t try_index) const; |
| 3501 | 3503 |
| 3502 void SetHandlerInfo(intptr_t try_index, | 3504 void SetHandlerInfo(intptr_t try_index, |
| (...skipping 4342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7845 | 7847 |
| 7846 | 7848 |
| 7847 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7849 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7848 intptr_t index) { | 7850 intptr_t index) { |
| 7849 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7851 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7850 } | 7852 } |
| 7851 | 7853 |
| 7852 } // namespace dart | 7854 } // namespace dart |
| 7853 | 7855 |
| 7854 #endif // VM_OBJECT_H_ | 7856 #endif // VM_OBJECT_H_ |
| OLD | NEW |