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

Unified Diff: runtime/vm/il_printer.cc

Issue 12330113: null value can be the receiver of methods on Object (e.g. hashCode). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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/il_printer.h ('k') | tests/language/null_hashcode_optimized_vm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index c4d74e5411b508758475efb1fb95cdd4ffa49ff2..d938145143ecc1d6ba87c6e85252de074894a778 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -32,6 +32,14 @@ void BufferFormatter::VPrint(const char* format, va_list args) {
}
+void FlowGraphPrinter::PrintGraph(const char* phase, FlowGraph* flow_graph) {
+ OS::Print("*** BEGIN CFG\n%s\n", phase);
+ FlowGraphPrinter printer(*flow_graph);
+ printer.PrintBlocks();
+ OS::Print("*** END CFG\n");
+}
+
+
void FlowGraphPrinter::PrintBlocks() {
if (!function_.IsNull()) {
OS::Print("==== %s\n", function_.ToFullyQualifiedCString());
« no previous file with comments | « runtime/vm/il_printer.h ('k') | tests/language/null_hashcode_optimized_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698