Lines Matching refs:u2
235 static u4 ReadU4(const u2* ptr) { return ptr[0] | (u4(ptr[1]) << 16); } in ReadU4()
237 static void WriteU4(u2* ptr, u4 val) { in WriteU4()
640 data.Push<dex::u2>(ir_type->index); in WriteTypeList()
822 void Writer::WriteInstructions(slicer::ArrayView<const dex::u2> instructions) { in WriteInstructions()
826 dex::u2* ptr = dex_->code.ptr<dex::u2>(offset); in WriteInstructions()
827 dex::u2* const end = ptr + instructions.size(); in WriteInstructions()
832 dex::u2* idx = &ptr[1]; in WriteInstructions()
833 dex::u2* idx2 = nullptr; in WriteInstructions()
869 SLICER_CHECK_EQ(dex::u2(new_index), new_index); in WriteInstructions()
870 *idx = dex::u2(new_index); in WriteInstructions()
878 SLICER_CHECK_EQ(dex::u2(new_index), new_index); in WriteInstructions()
879 *idx = dex::u2(new_index); in WriteInstructions()
886 SLICER_CHECK_EQ(dex::u2(new_index), new_index); in WriteInstructions()
887 *idx = dex::u2(new_index); in WriteInstructions()
894 SLICER_CHECK_EQ(dex::u2(new_index), new_index); in WriteInstructions()
895 *idx = dex::u2(new_index); in WriteInstructions()
902 SLICER_CHECK_EQ(dex::u2(new_index), new_index); in WriteInstructions()
903 *idx = dex::u2(new_index); in WriteInstructions()
906 SLICER_CHECK_EQ(dex::u2(new_index2), new_index2); in WriteInstructions()
907 *idx2 = dex::u2(new_index2); in WriteInstructions()
929 std::map<dex::u2, dex::u2> handlers_offset_map; in WriteTryBlocks()
968 dex::u2 new_Handler_offset = handlers_offset_map[dex_try.handler_off]; in WriteTryBlocks()