From 86dbb9a12119273039ce272b41c809fa548b37b6 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 4 Jun 2014 11:12:39 +0100 Subject: Final CL to enable register allocation on x86. This CL implements: 1) Resolution after allocation: connecting the locations allocated to an interval within a block and between blocks. 2) Handling of fixed registers: some instructions require inputs/output to be at a specific location, and the allocator needs to deal with them in a special way. 3) ParallelMoveResolver::EmitNativeCode for x86. Change-Id: I0da6bd7eb66877987148b87c3be6a983b4e3f858 --- compiler/optimizing/codegen_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/codegen_test.cc') diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index 7684bb189d..8ee775cbe1 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -56,7 +56,7 @@ static void TestCode(const uint16_t* data, bool has_result = false, int32_t expe ASSERT_NE(graph, nullptr); InternalCodeAllocator allocator; CodeGenerator* codegen = CodeGenerator::Create(&arena, graph, kX86); - codegen->Compile(&allocator); + codegen->CompileBaseline(&allocator); typedef int32_t (*fptr)(); #if defined(__i386__) CommonCompilerTest::MakeExecutable(allocator.GetMemory(), allocator.GetSize()); @@ -66,7 +66,7 @@ static void TestCode(const uint16_t* data, bool has_result = false, int32_t expe } #endif codegen = CodeGenerator::Create(&arena, graph, kArm); - codegen->Compile(&allocator); + codegen->CompileBaseline(&allocator); #if defined(__arm__) CommonCompilerTest::MakeExecutable(allocator.GetMemory(), allocator.GetSize()); int32_t result = reinterpret_cast(allocator.GetMemory())(); -- cgit v1.2.3-59-g8ed1b