Lines Matching refs:pool_manager
306 PoolManager<int32_t> pool_manager(4 /*header_size*/, in TEST() local
330 pool_manager.AddObjectReference(ref1_obj1, &object1); in TEST()
331 pool_manager.AddObjectReference(ref2_obj1, &object1); in TEST()
332 pool_manager.AddObjectReference(ref3_obj1, &object1); in TEST()
333 pool_manager.AddObjectReference(ref1_obj2, &object2); in TEST()
334 pool_manager.AddObjectReference(ref2_obj2, &object2); in TEST()
335 pool_manager.AddObjectReference(ref3_obj2, &object2); in TEST()
337 pool_manager.Emit(&masm, 20); in TEST()
365 PoolManager<int32_t> pool_manager(4 /*header_size*/, in TEST() local
382 if (pool_manager.MustEmit(pc, pc_increment)) { in TEST()
383 pc = pool_manager.Emit(&masm, pc, pc_increment); in TEST()
399 if (pool_manager.MustEmit(pc, size, ref, object)) { in TEST()
400 pc = pool_manager.Emit(&masm, pc, size, ref, object); in TEST()
418 pool_manager.AddObjectReference(ref, object); in TEST()
420 VIXL_ASSERT(!pool_manager.MustEmit(pc - 1)); in TEST()
434 pool_manager.Emit(&masm, pc); in TEST()
441 PoolManager<int32_t> pool_manager(4 /*header_size*/, in TEST() local
459 if (pool_manager.MustEmit(pc, pc_increment)) { in TEST()
460 pc = pool_manager.Emit(&masm, pc, pc_increment); in TEST()
477 if (pool_manager.MustEmit(pc, size, ref, object)) { in TEST()
478 pc = pool_manager.Emit(&masm, pc, size); in TEST()
491 pool_manager.AddObjectReference(ref, object); in TEST()
492 VIXL_ASSERT(!pool_manager.MustEmit(pc - 1)); in TEST()
503 if (pool_manager.MustEmit(pc, max_padding)) { in TEST()
504 pc = pool_manager.Emit(&masm, pc, max_padding); in TEST()
506 pc = pool_manager.Bind(&masm, object, pc); in TEST()
522 pool_manager.Emit(&masm, pc); in TEST()
529 PoolManager<int32_t> pool_manager(4 /*header_size*/, in TEST() local
534 pool_manager.Bind(&masm, object, pc); in TEST()
542 PoolManager<int32_t> pool_manager(4 /*header_size*/, in TEST() local
554 pool_manager.AddObjectReference(ref, object); in TEST()
556 pc = pool_manager.Bind(&masm, object, pc); in TEST()
567 pool_manager.AddObjectReference(ref, object); in TEST()
570 pc = pool_manager.Bind(&masm, object, pc); in TEST()
582 pool_manager.AddObjectReference(ref, object); in TEST()
585 pc = pool_manager.Bind(&masm, object, pc); in TEST()
595 PoolManager<int32_t> pool_manager(4 /*header_size*/, in TEST() local
608 pool_manager.AddObjectReference(ref, &object); in TEST()
610 int32_t new_pc = pool_manager.Emit(&masm, in TEST()
625 PoolManager<int32_t> pool_manager(4 /*header_size*/, in TEST() local
638 pool_manager.AddObjectReference(ref, &object); in TEST()
641 int32_t new_pc = pool_manager.Emit(&masm, in TEST()
652 static int32_t AddNBranches(PoolManager<int32_t> *pool_manager, in AddNBranches() argument
671 VIXL_ASSERT(!pool_manager->MustEmit(pc, branch_size, ref, labels[i])); in AddNBranches()
672 pool_manager->AddObjectReference(ref, labels[i]); in AddNBranches()
690 PoolManager<int32_t> pool_manager(kHeaderSize, in TEST() local
693 pc = AddNBranches(&pool_manager, in TEST()
703 TestPoolManager test(&pool_manager); in TEST()
705 VIXL_ASSERT(!pool_manager.MustEmit(pc)); in TEST()
721 VIXL_ASSERT(pool_manager.MustEmit(pc, kBranchSize, &temp_ref, &new_object)); in TEST()
732 VIXL_ASSERT(!pool_manager.MustEmit(pc, kBranchSize, &far_ref, &new_object)); in TEST()
744 pool_manager.MustEmit(pc, kBranchSize, &aligned_ref, &new_object)); in TEST()
749 pool_manager.Emit(&masm, pc, kBranchSize, &temp_ref, &new_object); in TEST()
758 pool_manager.AddObjectReference(ref, &new_object); in TEST()
762 new_pc = pool_manager.Emit(&masm, pc); in TEST()
769 pc = pool_manager.Bind(&masm, labels[i], pc); in TEST()
785 PoolManager<int32_t> pool_manager(kHeaderSize, in TEST() local
789 pc = AddNBranches(&pool_manager, in TEST()
802 TestPoolManager test(&pool_manager); in TEST()
804 VIXL_ASSERT(!pool_manager.MustEmit(pc)); in TEST()
814 VIXL_ASSERT(pool_manager.MustEmit(pc, kBranchSize, &temp_ref, &new_object)); in TEST()
823 !pool_manager.MustEmit(pc, kBranchSize, &temp_ref, &smaller_object)); in TEST()
828 VIXL_ASSERT(!pool_manager.MustEmit(pc, kBranchSize, &far_ref, &new_object)); in TEST()
833 pool_manager.Emit(&masm, pc, kBranchSize, &temp_ref, &new_object); in TEST()
842 pool_manager.AddObjectReference(ref, &new_object); in TEST()
846 new_pc = pool_manager.Emit(&masm, pc); in TEST()
853 pc = pool_manager.Bind(&masm, labels[i], pc); in TEST()
862 PoolManager<int32_t> pool_manager(4 /*header_size*/, in ManagedLocationBaseTestHelper() local
874 pool_manager.AddObjectReference(ref_obj1, object1); in ManagedLocationBaseTestHelper()
875 pool_manager.AddObjectReference(ref_obj2, object2); in ManagedLocationBaseTestHelper()
877 pool_manager.Emit(&masm, 20); in ManagedLocationBaseTestHelper()