Searched refs:inst (Results 1 - 25 of 30) sorted by relevance

12

/art/runtime/interpreter/
H A Dinterpreter_switch_impl.cc28 inst->GetDexPc(insns), \
34 inst = inst->RelativeAt(displacement); \
43 inst = inst->_next_function(); \
78 const Instruction* inst = Instruction::At(insns + dex_pc); local
81 dex_pc = inst->GetDexPc(insns);
83 TraceExecution(shadow_frame, inst, dex_pc);
84 inst_data = inst->Fetch16(0);
85 switch (inst
[all...]
H A Dinterpreter_goto_table_impl.cc28 // - "inst" : the current Instruction*.
38 inst = inst->RelativeAt(disp); \
41 TraceExecution(shadow_frame, inst, dex_pc); \
42 inst_data = inst->Fetch16(0); \
43 goto *currentHandlersTable[inst->Opcode(inst_data)]; \
156 const Instruction* inst = Instruction::At(code_item->insns_ + dex_pc); local
180 shadow_frame.SetVReg(inst->VRegA_12x(inst_data),
181 shadow_frame.GetVReg(inst->VRegB_12x(inst_data)));
186 shadow_frame.SetVReg(inst
[all...]
H A Dinterpreter_common.h98 const Instruction* inst, uint16_t inst_data, JValue* result);
103 static inline bool DoInvoke(Thread* self, ShadowFrame& shadow_frame, const Instruction* inst, argument
105 const uint32_t method_idx = (is_range) ? inst->VRegB_3rc() : inst->VRegB_35c();
106 const uint32_t vregC = (is_range) ? inst->VRegC_3rc() : inst->VRegC_35c();
121 return DoCall<is_range, do_access_check>(called_method, self, shadow_frame, inst, inst_data,
130 const Instruction* inst, uint16_t inst_data,
132 const uint32_t vregC = (is_range) ? inst->VRegC_3rc() : inst
129 DoInvokeVirtualQuick(Thread* self, ShadowFrame& shadow_frame, const Instruction* inst, uint16_t inst_data, JValue* result) argument
[all...]
H A Dinterpreter_common.cc34 bool DoFieldGet(Thread* self, ShadowFrame& shadow_frame, const Instruction* inst, argument
37 const uint32_t field_idx = is_static ? inst->VRegB_21c() : inst->VRegC_22c();
48 obj = shadow_frame.GetVRegReference(inst->VRegB_22c(inst_data));
62 uint32_t vregA = is_static ? inst->VRegA_21c(inst_data) : inst->VRegA_22c(inst_data);
96 const Instruction* inst, \
127 bool DoIGetQuick(ShadowFrame& shadow_frame, const Instruction* inst, uint16_t inst_data) { argument
128 Object* obj = shadow_frame.GetVRegReference(inst->VRegB_22c(inst_data));
135 MemberOffset field_offset(inst
227 DoFieldPut(Thread* self, const ShadowFrame& shadow_frame, const Instruction* inst, uint16_t inst_data) argument
344 DoIPutQuick(const ShadowFrame& shadow_frame, const Instruction* inst, uint16_t inst_data) argument
443 UnexpectedOpcode(const Instruction* inst, const ShadowFrame& shadow_frame) argument
481 DoCall(ArtMethod* called_method, Thread* self, ShadowFrame& shadow_frame, const Instruction* inst, uint16_t inst_data, JValue* result) argument
693 DoFilledNewArray(const Instruction* inst, const ShadowFrame& shadow_frame, Thread* self, JValue* result) argument
[all...]
H A Dunstarted_runtime_test.cc261 const Instruction* inst = Instruction::At(inst_data); local
271 interpreter::DoCall<false, false>(method, self, *shadow_frame, inst, inst_data[0], &result);
/art/compiler/dex/
H A Ddex_to_dex_compiler.cc61 void CompileReturnVoid(Instruction* inst, uint32_t dex_pc);
65 // the given "inst".
66 Instruction* CompileCheckCast(Instruction* inst, uint32_t dex_pc);
74 void CompileInstanceFieldAccess(Instruction* inst, uint32_t dex_pc,
83 void CompileInvokeVirtual(Instruction* inst, uint32_t dex_pc,
98 Instruction* inst = const_cast<Instruction*>(Instruction::At(insns)); local
101 inst = const_cast<Instruction*>(inst->Next()), dex_pc = inst->GetDexPc(insns)) {
102 switch (inst
182 CompileReturnVoid(Instruction* inst, uint32_t dex_pc) argument
200 CompileCheckCast(Instruction* inst, uint32_t dex_pc) argument
228 CompileInstanceFieldAccess(Instruction* inst, uint32_t dex_pc, Instruction::Code new_opcode, bool is_put) argument
254 CompileInvokeVirtual(Instruction* inst, uint32_t dex_pc, Instruction::Code new_opcode, bool is_range) argument
[all...]
H A Dverified_method.cc209 const Instruction* inst = Instruction::At(insns); local
211 for (; inst < end; inst = inst->Next()) {
212 const bool is_virtual_quick = inst->Opcode() == Instruction::INVOKE_VIRTUAL_QUICK;
213 const bool is_range_quick = inst->Opcode() == Instruction::INVOKE_VIRTUAL_RANGE_QUICK;
215 uint32_t dex_pc = inst->GetDexPc(insns);
218 method_verifier->GetQuickInvokedMethod(inst, line, is_range_quick, true);
228 } else if (IsInstructionIGetQuickOrIPutQuick(inst->Opcode())) {
229 uint32_t dex_pc = inst
255 const Instruction* inst = Instruction::At(insns); local
331 const Instruction* inst = Instruction::At(code_item->insns_); local
[all...]
H A Dmir_graph.cc170 const Instruction* inst = Instruction::At(code_ptr); local
171 decoded_instruction->opcode = inst->Opcode();
172 decoded_instruction->vA = inst->HasVRegA() ? inst->VRegA() : 0;
173 decoded_instruction->vB = inst->HasVRegB() ? inst->VRegB() : 0;
174 decoded_instruction->vB_wide = inst->HasWideVRegB() ? inst->WideVRegB() : 0;
175 decoded_instruction->vC = inst->HasVRegC() ? inst
[all...]
/art/runtime/
H A Ddex_instruction_visitor.h33 const Instruction* inst = Instruction::At(&code[i]); local
34 switch (inst->Opcode()) {
37 derived->Do_ ## cname(inst); \
47 i += inst->SizeInCodeUnits();
54 void Do_ ## cname(const Instruction* inst) { \
56 derived->Do_Default(inst); \
/art/test/003-omnibus-opcodes/src/
H A DMethodCall.java54 MethodCall inst = new MethodCall();
56 MethodCallBase base = inst;
58 inst.tryThing();
60 inst = null;
62 inst.directly();
/art/test/043-privates/src/
H A DMain.java45 PrivatePackage inst = new PrivatePackageSub();
46 System.out.println("PrivatePackage --> " + inst.getStr());
47 System.out.println("PrivatePackage --> " + inst.privGetStr());
/art/runtime/verifier/
H A Dregister_line.cc47 const RegType& RegisterLine::GetInvocationThis(MethodVerifier* verifier, const Instruction* inst, argument
49 const size_t args_count = is_range ? inst->VRegA_3rc() : inst->VRegA_35c();
57 const uint32_t this_reg = (is_range) ? inst->VRegC_3rc() : inst->VRegC_35c();
201 void RegisterLine::CheckUnaryOp(MethodVerifier* verifier, const Instruction* inst, argument
203 if (VerifyRegisterType(verifier, inst->VRegB_12x(), src_type)) {
204 SetRegisterType(verifier, inst->VRegA_12x(), dst_type);
208 void RegisterLine::CheckUnaryOpWide(MethodVerifier* verifier, const Instruction* inst, argument
211 if (VerifyRegisterTypeWide(verifier, inst
216 CheckUnaryOpToWide(MethodVerifier* verifier, const Instruction* inst, const RegType& dst_type1, const RegType& dst_type2, const RegType& src_type) argument
224 CheckUnaryOpFromWide(MethodVerifier* verifier, const Instruction* inst, const RegType& dst_type, const RegType& src_type1, const RegType& src_type2) argument
232 CheckBinaryOp(MethodVerifier* verifier, const Instruction* inst, const RegType& dst_type, const RegType& src_type1, const RegType& src_type2, bool check_boolean_op) argument
252 CheckBinaryOpWide(MethodVerifier* verifier, const Instruction* inst, const RegType& dst_type1, const RegType& dst_type2, const RegType& src_type1_1, const RegType& src_type1_2, const RegType& src_type2_1, const RegType& src_type2_2) argument
262 CheckBinaryOpWideShift(MethodVerifier* verifier, const Instruction* inst, const RegType& long_lo_type, const RegType& long_hi_type, const RegType& int_type) argument
271 CheckBinaryOp2addr(MethodVerifier* verifier, const Instruction* inst, const RegType& dst_type, const RegType& src_type1, const RegType& src_type2, bool check_boolean_op) argument
290 CheckBinaryOp2addrWide(MethodVerifier* verifier, const Instruction* inst, const RegType& dst_type1, const RegType& dst_type2, const RegType& src_type1_1, const RegType& src_type1_2, const RegType& src_type2_1, const RegType& src_type2_2) argument
302 CheckBinaryOp2addrWideShift(MethodVerifier* verifier, const Instruction* inst, const RegType& long_lo_type, const RegType& long_hi_type, const RegType& int_type) argument
313 CheckLiteralOp(MethodVerifier* verifier, const Instruction* inst, const RegType& dst_type, const RegType& src_type, bool check_boolean_op, bool is_lit16) argument
[all...]
H A Dmethod_verifier.cc437 const Instruction* inst = Instruction::At(code_item->insns_); local
441 if (inst->Opcode() == Instruction::MONITOR_ENTER) {
445 dex_pc += inst->SizeInCodeUnits();
446 inst = inst->Next();
493 const Instruction* inst = Instruction::At(code_item_->insns_ + dex_pc); local
494 return GetQuickFieldAccess(inst, register_line);
522 const Instruction* inst = Instruction::At(code_item_->insns_ + dex_pc); local
523 const bool is_range = (inst->Opcode() == Instruction::INVOKE_VIRTUAL_RANGE_QUICK);
524 return GetQuickInvokedMethod(inst, register_lin
607 const Instruction* inst = Instruction::At(insns); local
665 const Instruction* inst = Instruction::At(insns); local
732 const Instruction* inst = Instruction::At(code_item_->insns_ + dex_pc); local
777 const Instruction* inst = Instruction::At(code_item_->insns_); local
812 VerifyInstruction(const Instruction* inst, uint32_t code_offset) argument
1277 const Instruction* inst = Instruction::At(code_item_->insns_); local
1631 const Instruction* inst = Instruction::At(insns); local
3328 VerifyInvocationArgsFromIterator( T* it, const Instruction* inst, MethodType method_type, bool is_range, ArtMethod* res_method) argument
3444 VerifyInvocationArgsUnresolvedMethod(const Instruction* inst, MethodType method_type, bool is_range) argument
3483 VerifyInvocationArgs( const Instruction* inst, MethodType method_type, bool is_range, bool is_super) argument
3526 GetQuickInvokedMethod(const Instruction* inst, RegisterLine* reg_line, bool is_range, bool allow_failure) argument
3574 VerifyInvokeVirtualQuickArgs(const Instruction* inst, bool is_range) argument
3671 VerifyNewArray(const Instruction* inst, bool is_filled, bool is_range) argument
3719 VerifyAGet(const Instruction* inst, const RegType& insn_type, bool is_primitive) argument
3821 VerifyAPut(const Instruction* inst, const RegType& insn_type, bool is_primitive) argument
3974 VerifyISFieldAccess(const Instruction* inst, const RegType& insn_type, bool is_primitive, bool is_static) argument
4079 GetQuickFieldAccess(const Instruction* inst, RegisterLine* reg_line) argument
4098 VerifyQuickFieldAccess(const Instruction* inst, const RegType& insn_type, bool is_primitive) argument
[all...]
H A Dregister_line.h192 const RegType& GetInvocationThis(MethodVerifier* verifier, const Instruction* inst,
200 void CheckUnaryOp(MethodVerifier* verifier, const Instruction* inst, const RegType& dst_type,
204 void CheckUnaryOpWide(MethodVerifier* verifier, const Instruction* inst,
209 void CheckUnaryOpToWide(MethodVerifier* verifier, const Instruction* inst,
214 void CheckUnaryOpFromWide(MethodVerifier* verifier, const Instruction* inst,
224 void CheckBinaryOp(MethodVerifier* verifier, const Instruction* inst,
229 void CheckBinaryOpWide(MethodVerifier* verifier, const Instruction* inst,
235 void CheckBinaryOpWideShift(MethodVerifier* verifier, const Instruction* inst,
244 void CheckBinaryOp2addr(MethodVerifier* verifier, const Instruction* inst,
250 void CheckBinaryOp2addrWide(MethodVerifier* verifier, const Instruction* inst,
[all...]
H A Dmethod_verifier.h254 ArtMethod* GetQuickInvokedMethod(const Instruction* inst, RegisterLine* reg_line,
259 ArtField* GetQuickFieldAccess(const Instruction* inst, RegisterLine* reg_line)
395 bool VerifyInstruction(const Instruction* inst, uint32_t code_offset);
526 void VerifyNewArray(const Instruction* inst, bool is_filled, bool is_range)
537 void VerifyAGet(const Instruction* inst, const RegType& insn_type,
541 void VerifyAPut(const Instruction* inst, const RegType& insn_type,
557 void VerifyISFieldAccess(const Instruction* inst, const RegType& insn_type,
562 void VerifyQuickFieldAccess(const Instruction* inst, const RegType& insn_type, bool is_primitive)
608 ArtMethod* VerifyInvocationArgs(const Instruction* inst,
615 void VerifyInvocationArgsUnresolvedMethod(const Instruction* inst, MethodTyp
[all...]
/art/compiler/optimizing/
H A Dconstant_folding.cc54 HInstruction* inst = inst_it.Current(); local
55 if (inst->IsBinaryOperation()) {
58 HConstant* constant = inst->AsBinaryOperation()->TryStaticEvaluation();
60 inst->ReplaceWith(constant);
61 inst->GetBlock()->RemoveInstruction(inst);
63 inst->Accept(&simplifier);
65 } else if (inst->IsUnaryOperation()) {
68 HConstant* constant = inst->AsUnaryOperation()->TryStaticEvaluation();
70 inst
[all...]
H A Dconstant_folding_test.cc116 HInstruction* inst = graph->GetBlock(1)->GetFirstInstruction()->InputAt(0);
117 ASSERT_TRUE(inst->IsIntConstant());
118 ASSERT_EQ(inst->AsIntConstant()->GetValue(), -1);
177 HInstruction* inst = graph->GetBlock(1)->GetFirstInstruction()->InputAt(0);
178 ASSERT_TRUE(inst->IsIntConstant());
179 ASSERT_EQ(inst->AsIntConstant()->GetValue(), 3);
329 HInstruction* inst = graph->GetBlock(1)->GetFirstInstruction()->InputAt(0);
330 ASSERT_TRUE(inst->IsIntConstant());
331 ASSERT_EQ(inst->AsIntConstant()->GetValue(), 1);
393 HInstruction* inst
[all...]
H A Ddead_code_elimination.cc128 HInstruction* inst = i.Current(); local
129 DCHECK(!inst->IsControlFlow());
130 if (!inst->HasSideEffects()
131 && !inst->CanThrow()
132 && !inst->IsSuspendCheck()
133 && !inst->IsMemoryBarrier() // If we added an explicit barrier then we should keep it.
134 && !inst->HasUses()) {
135 block->RemoveInstruction(inst);
H A Dintrinsics.cc337 HInstruction* inst = inst_it.Current(); local
338 if (inst->IsInvoke()) {
339 HInvoke* invoke = inst->AsInvoke();
/art/compiler/utils/mips/
H A Dassembler_mips.cc125 int32_t MipsAssembler::EncodeBranchOffset(int offset, int32_t inst, bool is_jump) { argument
133 return (inst & ~kJumpOffsetMask) | offset;
136 return (inst & ~kBranchOffsetMask) | offset;
140 int MipsAssembler::DecodeBranchOffset(int32_t inst, bool is_jump) { argument
143 return (((inst & kJumpOffsetMask) << 6) >> 4);
145 return (((inst & kBranchOffsetMask) << 16) >> 14);
H A Dassembler_mips.h277 int32_t EncodeBranchOffset(int offset, int32_t inst, bool is_jump);
278 int DecodeBranchOffset(int32_t inst, bool is_jump);
/art/compiler/utils/arm/
H A Dassembler_arm32.h365 static int32_t EncodeBranchOffset(int offset, int32_t inst);
366 static int DecodeBranchOffset(int32_t inst);
367 int32_t EncodeTstOffset(int offset, int32_t inst);
368 int DecodeTstOffset(int32_t inst);
H A Dassembler_thumb2.h432 static int32_t EncodeBranchOffset(int32_t offset, int32_t inst);
433 static int DecodeBranchOffset(int32_t inst);
434 int32_t EncodeTstOffset(int offset, int32_t inst);
435 int DecodeTstOffset(int32_t inst);
H A Dassembler_thumb2.cc2388 int32_t Thumb2Assembler::EncodeBranchOffset(int32_t offset, int32_t inst) { argument
2396 if ((inst & B12) == B12) {
2408 inst &= ~(0x3ff << 16 | 0x7ff);
2418 inst &= ~(0x3f << 16 | 0x7ff);
2421 inst &= ~(B26 | B13 | B11);
2422 inst |= value;
2423 return inst;
/art/compiler/dex/quick/
H A Dcodegen_util.cc88 void Mir2Lir::MarkSafepointPC(LIR* inst) { argument
89 DCHECK(!inst->flags.use_def_invalid);
90 inst->u.m.def_mask = &kEncodeAll;
1260 LIR* inst = Load32Disp(base_reg, offset, temp_reg); local
1262 *compare = inst;

Completed in 263 milliseconds

12