| 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 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1910 bool IsImmutable() const; | 1910 bool IsImmutable() const; |
| 1911 | 1911 |
| 1912 void Reset(Zone* zone) const; | 1912 void Reset(Zone* zone) const; |
| 1913 void ResetSwitchable(Zone* zone) const; | 1913 void ResetSwitchable(Zone* zone) const; |
| 1914 | 1914 |
| 1915 // Note: only deopts with reasons before Unknown in this list are recorded in | 1915 // Note: only deopts with reasons before Unknown in this list are recorded in |
| 1916 // the ICData. All other reasons are used purely for informational messages | 1916 // the ICData. All other reasons are used purely for informational messages |
| 1917 // printed during deoptimization itself. | 1917 // printed during deoptimization itself. |
| 1918 #define DEOPT_REASONS(V) \ | 1918 #define DEOPT_REASONS(V) \ |
| 1919 V(BinarySmiOp) \ | 1919 V(BinarySmiOp) \ |
| 1920 V(BinaryMintOp) \ | 1920 V(BinaryInt64Op) \ |
| 1921 V(DoubleToSmi) \ | 1921 V(DoubleToSmi) \ |
| 1922 V(CheckSmi) \ | 1922 V(CheckSmi) \ |
| 1923 V(CheckClass) \ | 1923 V(CheckClass) \ |
| 1924 V(Unknown) \ | 1924 V(Unknown) \ |
| 1925 V(PolymorphicInstanceCallTestFail) \ | 1925 V(PolymorphicInstanceCallTestFail) \ |
| 1926 V(UnaryMintOp) \ | 1926 V(UnaryInt64Op) \ |
| 1927 V(BinaryDoubleOp) \ | 1927 V(BinaryDoubleOp) \ |
| 1928 V(UnaryOp) \ | 1928 V(UnaryOp) \ |
| 1929 V(UnboxInteger) \ | 1929 V(UnboxInteger) \ |
| 1930 V(CheckArrayBound) \ | 1930 V(CheckArrayBound) \ |
| 1931 V(AtCall) \ | 1931 V(AtCall) \ |
| 1932 V(GuardField) \ | 1932 V(GuardField) \ |
| 1933 V(TestCids) \ | 1933 V(TestCids) \ |
| 1934 V(NumReasons) | 1934 V(NumReasons) |
| 1935 | 1935 |
| 1936 enum DeoptReasonId { | 1936 enum DeoptReasonId { |
| (...skipping 7067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9004 | 9004 |
| 9005 inline void TypeArguments::SetHash(intptr_t value) const { | 9005 inline void TypeArguments::SetHash(intptr_t value) const { |
| 9006 // This is only safe because we create a new Smi, which does not cause | 9006 // This is only safe because we create a new Smi, which does not cause |
| 9007 // heap allocation. | 9007 // heap allocation. |
| 9008 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 9008 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 9009 } | 9009 } |
| 9010 | 9010 |
| 9011 } // namespace dart | 9011 } // namespace dart |
| 9012 | 9012 |
| 9013 #endif // RUNTIME_VM_OBJECT_H_ | 9013 #endif // RUNTIME_VM_OBJECT_H_ |
| OLD | NEW |