Updating the compiler to use the new-world model
New compiler is integrated and passes first test (Fibonacci).
Change-Id: Ic5448ab89ebd22baa30fafc3d1300324687d1fc2
diff --git a/src/compiler/CompilerIR.h b/src/compiler/CompilerIR.h
index 02b5dfa..643e795 100644
--- a/src/compiler/CompilerIR.h
+++ b/src/compiler/CompilerIR.h
@@ -18,6 +18,7 @@
#define ART_SRC_COMPILER_COMPILER_IR_H_
#include "codegen/Optimizer.h"
+#include <vector>
typedef enum RegisterClass {
kCoreReg,
@@ -197,8 +198,7 @@
int totalSize; // header + code size
AssemblerStatus assemblerStatus; // Success or fix and retry
int assemblerRetries;
- unsigned char* codeBuffer;
- void* baseAddr;
+ std::vector<short>codeBuffer;
bool printMe;
bool printMeVerbose;
bool hasClassLiterals; // Contains class ptrs used as literals