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

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
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 0a0c90ed96dc250a8499a3b1bce5c46a3f7baeb1..1680d6ecc6f50f49bb6ed06f56eaef455a52aaf3 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4040,6 +4040,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)
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698