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 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1869 RawFunction::Kind kind() const { | 1869 RawFunction::Kind kind() const { |
1870 return KindBits::decode(raw_ptr()->kind_tag_); | 1870 return KindBits::decode(raw_ptr()->kind_tag_); |
1871 } | 1871 } |
1872 | 1872 |
1873 RawFunction::AsyncModifier modifier() const { | 1873 RawFunction::AsyncModifier modifier() const { |
1874 return ModifierBits::decode(raw_ptr()->kind_tag_); | 1874 return ModifierBits::decode(raw_ptr()->kind_tag_); |
1875 } | 1875 } |
1876 | 1876 |
1877 static const char* KindToCString(RawFunction::Kind kind); | 1877 static const char* KindToCString(RawFunction::Kind kind); |
1878 | 1878 |
1879 bool IsConstructor() const { | 1879 bool IsGenerativeConstructor() const { |
1880 return (kind() == RawFunction::kConstructor) && !is_static(); | 1880 return (kind() == RawFunction::kConstructor) && !is_static(); |
1881 } | 1881 } |
1882 bool IsImplicitConstructor() const; | 1882 bool IsImplicitConstructor() const; |
1883 bool IsFactory() const { | 1883 bool IsFactory() const { |
1884 return (kind() == RawFunction::kConstructor) && is_static(); | 1884 return (kind() == RawFunction::kConstructor) && is_static(); |
1885 } | 1885 } |
1886 bool IsDynamicFunction() const { | 1886 bool IsDynamicFunction() const { |
1887 if (is_static() || is_abstract()) { | 1887 if (is_static() || is_abstract()) { |
1888 return false; | 1888 return false; |
1889 } | 1889 } |
(...skipping 5910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7800 | 7800 |
7801 | 7801 |
7802 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7802 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
7803 intptr_t index) { | 7803 intptr_t index) { |
7804 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7804 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
7805 } | 7805 } |
7806 | 7806 |
7807 } // namespace dart | 7807 } // namespace dart |
7808 | 7808 |
7809 #endif // VM_OBJECT_H_ | 7809 #endif // VM_OBJECT_H_ |
OLD | NEW |