From 3946844c34ad965515f677084b07d663d70ad1b8 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 2 Sep 2014 15:17:15 +0100 Subject: Runtime support for the new stack maps for the opt compiler. Now most of the methods supported by the compiler can be optimized, instead of using the baseline. Change-Id: I80ab36a34913fa4e7dd576c7bf55af63594dc1fa --- compiler/compiled_method.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'compiler/compiled_method.cc') diff --git a/compiler/compiled_method.cc b/compiler/compiled_method.cc index f9a78be6e8..ba5bd30b01 100644 --- a/compiler/compiled_method.cc +++ b/compiler/compiled_method.cc @@ -162,6 +162,25 @@ CompiledMethod::CompiledMethod(CompilerDriver* driver, cfi_info_(driver->DeduplicateCFIInfo(cfi_info)) { } +CompiledMethod::CompiledMethod(CompilerDriver* driver, + InstructionSet instruction_set, + const std::vector& quick_code, + const size_t frame_size_in_bytes, + const uint32_t core_spill_mask, + const uint32_t fp_spill_mask, + const std::vector& mapping_table, + const std::vector& stack_map) + : CompiledCode(driver, instruction_set, quick_code), + frame_size_in_bytes_(frame_size_in_bytes), + core_spill_mask_(core_spill_mask), + fp_spill_mask_(fp_spill_mask), + src_mapping_table_(driver->DeduplicateSrcMappingTable(SrcMap())), + mapping_table_(driver->DeduplicateMappingTable(mapping_table)), + vmap_table_(driver->DeduplicateVMapTable(stack_map)), + gc_map_(nullptr), + cfi_info_(nullptr) { +} + CompiledMethod::CompiledMethod(CompilerDriver* driver, InstructionSet instruction_set, const std::vector& code, -- cgit v1.2.3-59-g8ed1b