| 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 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2387 HEAP_OBJECT_IMPLEMENTATION(Stackmap, Object); | 2387 HEAP_OBJECT_IMPLEMENTATION(Stackmap, Object); |
| 2388 friend class BitmapBuilder; | 2388 friend class BitmapBuilder; |
| 2389 friend class Class; | 2389 friend class Class; |
| 2390 }; | 2390 }; |
| 2391 | 2391 |
| 2392 | 2392 |
| 2393 class ExceptionHandlers : public Object { | 2393 class ExceptionHandlers : public Object { |
| 2394 public: | 2394 public: |
| 2395 intptr_t Length() const; | 2395 intptr_t Length() const; |
| 2396 | 2396 |
| 2397 void GetHandlerInfo(intptr_t index, | 2397 void GetHandlerInfo(intptr_t try_index, |
| 2398 RawExceptionHandlers::HandlerInfo* info) const; | 2398 RawExceptionHandlers::HandlerInfo* info) const; |
| 2399 | 2399 |
| 2400 intptr_t TryIndex(intptr_t index) const; | 2400 intptr_t HandlerPC(intptr_t try_index) const; |
| 2401 intptr_t HandlerPC(intptr_t index) const; | 2401 intptr_t OuterTryIndex(intptr_t try_index) const; |
| 2402 intptr_t OuterTryIndex(intptr_t index) const; | |
| 2403 | 2402 |
| 2404 void SetHandlerInfo(intptr_t index, | 2403 void SetHandlerInfo(intptr_t try_index, |
| 2405 intptr_t try_index, | |
| 2406 intptr_t outer_try_index, | 2404 intptr_t outer_try_index, |
| 2407 intptr_t handler_pc) const; | 2405 intptr_t handler_pc) const; |
| 2408 | 2406 |
| 2409 RawArray* GetHandledTypes(intptr_t index) const; | 2407 RawArray* GetHandledTypes(intptr_t try_index) const; |
| 2410 void SetHandledTypes(intptr_t index, const Array& handled_types) const; | 2408 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const; |
| 2411 | 2409 |
| 2412 static intptr_t InstanceSize() { | 2410 static intptr_t InstanceSize() { |
| 2413 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers, | 2411 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers, |
| 2414 data_)); | 2412 data_)); |
| 2415 return 0; | 2413 return 0; |
| 2416 } | 2414 } |
| 2417 static intptr_t InstanceSize(intptr_t len) { | 2415 static intptr_t InstanceSize(intptr_t len) { |
| 2418 return RoundedAllocationSize( | 2416 return RoundedAllocationSize( |
| 2419 sizeof(RawExceptionHandlers) + | 2417 sizeof(RawExceptionHandlers) + |
| 2420 (len * sizeof(RawExceptionHandlers::HandlerInfo))); | 2418 (len * sizeof(RawExceptionHandlers::HandlerInfo))); |
| (...skipping 3830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6251 | 6249 |
| 6252 | 6250 |
| 6253 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6251 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6254 intptr_t index) { | 6252 intptr_t index) { |
| 6255 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6253 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6256 } | 6254 } |
| 6257 | 6255 |
| 6258 } // namespace dart | 6256 } // namespace dart |
| 6259 | 6257 |
| 6260 #endif // VM_OBJECT_H_ | 6258 #endif // VM_OBJECT_H_ |
| OLD | NEW |