| 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 2381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 index, |
| 2398 RawExceptionHandlers::HandlerInfo* info) const; | 2398 RawExceptionHandlers::HandlerInfo* info) const; |
| 2399 | 2399 |
| 2400 intptr_t TryIndex(intptr_t index) const; | 2400 intptr_t TryIndex(intptr_t index) const; |
| 2401 intptr_t HandlerPC(intptr_t index) const; | 2401 intptr_t HandlerPC(intptr_t index) const; |
| 2402 intptr_t OuterTryIndex(intptr_t index) const; |
| 2402 | 2403 |
| 2403 void SetHandlerInfo(intptr_t index, | 2404 void SetHandlerInfo(intptr_t index, |
| 2404 intptr_t try_index, | 2405 intptr_t try_index, |
| 2405 intptr_t outer_try_index, | 2406 intptr_t outer_try_index, |
| 2406 intptr_t handler_pc) const; | 2407 intptr_t handler_pc) const; |
| 2407 | 2408 |
| 2408 RawArray* GetHandledTypes(intptr_t index) const; | 2409 RawArray* GetHandledTypes(intptr_t index) const; |
| 2409 void SetHandledTypes(intptr_t index, const Array& handled_types) const; | 2410 void SetHandledTypes(intptr_t index, const Array& handled_types) const; |
| 2410 | 2411 |
| 2411 static intptr_t InstanceSize() { | 2412 static intptr_t InstanceSize() { |
| (...skipping 3838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6250 | 6251 |
| 6251 | 6252 |
| 6252 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6253 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6253 intptr_t index) { | 6254 intptr_t index) { |
| 6254 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6255 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6255 } | 6256 } |
| 6256 | 6257 |
| 6257 } // namespace dart | 6258 } // namespace dart |
| 6258 | 6259 |
| 6259 #endif // VM_OBJECT_H_ | 6260 #endif // VM_OBJECT_H_ |
| OLD | NEW |