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

Unified Diff: runtime/vm/object.h

Issue 1758653003: Add source position information to profile (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/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 7c20cae3d325d3e57d4bb0243fcd842d0a51f9ab..fcdacfeaca312c262e49b9d6e5e1527eeab8662b 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4364,6 +4364,8 @@ class Code : public Object {
StorePointer(&raw_ptr()->code_source_map_, code_source_map.raw());
}
+ TokenPosition GetTokenPositionAt(intptr_t offset) const;
+
// Array of DeoptInfo objects.
RawArray* deopt_info_array() const {
return raw_ptr()->deopt_info_array_;
@@ -4462,8 +4464,12 @@ class Code : public Object {
RawArray* GetInlinedCallerIdMap() const;
void SetInlinedCallerIdMap(const Array& value) const;
+ // If |token_positions| is not NULL it will be populated with the token
+ // positions of the inlined calls.
void GetInlinedFunctionsAt(
- intptr_t offset, GrowableArray<Function*>* fs) const;
+ intptr_t offset,
+ GrowableArray<Function*>* fs,
+ GrowableArray<TokenPosition>* token_positions = NULL) const;
void DumpInlinedIntervals() const;

Powered by Google App Engine
This is Rietveld 408576698