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

Unified Diff: runtime/vm/object.cc

Issue 2556193003: VM: Make precompiler process constants/fields only once, avoid using pool.InfoAt() (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index ba603999d80e122a4dd3d688ef6b5c3ab92f08d8..f60ab345f95fa026c43b842d891884eb83e7c579 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -11602,8 +11602,8 @@ void ObjectPool::set_info_array(const TypedData& info_array) const {
ObjectPool::EntryType ObjectPool::InfoAt(intptr_t index) const {
- const TypedData& array = TypedData::Handle(info_array());
- return static_cast<EntryType>(array.GetInt8(index));
+ ObjectPoolInfo pool_info(*this);
+ return pool_info.InfoAt(index);
}

Powered by Google App Engine
This is Rietveld 408576698