From d0d4852847432368b090c184d6639e573538dccf Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Tue, 4 Nov 2014 16:40:20 +0000 Subject: [optimizing compiler] Add div-int and exception handling. - for backends: arm, x86, x86_64 - fixed a register allocator bug: the request for a fixed register for the first input was ignored if the output was kSameAsFirstInput - added divide by zero exception - more tests - shuffle around some code in the builder to reduce the number of lines of code for a single function. Change-Id: Id3a515e02bfbc66cd9d16cb9746f7551bdab3d42 --- compiler/optimizing/builder.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'compiler/optimizing/builder.h') diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h index f25415bc3..f09f72954 100644 --- a/compiler/optimizing/builder.h +++ b/compiler/optimizing/builder.h @@ -120,6 +120,11 @@ class HGraphBuilder : public ValueObject { Primitive::Type input_type, Primitive::Type result_type); + void BuildCheckedDiv(const Instruction& instruction, + uint32_t dex_offset, + Primitive::Type type, + bool second_is_lit); + void BuildReturn(const Instruction& instruction, Primitive::Type type); // Builds an instance field access node and returns whether the instruction is supported. @@ -150,6 +155,8 @@ class HGraphBuilder : public ValueObject { uint32_t* args, uint32_t register_index); + void BuildFillArrayData(const Instruction& instruction, uint32_t dex_offset); + // Fills the given object with data as specified in the fill-array-data // instruction. Currently only used for non-reference and non-floating point // arrays. -- cgit v1.2.3