| 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 2072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2083 } | 2083 } |
| 2084 | 2084 |
| 2085 void set_owner(const Function& value) const; | 2085 void set_owner(const Function& value) const; |
| 2086 void set_target_name(const String& value) const; | 2086 void set_target_name(const String& value) const; |
| 2087 void set_arguments_descriptor(const Array& value) const; | 2087 void set_arguments_descriptor(const Array& value) const; |
| 2088 void set_deopt_id(intptr_t value) const; | 2088 void set_deopt_id(intptr_t value) const; |
| 2089 void SetNumArgsTested(intptr_t value) const; | 2089 void SetNumArgsTested(intptr_t value) const; |
| 2090 void set_ic_data_array(const Array& value) const; | 2090 void set_ic_data_array(const Array& value) const; |
| 2091 void set_state_bits(uint32_t bits) const; | 2091 void set_state_bits(uint32_t bits) const; |
| 2092 | 2092 |
| 2093 bool ValidateInteceptor(const Function& target) const; |
| 2094 |
| 2093 enum { | 2095 enum { |
| 2094 kNumArgsTestedPos = 0, | 2096 kNumArgsTestedPos = 0, |
| 2095 kNumArgsTestedSize = 2, | 2097 kNumArgsTestedSize = 2, |
| 2096 kDeoptReasonPos = kNumArgsTestedPos + kNumArgsTestedSize, | 2098 kDeoptReasonPos = kNumArgsTestedPos + kNumArgsTestedSize, |
| 2097 kDeoptReasonSize = kLastRecordedDeoptReason + 1, | 2099 kDeoptReasonSize = kLastRecordedDeoptReason + 1, |
| 2098 kStaticCallPos = kDeoptReasonPos + kDeoptReasonSize, | 2100 kStaticCallPos = kDeoptReasonPos + kDeoptReasonSize, |
| 2099 kStaticCallSize = 1, | 2101 kStaticCallSize = 1, |
| 2100 }; | 2102 }; |
| 2101 | 2103 |
| 2102 class NumArgsTestedBits : public BitField<uint32_t, | 2104 class NumArgsTestedBits : public BitField<uint32_t, |
| (...skipping 6552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8655 | 8657 |
| 8656 inline void TypeArguments::SetHash(intptr_t value) const { | 8658 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8657 // This is only safe because we create a new Smi, which does not cause | 8659 // This is only safe because we create a new Smi, which does not cause |
| 8658 // heap allocation. | 8660 // heap allocation. |
| 8659 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8661 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8660 } | 8662 } |
| 8661 | 8663 |
| 8662 } // namespace dart | 8664 } // namespace dart |
| 8663 | 8665 |
| 8664 #endif // VM_OBJECT_H_ | 8666 #endif // VM_OBJECT_H_ |
| OLD | NEW |