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

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
Index: runtime/vm/flow_graph_compiler.h
diff --git a/runtime/vm/flow_graph_compiler.h b/runtime/vm/flow_graph_compiler.h
index 7a1e1569a035cf7d8b0744b2811cf0d8f3d7025a..b2dc4c138868c5360aaab4d45f80c4419a39120f 100644
--- a/runtime/vm/flow_graph_compiler.h
+++ b/runtime/vm/flow_graph_compiler.h
@@ -587,6 +587,17 @@ class FlowGraphCompiler : public ValueObject {
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 SaveCodeSize();
rmacnak 2016/02/25 23:04:40 Consider BeginCodeSourceRange()/EndCodeSourceRange
Cutch 2016/02/26 15:59:22 Done.
+ bool MaybeEmitCodeSourceMapEntry(TokenPosition token_pos);
+
private:
friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_.
@@ -744,6 +755,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_;

Powered by Google App Engine
This is Rietveld 408576698