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

Unified Diff: runtime/vm/compiler.cc

Issue 1327383002: Don't optimize away static field initialization when precompiling. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index b02e904f6d0045ddd8adf8ccbd1ec0816a232b51..0676b27d993e368747d3bc1cf84e3a4cf26cd8ae 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -1308,6 +1308,10 @@ void Compiler::CompileStaticInitializer(const Field& field) {
false, // optimized
Isolate::kNoDeoptId);
+ if (FLAG_disassemble) {
hausner 2015/09/10 22:55:12 I think you should add the disassemble filter like
rmacnak 2015/09/11 00:07:13 Hm, yes. I guess I was missing them from my disass
+ DisassembleCode(parsed_function->function(), false);
+ }
+
const Function& initializer = parsed_function->function();
field.SetPrecompiledInitializer(initializer);
}
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698