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

Unified Diff: runtime/vm/object.h

Issue 1740503002: Build CodeSourceMap for each code object (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 ee8782a77904b9e49635aac6898addd997a8ef17..26f6ac04c242302432447702801600042e0b6208 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4051,6 +4051,18 @@ class CodeSourceMap : public Object {
// Decode SLEB128 encoded integer. Update byte_index to the next integer.
intptr_t DecodeInteger(intptr_t* byte_index) const;
+ TokenPosition TokenPositionForPCOffset(uword pc_offset) const;
+ RawFunction* FunctionForPCOffset(const Code& code,
+ const Function& function,
+ uword pc_offset) const;
+ RawScript* ScriptForPCOffset(const Code& code,
+ const Function& function,
+ uword pc_offset) const;
+
+ static void Dump(const CodeSourceMap& code_source_map,
+ const Code& code,
+ const Function& function);
+
class Iterator : ValueObject {
public:
explicit Iterator(const CodeSourceMap& code_source_map)

Powered by Google App Engine
This is Rietveld 408576698