Home | History | Annotate | Download | only in quick

Lines Matching refs:table

227 /* Dump a mapping table */
422 LOG(INFO) << "Switch table for offset 0x" << std::hex << bx_offset;
424 if (tab_rec->table[0] == Instruction::kSparseSwitchSignature) {
425 const int* keys = reinterpret_cast<const int*>(&(tab_rec->table[2]));
426 for (int elems = 0; elems < tab_rec->table[1]; elems++) {
438 DCHECK_EQ(static_cast<int>(tab_rec->table[0]),
440 for (int elems = 0; elems < tab_rec->table[1]; elems++) {
460 code_buffer_.push_back(tab_rec->table[i] & 0xFF);
461 code_buffer_.push_back((tab_rec->table[i] >> 8) & 0xFF);
501 LOG(INFO) << "Bad dex2pcMapping table in " << PrettyMethod(cu_->method_idx, *cu_->dex_file);
502 LOG(INFO) << "Entries @ decode: " << mir_graph_->catches_.size() << ", Entries in table: "
532 // Verify the encoded table holds the expected data.
533 MappingTable table(&encoded_mapping_table_.GetData()[0]);
534 CHECK_EQ(table.TotalSize(), total_entries);
535 CHECK_EQ(table.PcToDexSize(), pc2dex_entries);
536 CHECK_EQ(table.DexToPcSize(), dex2pc_mapping_table_.size() / 2);
537 MappingTable::PcToDexIterator it = table.PcToDexBegin();
543 MappingTable::DexToPcIterator it2 = table.DexToPcBegin();
554 NativePcToReferenceMapBuilder(std::vector<uint8_t>* table,
558 table_(table) {
565 // Resize table and set up header.
566 table->resize((EntryWidth() * entries) + sizeof(uint32_t));
568 (*table)[0] = native_offset_width_ & 7;
570 (*table)[0] |= (references_width_ << 3) & 0xFF;
571 (*table)[1] = (references_width_ >> 5) & 0xFF;
573 (*table)[2] = entries & 0xFF;
574 (*table)[3] = (entries >> 8) & 0xFF;
618 // Number of entries in the table.
626 // The table we're building.
670 if (tab_rec->table[0] == Instruction::kSparseSwitchSignature) {
671 offset += tab_rec->table[1] * (sizeof(int) * 2);
673 DCHECK_EQ(static_cast<int>(tab_rec->table[0]),
675 offset += tab_rec->table[1] * sizeof(int);
779 // Create the mapping table and native offset to reference map.
788 * branch table during the assembly phase. Be sure to set
807 const uint16_t* table = tab_rec->table;
809 const int *targets = reinterpret_cast<const int*>(&table[4]);
810 int entries = table[1];
811 int low_key = s4FromSwitchData(&table[2]);
818 const uint16_t* table = tab_rec->table;
820 int entries = table[1];
821 const int* keys = reinterpret_cast<const int*>(&table[2]);
833 if (tab_rec->table[0] == Instruction::kPackedSwitchSignature) {
835 } else if (tab_rec->table[0] == Instruction::kSparseSwitchSignature) {
838 LOG(FATAL) << "Invalid switch table";
843 void Mir2Lir::DumpSparseSwitchTable(const uint16_t* table) {
847 * ushort size number of entries in the table; > 0
853 uint16_t ident = table[0];
854 int entries = table[1];
855 const int* keys = reinterpret_cast<const int*>(&table[2]);
857 LOG(INFO) << "Sparse switch table - ident:0x" << std::hex << ident
864 void Mir2Lir::DumpPackedSwitchTable(const uint16_t* table) {
868 * ushort size number of entries in the table
874 uint16_t ident = table[0];
875 const int* targets = reinterpret_cast<const int*>(&table[4]);
876 int entries = table[1];
877 int low_key = s4FromSwitchData(&table[2]);
878 LOG(INFO) << "Packed switch table - ident:0x" << std::hex << ident