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 RUNTIME_VM_OBJECT_H_ | 5 #ifndef RUNTIME_VM_OBJECT_H_ |
6 #define RUNTIME_VM_OBJECT_H_ | 6 #define RUNTIME_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 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1889 void SetOriginal(const ICData& value) const; | 1889 void SetOriginal(const ICData& value) const; |
1890 | 1890 |
1891 bool IsOriginal() const { return Original() == this->raw(); } | 1891 bool IsOriginal() const { return Original() == this->raw(); } |
1892 | 1892 |
1893 RawString* target_name() const { return raw_ptr()->target_name_; } | 1893 RawString* target_name() const { return raw_ptr()->target_name_; } |
1894 | 1894 |
1895 RawArray* arguments_descriptor() const { return raw_ptr()->args_descriptor_; } | 1895 RawArray* arguments_descriptor() const { return raw_ptr()->args_descriptor_; } |
1896 | 1896 |
1897 intptr_t NumArgsTested() const; | 1897 intptr_t NumArgsTested() const; |
1898 | 1898 |
| 1899 intptr_t TypeArgsLen() const; |
| 1900 |
1899 intptr_t deopt_id() const { | 1901 intptr_t deopt_id() const { |
1900 #if defined(DART_PRECOMPILED_RUNTIME) | 1902 #if defined(DART_PRECOMPILED_RUNTIME) |
1901 UNREACHABLE(); | 1903 UNREACHABLE(); |
1902 return -1; | 1904 return -1; |
1903 #else | 1905 #else |
1904 return raw_ptr()->deopt_id_; | 1906 return raw_ptr()->deopt_id_; |
1905 #endif | 1907 #endif |
1906 } | 1908 } |
1907 | 1909 |
1908 bool IsImmutable() const; | 1910 bool IsImmutable() const; |
(...skipping 7158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9067 | 9069 |
9068 inline void TypeArguments::SetHash(intptr_t value) const { | 9070 inline void TypeArguments::SetHash(intptr_t value) const { |
9069 // This is only safe because we create a new Smi, which does not cause | 9071 // This is only safe because we create a new Smi, which does not cause |
9070 // heap allocation. | 9072 // heap allocation. |
9071 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 9073 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
9072 } | 9074 } |
9073 | 9075 |
9074 } // namespace dart | 9076 } // namespace dart |
9075 | 9077 |
9076 #endif // RUNTIME_VM_OBJECT_H_ | 9078 #endif // RUNTIME_VM_OBJECT_H_ |
OLD | NEW |