From 7fb49da8ec62e8a10ed9419ade9f32c6b1174687 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 6 Oct 2014 09:12:41 +0100 Subject: Add support for floats and doubles. - Follows Quick conventions. - Currently only works with baseline register allocator. Change-Id: Ie4b8e298f4f5e1cd82364da83e4344d4fc3621a3 --- compiler/optimizing/optimizing_unit_test.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/optimizing_unit_test.h') diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h index 6dd53e5b14..5b693dde07 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h @@ -68,8 +68,10 @@ void RemoveSuspendChecks(HGraph* graph) { } // Create a control-flow graph from Dex instructions. -inline HGraph* CreateCFG(ArenaAllocator* allocator, const uint16_t* data) { - HGraphBuilder builder(allocator); +inline HGraph* CreateCFG(ArenaAllocator* allocator, + const uint16_t* data, + Primitive::Type return_type = Primitive::kPrimInt) { + HGraphBuilder builder(allocator, return_type); const DexFile::CodeItem* item = reinterpret_cast(data); HGraph* graph = builder.BuildGraph(*item); -- cgit v1.2.3-59-g8ed1b