From d881df5aad7950a185480876951762c1f60ea708 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 24 Nov 2014 23:28:39 -0800 Subject: ART: Add PackedSwitch support to the optimizing compiler Add simple packed-switch support through chained IFs. Now enables compiled versions of 015-switch and 095-switch-MAX_INT. Change-Id: I17cc8d659d1dd2d64227851c23998c04367e8cf5 --- compiler/optimizing/builder.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/optimizing/builder.h') diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h index 8519bcba6..0e46899d9 100644 --- a/compiler/optimizing/builder.h +++ b/compiler/optimizing/builder.h @@ -202,6 +202,10 @@ class HGraphBuilder : public ValueObject { uint16_t type_index, uint32_t dex_pc); + // Builds an instruction sequence for a packed switch statement. This will punt to the interpreter + // for a switch with a full 64k set of cases. + bool BuildPackedSwitch(const Instruction& instruction, uint32_t dex_pc); + ArenaAllocator* const arena_; // A list of the size of the dex code holding block information for -- cgit v1.2.3