Home | History | Annotate | Download | only in compiler

Lines Matching refs:SizeOf

100   size_t offset = sizeof(*oat_header_);
112 offset += oat_dex_file->SizeOf();
166 offset += oat_class->SizeOf();
305 uint32_t code_size = code.size() * sizeof(code[0]);
308 code_offset = offset + sizeof(code_size) + thumb_offset;
316 offset += sizeof(code_size); // code size is prepended before code
326 size_t mapping_table_size = mapping_table.size() * sizeof(mapping_table[0]);
341 size_t vmap_table_size = vmap_table.size() * sizeof(vmap_table[0]);
356 size_t gc_map_size = gc_map.size() * sizeof(gc_map[0]);
435 if (!out.WriteFully(oat_header_, sizeof(*oat_header_))) {
439 size_oat_header_ += sizeof(*oat_header_);
692 uint32_t code_size = code.size() * sizeof(code[0]);
696 size_t code_offset = relative_offset + sizeof(code_size) + compiled_method->CodeDelta();
703 if (!out.WriteFully(&code_size, sizeof(code_size))) {
707 size_code_size_ += sizeof(code_size);
708 relative_offset += sizeof(code_size);
721 size_t mapping_table_size = mapping_table.size() * sizeof(mapping_table[0]);
745 size_t vmap_table_size = vmap_table.size() * sizeof(vmap_table[0]);
769 size_t gc_map_size = gc_map.size() * sizeof(gc_map[0]);
806 size_t OatWriter::OatDexFile::SizeOf() const {
807 return sizeof(dex_file_location_size_)
809 + sizeof(dex_file_location_checksum_)
810 + sizeof
811 + (sizeof(methods_offsets_[0]) * methods_offsets_.size());
815 oat_header.UpdateChecksum(&dex_file_location_size_, sizeof(dex_file_location_size_));
817 oat_header.UpdateChecksum(&dex_file_location_checksum_, sizeof(dex_file_location_checksum_));
818 oat_header.UpdateChecksum(&dex_file_offset_, sizeof(dex_file_offset_));
820 sizeof(methods_offsets_[0]) * methods_offsets_.size());
827 if (!out.WriteFully(&dex_file_location_size_, sizeof(dex_file_location_size_))) {
831 oat_writer->size_oat_dex_file_location_size_ += sizeof(dex_file_location_size_);
837 if (!out.WriteFully(&dex_file_location_checksum_, sizeof(dex_file_location_checksum_))) {
841 oat_writer->size_oat_dex_file_location_checksum_ += sizeof(dex_file_location_checksum_);
842 if (!out.WriteFully(&dex_file_offset_, sizeof(dex_file_offset_))) {
846 oat_writer->size_oat_dex_file_offset_ += sizeof(dex_file_offset_);
848 sizeof(methods_offsets_[0]) * methods_offsets_.size())) {
853 sizeof(methods_offsets_[0]) * methods_offsets_.size();
870 return sizeof(status_)
871 + (sizeof(method_offsets_[0]) * class_def_method_index_);
874 size_t OatWriter::OatClass::SizeOf() const {
879 oat_header.UpdateChecksum(&status_, sizeof(status_));
881 sizeof(method_offsets_[0]) * method_offsets_.size());
888 if (!out.WriteFully(&status_, sizeof(status_))) {
892 oat_writer->size_oat_class_status_ += sizeof(status_);
896 sizeof(method_offsets_[0]) * method_offsets_.size())) {
900 oat_writer->size_oat_class_method_offsets_ += sizeof(method_offsets_[0]) * method_offsets_.size();