Lines Matching refs:pc

284 void PoolManager<int32_t>::DumpCurrentState(int32_t pc) const {
287 IF_VERBOSE(printf("Current pc = 0x%x (%d)\n", pc, pc));
341 int32_t pc,
351 min_offset + pc,
352 max_offset + pc,
355 return new ForwardReference<int32_t>(pc,
357 min_offset + pc,
358 max_offset + pc,
378 int32_t pc = 0;
380 IF_VERBOSE(printf("PC = 0x%x (%d)\n", pc, pc));
383 if (pool_manager.MustEmit(pc, pc_increment)) {
384 pc = pool_manager.Emit(&masm, pc, pc_increment);
386 pc += pc_increment;
395 pc,
400 if (pool_manager.MustEmit(pc, size, ref, object)) {
401 pc = pool_manager.Emit(&masm, pc, size, ref, object);
407 pc,
415 pc += size;
421 VIXL_ASSERT(!pool_manager.MustEmit(pc - 1));
435 pool_manager.Emit(&masm, pc);
453 int32_t pc = 0;
455 IF_VERBOSE(printf("PC = 0x%x (%d)\n", pc, pc));
460 if (pool_manager.MustEmit(pc, pc_increment)) {
461 pc = pool_manager.Emit(&masm, pc, pc_increment);
463 pc += pc_increment;
473 pc,
478 if (pool_manager.MustEmit(pc, size, ref, object)) {
479 pc = pool_manager.Emit(&masm, pc, size);
483 pc,
490 pc += size;
493 VIXL_ASSERT(!pool_manager.MustEmit(pc - 1));
504 if (pool_manager.MustEmit(pc, max_padding)) {
505 pc = pool_manager.Emit(&masm, pc, max_padding);
507 pc = pool_manager.Bind(&masm, object2, pc);
523 pool_manager.Emit(&masm, pc);
534 int32_t pc = 0;
535 pool_manager.Bind(&masm, object, pc);
556 int32_t pc = 2;
557 pc = pool_manager.Bind(&masm, object, pc);
558 VIXL_ASSERT(pc == 4);
570 pc = 2;
571 pc = pool_manager.Bind(&masm, object, pc);
572 VIXL_ASSERT(pc == 4);
585 pc = 2;
586 pc = pool_manager.Bind(&masm, object, pc);
587 VIXL_ASSERT(pc == 4);
641 int32_t pc = 2;
643 pc,
648 USE(pc);
650 VIXL_ASSERT(new_pc == AlignUp(pc, object_alignment) + object_size);
654 int32_t pc,
663 int32_t min_location = pc;
664 int32_t max_location = pc + branch_range;
666 new ForwardReference<int32_t>(pc,
672 VIXL_ASSERT(!pool_manager->MustEmit(pc, branch_size, ref, labels[i]));
674 pc += branch_size;
676 return pc;
687 int32_t pc = 0;
695 pc,
705 pc = test.GetPoolCheckpoint() - 4;
706 VIXL_ASSERT(!pool_manager.MustEmit(pc));
718 ForwardReference<int32_t> temp_ref(pc,
720 pc,
721 pc + kPoolSize + kBranchSize - 1);
722 VIXL_ASSERT(pool_manager.MustEmit(pc, kBranchSize, &temp_ref, &new_object));
729 ForwardReference<int32_t> far_ref(pc,
731 pc,
732 pc + kPoolSize + kBranchSize);
733 VIXL_ASSERT(!pool_manager.MustEmit(pc, kBranchSize, &far_ref, &new_object));
738 VIXL_ASSERT((pc & (alignment - 1)) != 0);
739 ForwardReference<int32_t> aligned_ref(pc,
741 pc,
742 pc + kPoolSize + kBranchSize,
745 pool_manager.MustEmit(pc, kBranchSize, &aligned_ref, &new_object));
750 pool_manager.Emit(&masm, pc, kBranchSize, &temp_ref, &new_object);
751 VIXL_ASSERT(pc % kHeaderAlignment == 0); // No need for padding.
752 VIXL_ASSERT(new_pc == pc + kPoolSize);
753 pc = new_pc;
757 new ForwardReference<int32_t>(pc, 4 /*size*/, pc, pc + kBranchRange);
760 pc += 4;
763 new_pc = pool_manager.Emit(&masm, pc);
764 VIXL_ASSERT(pc % kHeaderAlignment == 0); // No need for padding.
765 VIXL_ASSERT(new_pc == pc + kNewObjectSize + kHeaderSize);
766 pc = new_pc;
770 pc = pool_manager.Bind(&masm, labels[i], pc);
783 int32_t pc = 0;
791 pc,
804 pc = test.GetPoolCheckpoint() - kBigObjectSize;
805 VIXL_ASSERT(!pool_manager.MustEmit(pc));
814 ForwardReference<int32_t> temp_ref(pc, kBranchSize, pc, pc + kPoolSize);
815 VIXL_ASSERT(pool_manager.MustEmit(pc, kBranchSize, &temp_ref, &new_object));
822 ForwardReference<int32_t> temp_ref2(pc, kBranchSize, pc, pc + kPoolSize);
824 !pool_manager.MustEmit(pc, kBranchSize, &temp_ref2, &smaller_object));
828 ForwardReference<int32_t> far_ref(pc, kBranchSize, pc, pc + kBranchRange);
829 VIXL_ASSERT(!pool_manager.MustEmit(pc, kBranchSize, &far_ref, &new_object));
834 pool_manager.Emit(&masm, pc, kBranchSize, &temp_ref, &new_object);
835 VIXL_ASSERT(pc % kHeaderAlignment == 0); // No need for padding.
836 VIXL_ASSERT(new_pc == pc + kPoolSize);
837 pc = new_pc;
841 new ForwardReference<int32_t>(pc, 4 /*size*/, pc, pc + kBranchRange);
844 pc += 4;
847 new_pc = pool_manager.Emit(&masm, pc);
848 VIXL_ASSERT(pc % kHeaderAlignment == 0); // No need for padding.
849 VIXL_ASSERT(new_pc == pc + kBigObjectSize + kHeaderSize);
850 pc = new_pc;
854 pc = pool_manager.Bind(&masm, labels[i], pc);