Lines Matching defs:table

35 /* Dump a mapping table */
351 MappingTable table(&encoded_mapping_table_[0]);
353 table.PcToDexSize(), table.PcToDexBegin());
355 table.DexToPcSize(), table.DexToPcBegin());
544 LOG(INFO) << "Switch table for offset 0x" << std::hex << bx_offset;
546 if (tab_rec->table[0] == Instruction::kSparseSwitchSignature) {
547 const int32_t* keys = reinterpret_cast<const int32_t*>(&(tab_rec->table[2]));
548 for (int elems = 0; elems < tab_rec->table[1]; elems++) {
560 DCHECK_EQ(static_cast<int>(tab_rec->table[0]),
562 for (int elems = 0; elems < tab_rec->table[1]; elems++) {
582 code_buffer_.push_back(tab_rec->table[i] & 0xFF);
583 code_buffer_.push_back((tab_rec->table[i] >> 8) & 0xFF);
609 MappingTable table(&encoded_mapping_table_[0]);
611 dex_pcs.reserve(table.DexToPcSize());
612 for (auto it = table.DexToPcBegin(), end = table.DexToPcEnd(); it != end; ++it) {
634 LOG(INFO) << "Bad dex2pcMapping table in " << PrettyMethod(cu_->method_idx, *cu_->dex_file);
635 LOG(INFO) << "Entries @ decode: " << mir_graph_->catches_.size() << ", Entries in table: "
636 << table.DexToPcSize();
711 // Verify the encoded table holds the expected data.
712 MappingTable table(&encoded_mapping_table_[0]);
713 CHECK_EQ(table.TotalSize(), total_entries);
714 CHECK_EQ(table.PcToDexSize(), pc2dex_entries);
715 auto it = table.PcToDexBegin();
716 auto it2 = table.DexToPcBegin();
729 CHECK(it == table.PcToDexEnd());
730 CHECK(it2 == table.DexToPcEnd());
780 if (tab_rec->table[0] == Instruction::kSparseSwitchSignature) {
781 offset += tab_rec->table[1] * (sizeof(int) * 2);
783 DCHECK_EQ(static_cast<int>(tab_rec->table[0]),
785 offset += tab_rec->table[1] * sizeof(int);
808 * branch table during the assembly phase. All resource flags
830 const uint16_t* table = tab_rec->table;
832 const int32_t *targets = reinterpret_cast<const int32_t*>(&table[4]);
833 int entries = table[1];
834 int low_key = s4FromSwitchData(&table[2]);
841 const uint16_t* table = tab_rec->table;
843 int entries = table[1];
844 const int32_t* keys = reinterpret_cast<const int32_t*>(&table[2]);
856 if (tab_rec->table[0] == Instruction::kPackedSwitchSignature) {
858 } else if (tab_rec->table[0] == Instruction::kSparseSwitchSignature) {
861 LOG(FATAL) << "Invalid switch table";
866 void Mir2Lir::DumpSparseSwitchTable(const uint16_t* table) {
870 * ushort size number of entries in the table; > 0
876 uint16_t ident = table[0];
877 int entries = table[1];
878 const int32_t* keys = reinterpret_cast<const int32_t*>(&table[2]);
880 LOG(INFO) << "Sparse switch table - ident:0x" << std::hex << ident
887 void Mir2Lir::DumpPackedSwitchTable(const uint16_t* table) {
891 * ushort size number of entries in the table
897 uint16_t ident = table[0];
898 const int32_t* targets = reinterpret_cast<const int32_t*>(&table[4]);
899 int entries = table[1];
900 int low_key = s4FromSwitchData(&table[2]);
901 LOG(INFO) << "Packed switch table - ident:0x" << std::hex << ident