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

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

Issue 1337083004: - Turn on writing of ic_data_array so that we have that information for script snapshots that would… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
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 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1744 1744
1745 class PatchClass : public Object { 1745 class PatchClass : public Object {
1746 public: 1746 public:
1747 RawClass* patched_class() const { return raw_ptr()->patched_class_; } 1747 RawClass* patched_class() const { return raw_ptr()->patched_class_; }
1748 RawClass* source_class() const { return raw_ptr()->source_class_; } 1748 RawClass* source_class() const { return raw_ptr()->source_class_; }
1749 RawScript* Script() const; 1749 RawScript* Script() const;
1750 1750
1751 static intptr_t InstanceSize() { 1751 static intptr_t InstanceSize() {
1752 return RoundedAllocationSize(sizeof(RawPatchClass)); 1752 return RoundedAllocationSize(sizeof(RawPatchClass));
1753 } 1753 }
1754 static bool IsInFullSnapshot(RawPatchClass* cls) {
1755 NoSafepointScope no_safepoint;
1756 return Class::IsInFullSnapshot(cls->ptr()->patched_class_);
1757 }
1754 1758
1755 static RawPatchClass* New(const Class& patched_class, 1759 static RawPatchClass* New(const Class& patched_class,
1756 const Class& source_class); 1760 const Class& source_class);
1757 1761
1758 private: 1762 private:
1759 void set_patched_class(const Class& value) const; 1763 void set_patched_class(const Class& value) const;
1760 void set_source_class(const Class& value) const; 1764 void set_source_class(const Class& value) const;
1761 1765
1762 static RawPatchClass* New(); 1766 static RawPatchClass* New();
1763 1767
(...skipping 6364 matching lines...) Expand 10 before | Expand all | Expand 10 after
8128 8132
8129 8133
8130 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8134 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8131 intptr_t index) { 8135 intptr_t index) {
8132 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8136 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8133 } 8137 }
8134 8138
8135 } // namespace dart 8139 } // namespace dart
8136 8140
8137 #endif // VM_OBJECT_H_ 8141 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_entry.h ('k') | runtime/vm/object.cc » ('j') | runtime/vm/raw_object_snapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698