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 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1394 RawArray* dependent_code() const { return raw_ptr()->dependent_code_; } | 1394 RawArray* dependent_code() const { return raw_ptr()->dependent_code_; } |
1395 void set_dependent_code(const Array& array) const; | 1395 void set_dependent_code(const Array& array) const; |
1396 | 1396 |
1397 bool TraceAllocation(Isolate* isolate) const; | 1397 bool TraceAllocation(Isolate* isolate) const; |
1398 void SetTraceAllocation(bool trace_allocation) const; | 1398 void SetTraceAllocation(bool trace_allocation) const; |
1399 | 1399 |
1400 bool ValidatePostFinalizePatch(const Class& orig_class, Error* error) const; | 1400 bool ValidatePostFinalizePatch(const Class& orig_class, Error* error) const; |
1401 void ReplaceEnum(const Class& old_enum) const; | 1401 void ReplaceEnum(const Class& old_enum) const; |
1402 void CopyStaticFieldValues(const Class& old_cls) const; | 1402 void CopyStaticFieldValues(const Class& old_cls) const; |
1403 void PatchFieldsAndFunctions() const; | 1403 void PatchFieldsAndFunctions() const; |
| 1404 void MigrateImplicitStaticClosures(IsolateReloadContext* context, |
| 1405 const Class& new_cls) const; |
1404 void CopyCanonicalConstants(const Class& old_cls) const; | 1406 void CopyCanonicalConstants(const Class& old_cls) const; |
1405 void CopyCanonicalType(const Class& old_cls) const; | 1407 void CopyCanonicalType(const Class& old_cls) const; |
1406 void CheckReload(const Class& replacement, | 1408 void CheckReload(const Class& replacement, |
1407 IsolateReloadContext* context) const; | 1409 IsolateReloadContext* context) const; |
1408 | 1410 |
1409 private: | 1411 private: |
1410 bool CanReloadFinalized(const Class& replacement, | 1412 bool CanReloadFinalized(const Class& replacement, |
1411 IsolateReloadContext* context) const; | 1413 IsolateReloadContext* context) const; |
1412 bool CanReloadPreFinalized(const Class& replacement, | 1414 bool CanReloadPreFinalized(const Class& replacement, |
1413 IsolateReloadContext* context) const; | 1415 IsolateReloadContext* context) const; |
(...skipping 7320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8734 | 8736 |
8735 inline void TypeArguments::SetHash(intptr_t value) const { | 8737 inline void TypeArguments::SetHash(intptr_t value) const { |
8736 // This is only safe because we create a new Smi, which does not cause | 8738 // This is only safe because we create a new Smi, which does not cause |
8737 // heap allocation. | 8739 // heap allocation. |
8738 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8740 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
8739 } | 8741 } |
8740 | 8742 |
8741 } // namespace dart | 8743 } // namespace dart |
8742 | 8744 |
8743 #endif // VM_OBJECT_H_ | 8745 #endif // VM_OBJECT_H_ |
OLD | NEW |