summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2018-10-31 12:43:40 +0000
committerDavid Srbecky <dsrbecky@google.com>2018-11-08 10:30:21 +0000
commit47ad3763e0f0e74c6469e899af883a6c4d09d7bf (patch)
treed6e67f431a21ee8fbdfe6d2283e1e04587a8aeca /compiler/optimizing/graph_visualizer.cc
parentfe59955fc41e277bf1c60378202ba785abb1e4a8 (diff)
Replace switch interpreter macros with C++ functions.
C++ code is more maintainable than huge macros. The "return" statement was used within the macros to skip the rest of the interpreted opcode. This is slightly more tricky in functions. All such use cases have been replaced with "return false", and the calling functions always check the return value and propagate it up. Performance difference is within noise (golem using the switch). This halves per-file compile time to 1min. Test: "test.py -b -r --interpreter --host" with switch interpreter. Change-Id: I01d861dec1c4a7e95e412fd4b662e5a4d7bd55a8
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions