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 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2162 | 2162 |
2163 RawArray* ic_data_array() const; | 2163 RawArray* ic_data_array() const; |
2164 void ClearICData() const; | 2164 void ClearICData() const; |
2165 | 2165 |
2166 static const int kCtorPhaseInit = 1 << 0; | 2166 static const int kCtorPhaseInit = 1 << 0; |
2167 static const int kCtorPhaseBody = 1 << 1; | 2167 static const int kCtorPhaseBody = 1 << 1; |
2168 static const int kCtorPhaseAll = (kCtorPhaseInit | kCtorPhaseBody); | 2168 static const int kCtorPhaseAll = (kCtorPhaseInit | kCtorPhaseBody); |
2169 | 2169 |
2170 void set_modifier(RawFunction::AsyncModifier value) const; | 2170 void set_modifier(RawFunction::AsyncModifier value) const; |
2171 | 2171 |
| 2172 // An invisible function is hidden from stack traces, will not be enumerated |
| 2173 // by mirrors, and cannot be directly invoked by mirrors. All private |
| 2174 // functions in dart:* libraries are marked invisible by the parser. |
| 2175 |
2172 #define FOR_EACH_FUNCTION_KIND_BIT(V) \ | 2176 #define FOR_EACH_FUNCTION_KIND_BIT(V) \ |
2173 V(Static, is_static) \ | 2177 V(Static, is_static) \ |
2174 V(Const, is_const) \ | 2178 V(Const, is_const) \ |
2175 V(Abstract, is_abstract) \ | 2179 V(Abstract, is_abstract) \ |
2176 V(Visible, is_visible) \ | 2180 V(Visible, is_visible) \ |
2177 V(Debuggable, is_debuggable) \ | 2181 V(Debuggable, is_debuggable) \ |
2178 V(Optimizable, is_optimizable) \ | 2182 V(Optimizable, is_optimizable) \ |
2179 V(Inlinable, is_inlinable) \ | 2183 V(Inlinable, is_inlinable) \ |
2180 V(Intrinsic, is_intrinsic) \ | 2184 V(Intrinsic, is_intrinsic) \ |
2181 V(Native, is_native) \ | 2185 V(Native, is_native) \ |
(...skipping 5518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7700 | 7704 |
7701 | 7705 |
7702 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7706 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
7703 intptr_t index) { | 7707 intptr_t index) { |
7704 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7708 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
7705 } | 7709 } |
7706 | 7710 |
7707 } // namespace dart | 7711 } // namespace dart |
7708 | 7712 |
7709 #endif // VM_OBJECT_H_ | 7713 #endif // VM_OBJECT_H_ |
OLD | NEW |