Home
last modified time | relevance | path

Searched refs:GuestCodeEntry (Results 1 – 8 of 8) sorted by relevance

/frameworks/libs/binary_translation/runtime_primitives/
Dtranslation_cache.cc35 GuestCodeEntry* TranslationCache::AddAndLockForTranslation(GuestAddr pc, in AddAndLockForTranslation()
47 GuestCodeEntry::Kind::kInterpreted, in AddAndLockForTranslation()
66 GuestCodeEntry* TranslationCache::LockForGearUpTranslation(GuestAddr pc) { in LockForGearUpTranslation()
77 if (entry->kind != GuestCodeEntry::Kind::kLightTranslated) { in LockForGearUpTranslation()
85 void TranslationCache::LockForTranslationUnsafe(GuestCodeEntry* entry) { in LockForTranslationUnsafe()
87 entry->kind = GuestCodeEntry::Kind::kUnderProcessing; in LockForTranslationUnsafe()
94 GuestCodeEntry* entry, in SetTranslatedAndUnlock()
96 GuestCodeEntry::Kind kind, in SetTranslatedAndUnlock()
98 CHECK(kind != GuestCodeEntry::Kind::kUnderProcessing); in SetTranslatedAndUnlock()
99 CHECK(kind != GuestCodeEntry::Kind::kGuestWrapped); in SetTranslatedAndUnlock()
[all …]
Dtranslation_cache_test.cc50 GuestCodeEntry* entry = tc.AddAndLockForTranslation(pc, 0); in TEST()
54 tc.SetTranslatedAndUnlock(pc, entry, 1, GuestCodeEntry::Kind::kSpecialHandler, {kEntryNoExec, 0}); in TEST()
66 GuestCodeEntry* entry = tc.LookupGuestCodeEntryUnsafeForTesting(pc); in TEST()
69 EXPECT_EQ(entry->kind, GuestCodeEntry::Kind::kInterpreted); in TEST()
76 EXPECT_EQ(entry->kind, GuestCodeEntry::Kind::kUnderProcessing); in TEST()
83 tc.SetTranslatedAndUnlock(pc, entry, 1, GuestCodeEntry::Kind::kSpecialHandler, {kEntryNoExec, 0}); in TEST()
85 EXPECT_EQ(entry->kind, GuestCodeEntry::Kind::kSpecialHandler); in TEST()
99 GuestCodeEntry* entry = tc.AddAndLockForWrapping(pc); in TEST()
102 ASSERT_EQ(entry->kind, GuestCodeEntry::Kind::kUnderProcessing); in TEST()
110 ASSERT_EQ(entry->kind, GuestCodeEntry::Kind::kHostWrapped); in TEST()
[all …]
Dhost_function_wrapper_impl.cc48 GuestCodeEntry* entry = cache->AddAndLockForWrapping(pc); in MakeTrampolineCallable()
/frameworks/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/
Dtranslation_cache.h36 struct GuestCodeEntry { struct
130 [[nodiscard]] GuestCodeEntry* AddAndLockForTranslation(GuestAddr pc, uint32_t counter_threshold);
134 [[nodiscard]] GuestCodeEntry* LockForGearUpTranslation(GuestAddr pc);
139 GuestCodeEntry* entry,
141 GuestCodeEntry::Kind kind,
145 [[nodiscard]] GuestCodeEntry* AddAndLockForWrapping(GuestAddr pc);
148 GuestCodeEntry* entry,
155 [[nodiscard]] GuestCodeEntry* ProfilerLookupGuestCodeEntryByGuestPC(GuestAddr pc);
179 [[nodiscard]] GuestCodeEntry* LookupGuestCodeEntryUnsafeForTesting(GuestAddr pc) { in LookupGuestCodeEntryUnsafeForTesting()
184 [[nodiscard]] GuestCodeEntry* LookupGuestCodeEntryUnsafe(GuestAddr pc);
[all …]
/frameworks/libs/binary_translation/runtime/
Dtranslator_riscv64.cc46 GuestCodeEntry::Kind kSpecialHandler = GuestCodeEntry::Kind::kSpecialHandler;
47 GuestCodeEntry::Kind kInterpreted = GuestCodeEntry::Kind::kInterpreted;
48 GuestCodeEntry::Kind kLightTranslated = GuestCodeEntry::Kind::kLightTranslated;
49 GuestCodeEntry::Kind kHeavyOptimized = GuestCodeEntry::Kind::kHeavyOptimized;
130 std::tuple<bool, HostCodePiece, size_t, GuestCodeEntry::Kind> TryLiteTranslateAndInstallRegion( in TryLiteTranslateAndInstallRegion()
159 std::tuple<bool, HostCodePiece, size_t, GuestCodeEntry::Kind> HeavyOptimizeRegion(GuestAddr pc) { in HeavyOptimizeRegion()
181 GuestCodeEntry* entry; in TranslateRegion()
214 GuestCodeEntry::Kind kind; in TranslateRegion()
Dtranslator_riscv64_test.cc41 EXPECT_EQ(kind, GuestCodeEntry::Kind::kLightTranslated); in TEST()
68 EXPECT_EQ(kind, GuestCodeEntry::Kind::kLightTranslated); in TEST()
82 EXPECT_EQ(kind, GuestCodeEntry::Kind::kHeavyOptimized); in TEST()
96 EXPECT_EQ(kind, GuestCodeEntry::Kind::kInterpreted); in TEST()
Dtranslator_riscv64.h30 std::tuple<bool, HostCodePiece, size_t, GuestCodeEntry::Kind> TryLiteTranslateAndInstallRegion(
33 std::tuple<bool, HostCodePiece, size_t, GuestCodeEntry::Kind> HeavyOptimizeRegion(GuestAddr pc);
/frameworks/libs/binary_translation/code_gen_lib/
Dcode_gen_lib_riscv64_test.cc90 GuestCodeEntry* entry = tc->AddAndLockForTranslation(guest_addr, 0); in AddToTranslationCache()
93 guest_addr, entry, 1, GuestCodeEntry::Kind::kSpecialHandler, host_code_piece); in AddToTranslationCache()