Shrink couple of x86 mterp handlers.

Use helpers to make more room for the follow-up CL.

Refactor the code so that it is possible to add
non-opcode specific helpers with custom name.

Test: test.py -b -r --interpreter -t 001-HelloWorld
Change-Id: I3714f83c10e1c16d3b26108e6eb475805482c785
diff --git a/tools/cpp-define-generator/globals.def b/tools/cpp-define-generator/globals.def
index 2324f51..6443a0c 100644
--- a/tools/cpp-define-generator/globals.def
+++ b/tools/cpp-define-generator/globals.def
@@ -22,6 +22,7 @@
 #include "dex/modifiers.h"
 #include "gc/accounting/card_table.h"
 #include "gc/heap.h"
+#include "interpreter/mterp/mterp.h"
 #include "jit/jit.h"
 #include "mirror/object.h"
 #include "mirror/object_reference.h"
@@ -50,6 +51,10 @@
            art::jit::kJitHotnessDisabled)
 ASM_DEFINE(MIN_LARGE_OBJECT_THRESHOLD,
            art::gc::Heap::kMinLargeObjectThreshold)
+ASM_DEFINE(MTERP_HANDLER_SIZE,
+           art::interpreter::kMterpHandlerSize)
+ASM_DEFINE(MTERP_HANDLER_SIZE_LOG2,
+           art::WhichPowerOf2(art::interpreter::kMterpHandlerSize))
 ASM_DEFINE(OBJECT_ALIGNMENT_MASK,
            art::kObjectAlignment - 1)
 ASM_DEFINE(OBJECT_ALIGNMENT_MASK_TOGGLED,