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 7147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9056 | 9058 |
9057 inline void TypeArguments::SetHash(intptr_t value) const { | 9059 inline void TypeArguments::SetHash(intptr_t value) const { |
9058 // This is only safe because we create a new Smi, which does not cause | 9060 // This is only safe because we create a new Smi, which does not cause |
9059 // heap allocation. | 9061 // heap allocation. |
9060 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 9062 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
9061 } | 9063 } |
9062 | 9064 |
9063 } // namespace dart | 9065 } // namespace dart |
9064 | 9066 |
9065 #endif // RUNTIME_VM_OBJECT_H_ | 9067 #endif // RUNTIME_VM_OBJECT_H_ |
OLD | NEW |