From bff2465abb4b0c097623c82f18a1307ea890bff1 Mon Sep 17 00:00:00 2001 From: buzbee Date: Sun, 6 May 2012 16:22:05 -0700 Subject: [Compiler] Add object ref discovery Previously, the compiler ran a type inference pass to identify floating point uses for register allocation. The grand plan involves moving all type inference into the Art compiler driver (using the results from verification). As a short-term workaround, this CL adds object reference discovery to the type inference pass. This is needed for LLVM-IR generation. Change-Id: I655806264181bfd26ab9340582a02c657cd3f678 --- src/compiler/codegen/mips/MipsLIR.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/compiler/codegen/mips/MipsLIR.h') diff --git a/src/compiler/codegen/mips/MipsLIR.h b/src/compiler/codegen/mips/MipsLIR.h index ac222c456f..c9f917b4a6 100644 --- a/src/compiler/codegen/mips/MipsLIR.h +++ b/src/compiler/codegen/mips/MipsLIR.h @@ -145,16 +145,16 @@ namespace art { #define r_FRESULT1 r_F1 /* RegisterLocation templates return values (r_V0, or r_V0/r_V1) */ -#define LOC_C_RETURN {kLocPhysReg, 0, 0, 0, 0, 0, 1, r_V0, INVALID_REG, \ - INVALID_SREG} +#define LOC_C_RETURN {kLocPhysReg, 0, 0, 0, 0, 0, 0, 1, r_V0, INVALID_REG, \ + INVALID_SREG} #define LOC_C_RETURN_FLOAT LOC_C_RETURN -#define LOC_C_RETURN_ALT {kLocPhysReg, 0, 0, 0, 0, 0, 1, r_F0, INVALID_REG, \ - INVALID_SREG} -#define LOC_C_RETURN_WIDE {kLocPhysReg, 1, 0, 0, 0, 0, 1, r_RESULT0, r_RESULT1,\ - INVALID_SREG} +#define LOC_C_RETURN_ALT {kLocPhysReg, 0, 0, 0, 0, 0, 0, 1, r_F0, INVALID_REG, \ + INVALID_SREG} +#define LOC_C_RETURN_WIDE {kLocPhysReg, 1, 0, 0, 0, 0, 0, 1, r_RESULT0, \ + r_RESULT1, INVALID_SREG} #define LOC_C_RETURN_WIDE_DOUBLE LOC_C_RETURN_WIDE -#define LOC_C_RETURN_WIDE_ALT {kLocPhysReg, 1, 0, 0, 0, 0, 1, r_FRESULT0,\ - r_FRESULT1, INVALID_SREG} +#define LOC_C_RETURN_WIDE_ALT {kLocPhysReg, 1, 0, 0, 0, 0, 0, 1, r_FRESULT0,\ + r_FRESULT1, INVALID_SREG} enum ResourceEncodingPos { kGPReg0 = 0, -- cgit v1.2.3-59-g8ed1b