Home
last modified time | relevance | path

Searched refs:slicer (Results 1 – 25 of 31) sorted by relevance

12

/tools/dexter/dexter/
Dexperimental.cc293 slicer::MethodInstrumenter mi(dex_ir); in TestMethodInstrumenter()
294 mi.AddTransformation<slicer::EntryHook>( in TestMethodInstrumenter()
296 slicer::EntryHook::Tweak::ThisAsObject); in TestMethodInstrumenter()
297 mi.AddTransformation<slicer::EntryHook>( in TestMethodInstrumenter()
299 mi.AddTransformation<slicer::ExitHook>(ir::MethodId("LTracer;", "onFooExit")); in TestMethodInstrumenter()
300 mi.AddTransformation<slicer::DetourVirtualInvoke>( in TestMethodInstrumenter()
303 mi.AddTransformation<slicer::DetourInterfaceInvoke>( in TestMethodInstrumenter()
316 slicer::MethodInstrumenter mi(dex_ir); in StressScratchRegs()
319 auto t1 = mi.AddTransformation<slicer::AllocateScratchRegs>(1, false); in StressScratchRegs()
320 auto t2 = mi.AddTransformation<slicer::AllocateScratchRegs>(1, false); in StressScratchRegs()
[all …]
Ddexter.cc275 slicer::Chronometer chrono(writer_time_); in CreateNewImage()
357 slicer::Chronometer chrono(reader_time_); in ProcessDex()
379 slicer::Chronometer chrono(experiments_time_, true); in ProcessDex()
DAndroid.bp14 "slicer",
/tools/dexter/slicer/export/slicer/
Dreader.h50 slicer::ArrayView<const dex::ClassDef> ClassDefs() const;
51 slicer::ArrayView<const dex::StringId> StringIds() const;
52 slicer::ArrayView<const dex::TypeId> TypeIds() const;
53 slicer::ArrayView<const dex::FieldId> FieldIds() const;
54 slicer::ArrayView<const dex::MethodId> MethodIds() const;
55 slicer::ArrayView<const dex::ProtoId> ProtoIds() const;
102 void ParseInstructions(slicer::ArrayView<const dex::u2> code);
121 slicer::ArrayView<const T> section(int offset, int count) const { in section()
122 return slicer::ArrayView<const T>(ptr<T>(offset), count); in section()
Ddex_ir.h150 SLICER_EXTRA(slicer::MemView original);
163 slicer::MemView data;
223 slicer::MemView data;
232 slicer::ArrayView<const dex::u2> instructions;
233 slicer::ArrayView<const dex::TryBlock> try_blocks;
234 slicer::MemView catch_handlers;
355 using StringsLookup = slicer::HashTable<const char*, String, StringsHasher>;
356 using PrototypesLookup = slicer::HashTable<const std::string&, Proto, ProtosHasher>;
357 using MethodsLookup = slicer::HashTable<const MethodKey&, EncodedMethod, MethodsHasher>;
399 slicer::MemView magic;
[all …]
Dcommon.h19 namespace slicer {
24 #define SLICER_CHECK(expr) do { if(!(expr)) slicer::_checkFailed(#expr, __LINE__, __FILE__); } whil…
34 #define SLICER_WEAK_CHECK(expr) do { if(!(expr)) slicer::_weakCheckFailed(#expr, __LINE__, __FILE__…
38 #define SLICER_FATAL(format, ...) slicer::_fatal("\nSLICER_FATAL: " format "\n\n", ##__VA_ARGS__);
Dtryblocks_encoder.h42 slicer::Buffer handlers_;
43 slicer::Buffer tries_;
Dscopeguard.h19 namespace slicer {
73 auto SLICER_SG_ANONYMOUS(_scope_guard_) = slicer::ScopeGuardHelper() << [&]()
Dwriter.h33 class Section : public slicer::Buffer {
228 void WriteInstructions(slicer::ArrayView<const dex::u2> instructions);
Dmemview.h24 namespace slicer {
Darrayview.h23 namespace slicer {
Dchronometer.h21 namespace slicer {
Ddebuginfo_encoder.h50 slicer::Buffer dbginfo_;
Dcode_ir.h237 using InstructionsList = slicer::IntrusiveList<Instruction>;
331 slicer::MemView data;
Dbytecode_encoder.h70 slicer::Buffer bytecode_;
Dintrusive_list.h23 namespace slicer {
Dbuffer.h30 namespace slicer {
/tools/dexter/slicer/
Dreader.cc36 dex_ir_->magic = slicer::MemView(header_, sizeof(dex::Header::magic)); in Reader()
39 slicer::ArrayView<const dex::ClassDef> Reader::ClassDefs() const { in ClassDefs()
44 slicer::ArrayView<const dex::StringId> Reader::StringIds() const { in StringIds()
49 slicer::ArrayView<const dex::TypeId> Reader::TypeIds() const { in TypeIds()
54 slicer::ArrayView<const dex::FieldId> Reader::FieldIds() const { in FieldIds()
59 slicer::ArrayView<const dex::MethodId> Reader::MethodIds() const { in MethodIds()
64 slicer::ArrayView<const dex::ProtoId> Reader::ProtoIds() const { in ProtoIds()
556 SLICER_EXTRA(ir_encoded_value->original = slicer::MemView(base_ptr, *pptr - base_ptr)); in ParseEncodedValue()
696 ir_debug_info->data = slicer::MemView(base_ptr, ptr - base_ptr); in ExtractDebugInfo()
717 slicer::ArrayView<const dex::u2>(dex_code->insns, dex_code->insns_size); in ExtractCode()
[all …]
Dtryblocks_encoder.cc107 ir_code->try_blocks = slicer::ArrayView<const dex::TryBlock>(tries_ptr, tries_count); in Encode()
108 ir_code->catch_handlers = slicer::MemView(handlers_.data(), handlers_.size()); in Encode()
Ddex_ir_builder.cc69 slicer::Buffer buff; in GetAsciiString()
76 ir_string->data = slicer::MemView(buff.data(), buff.size()); in GetAsciiString()
Dcommon.cc25 namespace slicer { namespace
DAndroid.bp49 name: "slicer",
Ddebuginfo_encoder.cc143 ir_debug_info->data = slicer::MemView(dbginfo_.data(), dbginfo_.size()); in Encode()
/tools/dexter/
DAndroid.bp7 "slicer",
DREADME.md1 This is the home of the .dex manipulation library (slicer) and command line tool (dexter).

12