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

Unified Diff: runtime/vm/raw_object.h

Issue 1698323003: Don't include ICData::owner_ in precompiled snapshots. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index 9f394f990715781e5fa70f96a3ce0df52f45a4fb..a262edff2c4f773a7633dcc2d66fc633927bc13e 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -1437,14 +1437,17 @@ class RawICData : public RawObject {
RAW_HEAP_OBJECT_IMPLEMENTATION(ICData);
RawObject** from() {
- return reinterpret_cast<RawObject**>(&ptr()->owner_);
+ return reinterpret_cast<RawObject**>(&ptr()->ic_data_);
}
- RawObject* owner_; // Parent/calling function or original IC of cloned IC.
+ RawArray* ic_data_; // Contains class-ids, target and count.
RawString* target_name_; // Name of target function.
RawArray* args_descriptor_; // Arguments descriptor.
- RawArray* ic_data_; // Contains class-ids, target and count.
+ RawObject** to_precompiled_snapshot() {
+ return reinterpret_cast<RawObject**>(&ptr()->args_descriptor_);
+ }
+ RawObject* owner_; // Parent/calling function or original IC of cloned IC.
RawObject** to() {
- return reinterpret_cast<RawObject**>(&ptr()->ic_data_);
+ return reinterpret_cast<RawObject**>(&ptr()->owner_);
}
int32_t deopt_id_; // Deoptimization id corresponding to this IC.
uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons,

Powered by Google App Engine
This is Rietveld 408576698