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

Unified Diff: runtime/vm/object.cc

Issue 1864143002: Add instruction tags to saved ICData (debug mode only). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 4f9f8d06a259a357c61a453189db396660bf058f..a0d5f2defe1fa87b6f7f8ec9196a0182eacaa26e 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -12210,6 +12210,12 @@ void ICData::set_ic_data_array(const Array& value) const {
}
+#if defined(TAG_IC_DATA)
+void ICData::set_tag(intptr_t value) const {
+ StoreNonPointer(&raw_ptr()->tag_, value);
+}
+#endif
+
intptr_t ICData::NumArgsTested() const {
return NumArgsTestedBits::decode(raw_ptr()->state_bits_);
}
@@ -12790,6 +12796,9 @@ RawICData* ICData::NewDescriptor(Zone* zone,
result.set_arguments_descriptor(arguments_descriptor);
result.set_deopt_id(deopt_id);
result.set_state_bits(0);
+#if defined(TAG_IC_DATA)
+ result.set_tag(-1);
+#endif
result.SetNumArgsTested(num_args_tested);
return result.raw();
}
@@ -12807,6 +12816,9 @@ RawICData* ICData::New() {
}
result.set_deopt_id(Thread::kNoDeoptId);
result.set_state_bits(0);
+#if defined(TAG_IC_DATA)
+ result.set_tag(-1);
+#endif
return result.raw();
}
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698