diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-03 21:36:10 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-11-04 18:40:08 -0800 |
commit | 277ccbd200ea43590dfc06a93ae184a765327ad0 (patch) | |
tree | d89712e93da5fb2748989353c9ee071102cf3f33 /compiler/optimizing/stack_map_stream.h | |
parent | ad17d41841ba1fb177fb0bf175ec0e9f5e1412b3 (diff) |
ART: More warnings
Enable -Wno-conversion-null, -Wredundant-decls and -Wshadow in general,
and -Wunused-but-set-parameter for GCC builds.
Change-Id: I81bbdd762213444673c65d85edae594a523836e5
Diffstat (limited to 'compiler/optimizing/stack_map_stream.h')
-rw-r--r-- | compiler/optimizing/stack_map_stream.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/compiler/optimizing/stack_map_stream.h b/compiler/optimizing/stack_map_stream.h index 5f74c33643..9cfa71c13f 100644 --- a/compiler/optimizing/stack_map_stream.h +++ b/compiler/optimizing/stack_map_stream.h @@ -167,33 +167,33 @@ class StackMapStream : public ValueObject { } // Set the register map. - MemoryRegion region = dex_register_maps_region.Subregion( + MemoryRegion register_region = dex_register_maps_region.Subregion( next_dex_register_map_offset, DexRegisterMap::kFixedSize + entry.num_dex_registers * DexRegisterMap::SingleEntrySize()); - next_dex_register_map_offset += region.size(); - DexRegisterMap dex_register_map(region); - stack_map.SetDexRegisterMapOffset(region.start() - memory_start); + next_dex_register_map_offset += register_region.size(); + DexRegisterMap dex_register_map(register_region); + stack_map.SetDexRegisterMapOffset(register_region.start() - memory_start); - for (size_t i = 0; i < entry.num_dex_registers; ++i) { + for (size_t j = 0; j < entry.num_dex_registers; ++j) { DexRegisterEntry register_entry = - dex_register_maps_.Get(i + entry.dex_register_maps_start_index); - dex_register_map.SetRegisterInfo(i, register_entry.kind, register_entry.value); + dex_register_maps_.Get(j + entry.dex_register_maps_start_index); + dex_register_map.SetRegisterInfo(j, register_entry.kind, register_entry.value); } // Set the inlining info. if (entry.inlining_depth != 0) { - MemoryRegion region = inline_infos_region.Subregion( + MemoryRegion inline_region = inline_infos_region.Subregion( next_inline_info_offset, InlineInfo::kFixedSize + entry.inlining_depth * InlineInfo::SingleEntrySize()); - next_inline_info_offset += region.size(); - InlineInfo inline_info(region); + next_inline_info_offset += inline_region.size(); + InlineInfo inline_info(inline_region); - stack_map.SetInlineDescriptorOffset(region.start() - memory_start); + stack_map.SetInlineDescriptorOffset(inline_region.start() - memory_start); inline_info.SetDepth(entry.inlining_depth); - for (size_t i = 0; i < entry.inlining_depth; ++i) { - InlineInfoEntry inline_entry = inline_infos_.Get(i + entry.inline_infos_start_index); - inline_info.SetMethodReferenceIndexAtDepth(i, inline_entry.method_index); + for (size_t j = 0; j < entry.inlining_depth; ++j) { + InlineInfoEntry inline_entry = inline_infos_.Get(j + entry.inline_infos_start_index); + inline_info.SetMethodReferenceIndexAtDepth(j, inline_entry.method_index); } } else { stack_map.SetInlineDescriptorOffset(InlineInfo::kNoInlineInfo); |