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

Unified Diff: runtime/vm/raw_object.h

Issue 2279563002: AOT: Single target stub. (Closed)
Patch Set: add offset assertions 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object_service.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index 14a9895d999cb7fca3877134d22c6f5f4e1e20a0..03969a39247a51554e3e922d57cac9bdc6df5155 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -39,6 +39,7 @@ namespace dart {
V(ExceptionHandlers) \
V(Context) \
V(ContextScope) \
+ V(SingleTargetCache) \
V(ICData) \
V(MegamorphicCache) \
V(SubtypeTestCache) \
@@ -1480,6 +1481,21 @@ class RawContextScope : public RawObject {
};
+class RawSingleTargetCache : public RawObject {
+ RAW_HEAP_OBJECT_IMPLEMENTATION(SingleTargetCache);
+ RawObject** from() {
+ return reinterpret_cast<RawObject**>(&ptr()->target_);
+ }
+ RawCode* target_;
+ RawObject** to() {
+ return reinterpret_cast<RawObject**>(&ptr()->target_);
+ }
+ uword entry_point_;
+ classid_t lower_limit_;
+ classid_t upper_limit_;
+};
+
+
class RawICData : public RawObject {
RAW_HEAP_OBJECT_IMPLEMENTATION(ICData);
« no previous file with comments | « runtime/vm/object_service.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698