From 6c10a977ec892c26c8e306356491833bbb073d40 Mon Sep 17 00:00:00 2001 From: Ben Cheng Date: Thu, 29 Oct 2009 14:39:18 -0700 Subject: Implement chaining up to the first 64 cases in a switch statement. --- vm/compiler/codegen/CompilerCodegen.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm/compiler/codegen/CompilerCodegen.h') diff --git a/vm/compiler/codegen/CompilerCodegen.h b/vm/compiler/codegen/CompilerCodegen.h index 8f138a699..75307a766 100644 --- a/vm/compiler/codegen/CompilerCodegen.h +++ b/vm/compiler/codegen/CompilerCodegen.h @@ -19,6 +19,9 @@ #include "compiler/CompilerIR.h" +/* Maximal number of switch cases to have inline chains */ +#define MAX_CHAINED_SWITCH_CASES 64 + /* Work unit is architecture dependent */ bool dvmCompilerDoWork(CompilerWorkOrder *work); -- cgit v1.2.3