Lines Matching refs:dex
25 namespace dex { namespace
30 using ::dex::kAccPublic;
177 ::dex::Writer writer(dex_file_); in CreateImage()
179 ::dex::u1* image = writer.CreateImage(&allocator_, &image_size); in CreateImage()
189 uint8_t* string_data_start = ::dex::WriteULeb128(buffer.get(), string.size()); in GetOrAddString()
200 ::dex::u4 const new_index = dex_file_->strings_indexes.AllocateIndex(); in GetOrAddString()
232 ir::Proto* Prototype::Encode(DexBuilder* dex) const { in Encode()
233 auto* proto = dex->Alloc<ir::Proto>(); in Encode()
234 proto->shorty = dex->GetOrAddString(Shorty()); in Encode()
235 proto->return_type = dex->GetOrAddType(return_type_.descriptor()); in Encode()
237 proto->param_types = dex->Alloc<ir::TypeList>(); in Encode()
239 proto->param_types->types.push_back(dex->GetOrAddType(param_type.descriptor())); in Encode()
274 MethodBuilder::MethodBuilder(DexBuilder* dex, ir::Class* class_def, ir::MethodDecl* decl) in MethodBuilder() argument
275 : dex_{dex}, class_{class_def}, decl_{decl} {} in MethodBuilder()
282 method->access_flags = kAccPublic | ::dex::kAccStatic; in Encode()
291 code->instructions = slicer::ArrayView<const ::dex::u2>(buffer_.data(), buffer_.size()); in Encode()
543 ::dex::u2 MethodBuilder::LabelValue(const Value& label_id, size_t instruction_offset, in LabelValue()