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 2636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2647 void RestoreICDataMap( | 2647 void RestoreICDataMap( |
2648 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data, | 2648 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data, |
2649 bool clone_descriptors) const; | 2649 bool clone_descriptors) const; |
2650 | 2650 |
2651 RawArray* ic_data_array() const; | 2651 RawArray* ic_data_array() const; |
2652 void ClearICDataArray() const; | 2652 void ClearICDataArray() const; |
2653 | 2653 |
2654 // Sets deopt reason in all ICData-s with given deopt_id. | 2654 // Sets deopt reason in all ICData-s with given deopt_id. |
2655 void SetDeoptReasonForAll(intptr_t deopt_id, ICData::DeoptReasonId reason); | 2655 void SetDeoptReasonForAll(intptr_t deopt_id, ICData::DeoptReasonId reason); |
2656 | 2656 |
2657 static const int kCtorPhaseInit = 1 << 0; | |
2658 static const int kCtorPhaseBody = 1 << 1; | |
2659 static const int kCtorPhaseAll = (kCtorPhaseInit | kCtorPhaseBody); | |
2660 | |
2661 void set_modifier(RawFunction::AsyncModifier value) const; | 2657 void set_modifier(RawFunction::AsyncModifier value) const; |
2662 | 2658 |
2663 // static: Considered during class-side or top-level resolution rather than | 2659 // static: Considered during class-side or top-level resolution rather than |
2664 // instance-side resolution. | 2660 // instance-side resolution. |
2665 // const: Valid target of a const constructor call. | 2661 // const: Valid target of a const constructor call. |
2666 // abstract: Skipped during instance-side resolution. | 2662 // abstract: Skipped during instance-side resolution. |
2667 // reflectable: Enumerated by mirrors, invocable by mirrors. False for private | 2663 // reflectable: Enumerated by mirrors, invocable by mirrors. False for private |
2668 // functions of dart: libraries. | 2664 // functions of dart: libraries. |
2669 // debuggable: Valid location of a breakpoint. Synthetic code is not | 2665 // debuggable: Valid location of a breakpoint. Synthetic code is not |
2670 // debuggable. | 2666 // debuggable. |
(...skipping 5576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8247 | 8243 |
8248 | 8244 |
8249 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8245 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
8250 intptr_t index) { | 8246 intptr_t index) { |
8251 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8247 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
8252 } | 8248 } |
8253 | 8249 |
8254 } // namespace dart | 8250 } // namespace dart |
8255 | 8251 |
8256 #endif // VM_OBJECT_H_ | 8252 #endif // VM_OBJECT_H_ |
OLD | NEW |