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

Unified Diff: runtime/vm/flow_graph_compiler.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/compiler.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.h
diff --git a/runtime/vm/flow_graph_compiler.h b/runtime/vm/flow_graph_compiler.h
index 960b78c4b287cd16bc29a5f4139a9a16685b26bd..60ce3845759a449ff153e04cfcaec6b4f0607e01 100644
--- a/runtime/vm/flow_graph_compiler.h
+++ b/runtime/vm/flow_graph_compiler.h
@@ -594,6 +594,17 @@ class FlowGraphCompiler : public ValueObject {
RawArray* InliningIdToTokenPos() const;
RawArray* CallerInliningIdMap() const;
+ CodeSourceMapBuilder* code_source_map_builder() {
+ if (code_source_map_builder_ == NULL) {
+ code_source_map_builder_ = new CodeSourceMapBuilder();
+ }
+ ASSERT(code_source_map_builder_ != NULL);
+ return code_source_map_builder_;
+ }
+
+ void BeginCodeSourceRange();
+ bool EndCodeSourceRange(TokenPosition token_pos);
+
private:
friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_.
@@ -751,6 +762,8 @@ class FlowGraphCompiler : public ValueObject {
ExceptionHandlerList* exception_handlers_list_;
DescriptorList* pc_descriptors_list_;
StackmapTableBuilder* stackmap_table_builder_;
+ CodeSourceMapBuilder* code_source_map_builder_;
+ intptr_t saved_code_size_;
GrowableArray<BlockInfo*> block_info_;
GrowableArray<CompilerDeoptInfo*> deopt_infos_;
GrowableArray<SlowPathCode*> slow_path_code_;
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698