| 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 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1899 void ResetSwitchable(Zone* zone) const; | 1899 void ResetSwitchable(Zone* zone) const; |
| 1900 | 1900 |
| 1901 // Note: only deopts with reasons before Unknown in this list are recorded in | 1901 // Note: only deopts with reasons before Unknown in this list are recorded in |
| 1902 // the ICData. All other reasons are used purely for informational messages | 1902 // the ICData. All other reasons are used purely for informational messages |
| 1903 // printed during deoptimization itself. | 1903 // printed during deoptimization itself. |
| 1904 #define DEOPT_REASONS(V) \ | 1904 #define DEOPT_REASONS(V) \ |
| 1905 V(BinarySmiOp) \ | 1905 V(BinarySmiOp) \ |
| 1906 V(BinaryMintOp) \ | 1906 V(BinaryMintOp) \ |
| 1907 V(DoubleToSmi) \ | 1907 V(DoubleToSmi) \ |
| 1908 V(CheckSmi) \ | 1908 V(CheckSmi) \ |
| 1909 V(CheckClass) \ |
| 1909 V(Unknown) \ | 1910 V(Unknown) \ |
| 1910 V(PolymorphicInstanceCallTestFail) \ | 1911 V(PolymorphicInstanceCallTestFail) \ |
| 1911 V(UnaryMintOp) \ | 1912 V(UnaryMintOp) \ |
| 1912 V(BinaryDoubleOp) \ | 1913 V(BinaryDoubleOp) \ |
| 1913 V(UnaryOp) \ | 1914 V(UnaryOp) \ |
| 1914 V(UnboxInteger) \ | 1915 V(UnboxInteger) \ |
| 1915 V(CheckClass) \ | |
| 1916 V(CheckArrayBound) \ | 1916 V(CheckArrayBound) \ |
| 1917 V(AtCall) \ | 1917 V(AtCall) \ |
| 1918 V(GuardField) \ | 1918 V(GuardField) \ |
| 1919 V(TestCids) \ | 1919 V(TestCids) \ |
| 1920 V(NumReasons) | 1920 V(NumReasons) |
| 1921 | 1921 |
| 1922 enum DeoptReasonId { | 1922 enum DeoptReasonId { |
| 1923 #define DEFINE_ENUM_LIST(name) kDeopt##name, | 1923 #define DEFINE_ENUM_LIST(name) kDeopt##name, |
| 1924 DEOPT_REASONS(DEFINE_ENUM_LIST) | 1924 DEOPT_REASONS(DEFINE_ENUM_LIST) |
| 1925 #undef DEFINE_ENUM_LIST | 1925 #undef DEFINE_ENUM_LIST |
| (...skipping 7066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8992 | 8992 |
| 8993 inline void TypeArguments::SetHash(intptr_t value) const { | 8993 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8994 // This is only safe because we create a new Smi, which does not cause | 8994 // This is only safe because we create a new Smi, which does not cause |
| 8995 // heap allocation. | 8995 // heap allocation. |
| 8996 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8996 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8997 } | 8997 } |
| 8998 | 8998 |
| 8999 } // namespace dart | 8999 } // namespace dart |
| 9000 | 9000 |
| 9001 #endif // RUNTIME_VM_OBJECT_H_ | 9001 #endif // RUNTIME_VM_OBJECT_H_ |
| OLD | NEW |