Lines Matching refs:instr
187 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in CheckConfigureStubs() local
193 instr->ConfigureStubs(key, level); in CheckConfigureStubs()
214 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in TestEvent() local
219 instr->AddListener(&listener, instrumentation_event); in TestEvent()
226 EXPECT_TRUE(HasEventListener(instr, instrumentation_event)); in TestEvent()
228 ReportEvent(instr, in TestEvent()
241 instr->RemoveListener(&listener, instrumentation_event); in TestEvent()
245 EXPECT_FALSE(HasEventListener(instr, instrumentation_event)); in TestEvent()
247 ReportEvent(instr, in TestEvent()
343 static bool HasEventListener(const instrumentation::Instrumentation* instr, uint32_t event_type) in HasEventListener() argument
347 return instr->HasMethodEntryListeners(); in HasEventListener()
349 return instr->HasMethodExitListeners(); in HasEventListener()
351 return instr->HasMethodUnwindListeners(); in HasEventListener()
353 return instr->HasDexPcListeners(); in HasEventListener()
355 return instr->HasFieldReadListeners(); in HasEventListener()
357 return instr->HasFieldWriteListeners(); in HasEventListener()
359 return instr->HasExceptionCaughtListeners(); in HasEventListener()
361 return instr->HasBranchListeners(); in HasEventListener()
363 return instr->HasInvokeVirtualOrInterfaceListeners(); in HasEventListener()
370 static void ReportEvent(const instrumentation::Instrumentation* instr, in ReportEvent() argument
380 instr->MethodEnterEvent(self, obj, method, dex_pc); in ReportEvent()
384 instr->MethodExitEvent(self, obj, method, dex_pc, value); in ReportEvent()
388 instr->MethodUnwindEvent(self, obj, method, dex_pc); in ReportEvent()
391 instr->DexPcMovedEvent(self, obj, method, dex_pc); in ReportEvent()
394 instr->FieldReadEvent(self, obj, method, dex_pc, field); in ReportEvent()
398 instr->FieldWriteEvent(self, obj, method, dex_pc, field, value); in ReportEvent()
404 instr->ExceptionCaughtEvent(self, event_exception); in ReportEvent()
409 instr->Branch(self, method, dex_pc, -1); in ReportEvent()
412 instr->InvokeVirtualOrInterface(self, obj, method, dex_pc, method); in ReportEvent()
453 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in TEST_F() local
454 ASSERT_NE(instr, nullptr); in TEST_F()
456 EXPECT_FALSE(instr->AreExitStubsInstalled()); in TEST_F()
457 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
458 EXPECT_FALSE(instr->IsActive()); in TEST_F()
459 EXPECT_FALSE(instr->ShouldNotifyMethodEnterExitEvents()); in TEST_F()
462 EXPECT_EQ(instrumentation::kMainHandlerTable, instr->GetInterpreterHandlerTable()); in TEST_F()
465 EXPECT_FALSE(instr->HasDexPcListeners()); in TEST_F()
466 EXPECT_FALSE(instr->HasExceptionCaughtListeners()); in TEST_F()
467 EXPECT_FALSE(instr->HasFieldReadListeners()); in TEST_F()
468 EXPECT_FALSE(instr->HasFieldWriteListeners()); in TEST_F()
469 EXPECT_FALSE(instr->HasMethodEntryListeners()); in TEST_F()
470 EXPECT_FALSE(instr->HasMethodExitListeners()); in TEST_F()
471 EXPECT_FALSE(instr->IsActive()); in TEST_F()
582 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F() local
594 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
595 EXPECT_FALSE(instr->IsDeoptimized(method_to_deoptimize)); in TEST_F()
599 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
600 EXPECT_TRUE(instr->AreExitStubsInstalled()); in TEST_F()
601 EXPECT_TRUE(instr->IsDeoptimized(method_to_deoptimize)); in TEST_F()
606 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
607 EXPECT_FALSE(instr->IsDeoptimized(method_to_deoptimize)); in TEST_F()
613 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F() local
614 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
619 EXPECT_TRUE(instr->AreAllMethodsDeoptimized()); in TEST_F()
620 EXPECT_TRUE(instr->AreExitStubsInstalled()); in TEST_F()
624 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
631 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F() local
643 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
644 EXPECT_FALSE(instr->IsDeoptimized(method_to_deoptimize)); in TEST_F()
650 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
651 EXPECT_TRUE(instr->AreExitStubsInstalled()); in TEST_F()
652 EXPECT_TRUE(instr->IsDeoptimized(method_to_deoptimize)); in TEST_F()
658 EXPECT_TRUE(instr->AreAllMethodsDeoptimized()); in TEST_F()
659 EXPECT_TRUE(instr->AreExitStubsInstalled()); in TEST_F()
660 EXPECT_TRUE(instr->IsDeoptimized(method_to_deoptimize)); in TEST_F()
665 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
666 EXPECT_TRUE(instr->AreExitStubsInstalled()); in TEST_F()
667 EXPECT_TRUE(instr->IsDeoptimized(method_to_deoptimize)); in TEST_F()
672 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
673 EXPECT_FALSE(instr->IsDeoptimized(method_to_deoptimize)); in TEST_F()
679 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F() local
680 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
686 EXPECT_TRUE(instr->AreAllMethodsDeoptimized()); in TEST_F()
687 EXPECT_TRUE(instr->AreExitStubsInstalled()); in TEST_F()
692 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
698 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F() local
699 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
705 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
706 EXPECT_TRUE(instr->AreExitStubsInstalled()); in TEST_F()
711 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); in TEST_F()
717 Instrumentation* const instr = Runtime::Current()->GetInstrumentation(); \
722 if (instr->IsForcedInterpretOnly()) { \
723 EXPECT_TRUE(instr->InterpretOnly()); \
725 EXPECT_TRUE(instr->InterpretOnly()); \
727 EXPECT_FALSE(instr->InterpretOnly()); \
730 EXPECT_TRUE(instr->AreAllMethodsDeoptimized()); \
732 EXPECT_FALSE(instr->AreAllMethodsDeoptimized()); \