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

Unified Diff: runtime/vm/flow_graph_compiler_arm.cc

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_arm.cc
diff --git a/runtime/vm/flow_graph_compiler_arm.cc b/runtime/vm/flow_graph_compiler_arm.cc
index 2b1454502b9595bb9d4758ebdce0dd94c5780c2a..0bbb5a77c9fba9fcec277cd7aefa4967c69a93fd 100644
--- a/runtime/vm/flow_graph_compiler_arm.cc
+++ b/runtime/vm/flow_graph_compiler_arm.cc
@@ -1128,12 +1128,14 @@ void FlowGraphCompiler::CompileGraph() {
}
}
+ MaybeEmitCodeSourceMapEntry(TokenPosition::kDartCodePrologue);
VisitBlocks();
__ bkpt(0);
ASSERT(assembler()->constant_pool_allowed());
GenerateDeferredCode();
+ SaveCodeSize();
if (is_optimizing() && !FLAG_precompilation) {
// Leave enough space for patching in case of lazy deoptimization from
// deferred code.
@@ -1145,6 +1147,7 @@ void FlowGraphCompiler::CompileGraph() {
lazy_deopt_pc_offset_ = assembler()->CodeSize();
__ Branch(*StubCode::DeoptimizeLazy_entry());
}
+ MaybeEmitCodeSourceMapEntry(TokenPosition::kDartCodeEpilogue);
}

Powered by Google App Engine
This is Rietveld 408576698