From 46cd4fb73824ab57160994c149ce2d7a06923b83 Mon Sep 17 00:00:00 2001 From: Ben Cheng Date: Wed, 16 Mar 2011 17:19:06 -0700 Subject: Extend a trace with a backward branch into a loop. When seeing a trace that ends with a backward branch, exhaust all code blocks reachable from that trace and try to identify if there exists a non-nested loop. If the derived loop is found to be too complex or only acyclic code is seen, revert to the original compilation mechanism to translate a simple trace. This CL uses the whole-method parser/dataflow analysis framework to identify such loops. No optimization/codegen are performed yet. Bug: 4086718 Change-Id: I19ed3ee53ea1cbda33940c533de8e9220e647156 --- vm/Globals.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm/Globals.h') diff --git a/vm/Globals.h b/vm/Globals.h index ad28e147c..df10e3681 100644 --- a/vm/Globals.h +++ b/vm/Globals.h @@ -878,6 +878,9 @@ struct DvmJitGlobals { /* Flag to dump all compiled code */ bool printMe; + /* Per-process debug flag toggled when receiving a SIGUSR2 */ + bool receivedSIGUSR2; + /* Trace profiling mode */ TraceProfilingModes profileMode; -- cgit v1.2.3