Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Side by Side Diff: runtime/vm/object.h

Issue 2194333002: RELOAD: Maintain identity of static tear-offs. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate_reload_test.cc ('k') | runtime/vm/object_reload.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/isolate_reload_test.cc ('k') | runtime/vm/object_reload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698