diff options
| author | 2017-01-21 01:29:33 +0000 | |
|---|---|---|
| committer | 2017-01-21 01:29:34 +0000 | |
| commit | 388df9e0943fd4c858b99f268d9655336df17062 (patch) | |
| tree | 957bb2de09a92a94775d2aae925090249503c4a7 /compiler/optimizing/code_generator.cc | |
| parent | 0da2abfabe6e920e8a065ffbb40108dc6c196676 (diff) | |
| parent | a2f526f889be06f96ea59624c9dfb1223b3839f3 (diff) | |
Merge "Compressed native PC for stack maps"
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
| -rw-r--r-- | compiler/optimizing/code_generator.cc | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index 70c2738010..99427f05da 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -839,8 +839,8 @@ void CodeGenerator::RecordPcInfo(HInstruction* instruction,      // last emitted is different than the native pc of the stack map just emitted.      size_t number_of_stack_maps = stack_map_stream_.GetNumberOfStackMaps();      if (number_of_stack_maps > 1) { -      DCHECK_NE(stack_map_stream_.GetStackMap(number_of_stack_maps - 1).native_pc_offset, -                stack_map_stream_.GetStackMap(number_of_stack_maps - 2).native_pc_offset); +      DCHECK_NE(stack_map_stream_.GetStackMap(number_of_stack_maps - 1).native_pc_code_offset, +                stack_map_stream_.GetStackMap(number_of_stack_maps - 2).native_pc_code_offset);      }    }  } @@ -848,7 +848,8 @@ void CodeGenerator::RecordPcInfo(HInstruction* instruction,  bool CodeGenerator::HasStackMapAtCurrentPc() {    uint32_t pc = GetAssembler()->CodeSize();    size_t count = stack_map_stream_.GetNumberOfStackMaps(); -  return count > 0 && stack_map_stream_.GetStackMap(count - 1).native_pc_offset == pc; +  CodeOffset native_pc_offset = stack_map_stream_.GetStackMap(count - 1).native_pc_code_offset; +  return (count > 0) && (native_pc_offset.Uint32Value(GetInstructionSet()) == pc);  }  void CodeGenerator::MaybeRecordNativeDebugInfo(HInstruction* instruction,  |