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

Unified Diff: runtime/vm/raw_object.cc

Issue 1634863002: Introduce CodeSourceMap object to hold pc -> token position mappings (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.cc
diff --git a/runtime/vm/raw_object.cc b/runtime/vm/raw_object.cc
index 730d50a04f0a37cac44440c18493bbaddaa339d1..d32b5abf8771f8d5bc1f9cb28092409c0f17534c 100644
--- a/runtime/vm/raw_object.cc
+++ b/runtime/vm/raw_object.cc
@@ -144,6 +144,13 @@ intptr_t RawObject::SizeFromClass() const {
instance_size = PcDescriptors::InstanceSize(length);
break;
}
+ case kCodeSourceMapCid: {
+ const RawCodeSourceMap* raw_code_source_map =
+ reinterpret_cast<const RawCodeSourceMap*>(this);
+ intptr_t length = raw_code_source_map->ptr()->length_;
+ instance_size = CodeSourceMap::InstanceSize(length);
+ break;
+ }
case kStackmapCid: {
const RawStackmap* map = reinterpret_cast<const RawStackmap*>(this);
intptr_t length = map->ptr()->length_;
@@ -589,6 +596,12 @@ intptr_t RawPcDescriptors::VisitPcDescriptorsPointers(
}
+intptr_t RawCodeSourceMap::VisitCodeSourceMapPointers(
+ RawCodeSourceMap* raw_obj, ObjectPointerVisitor* visitor) {
+ return CodeSourceMap::InstanceSize(raw_obj->ptr()->length_);
+}
+
+
intptr_t RawStackmap::VisitStackmapPointers(RawStackmap* raw_obj,
ObjectPointerVisitor* visitor) {
return Stackmap::InstanceSize(raw_obj->ptr()->length_);
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698