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

Unified Diff: runtime/vm/flow_graph_compiler_x64.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_x64.cc
diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc
index 49aeed86e43b1dd212492df1dacef92efb924f22..e6b9c0f5059f80999d3d32031fab74c2e4b6b50a 100644
--- a/runtime/vm/flow_graph_compiler_x64.cc
+++ b/runtime/vm/flow_graph_compiler_x64.cc
@@ -1137,6 +1137,7 @@ void FlowGraphCompiler::CompileGraph() {
}
}
+ MaybeEmitCodeSourceMapEntry(TokenPosition::kDartCodePrologue);
ASSERT(!block_order().is_empty());
VisitBlocks();
@@ -1146,6 +1147,7 @@ void FlowGraphCompiler::CompileGraph() {
// Emit function patching code. This will be swapped with the first 13 bytes
// at entry point.
+ SaveCodeSize();
if (is_optimizing() && !FLAG_precompilation) {
// Leave enough space for patching in case of lazy deoptimization from
// deferred code.
@@ -1153,6 +1155,7 @@ void FlowGraphCompiler::CompileGraph() {
lazy_deopt_pc_offset_ = assembler()->CodeSize();
__ Jmp(*StubCode::DeoptimizeLazy_entry(), PP);
}
+ MaybeEmitCodeSourceMapEntry(TokenPosition::kDartCodeEpilogue);
}

Powered by Google App Engine
This is Rietveld 408576698