summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2015-08-04 16:22:25 +0100
committerDavid Brazdil <dbrazdil@google.com>2015-08-04 16:39:38 +0100
commitcb1c0557033065f2436ee79e7fa6c19d87064801 (patch)
tree741b623b2e370a133b5cef9feed2542151186db6 /compiler/optimizing/graph_visualizer.cc
parente238414eee3ec933a4ceb1894666c9ef331ace0c (diff)
ART: Move exception clearing into own instruction
Runtime delivers exceptions only to catch blocks which begin with a MOVE_EXCEPTION instruction (in DEX). In that case, the catch block is expected to clear the thread-local exception storage after having read the exception reference. This patch changes Optimizing to represent MOVE_EXCEPTION with two instructions - HLoadException and HClearException - instead of one. If the exception reference is not used, HLoadException can be safely removed, saving a memory load without breaking the runtime behaviour. Change-Id: Idad8a714467bf9d9d5fccefbc43c0bd8ae13ddba
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions