Lines Matching refs:RelocInfo
157 const char* const RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING";
346 const int RelocInfo::kMaxSmallPCDelta = kSmallPCDeltaMask;
365 WriteMode(RelocInfo::PC_JUMP);
392 void RelocInfoWriter::WriteMode(RelocInfo::Mode rmode) {
393 STATIC_ASSERT(RelocInfo::NUMBER_OF_MODES <= (1 << kLongTagBits));
398 void RelocInfoWriter::WriteModeAndPC(uint32_t pc_delta, RelocInfo::Mode rmode) {
425 RelocInfo::Mode rmode) {
426 int pos_type_tag = (rmode == RelocInfo::POSITION) ? kNonstatementPositionTag
443 next_position_candidate_pos_delta_, RelocInfo::POSITION);
451 void RelocInfoWriter::Write(const RelocInfo* rinfo) {
452 RelocInfo::Mode rmode = rinfo->rmode();
453 if (rmode != RelocInfo::POSITION) {
459 DCHECK(rinfo->rmode() < RelocInfo::NUMBER_OF_MODES);
465 if (rmode == RelocInfo::EMBEDDED_OBJECT) {
467 } else if (rmode == RelocInfo::CODE_TARGET) {
469 DCHECK(begin_pos - pos_ <= RelocInfo::kMaxCallSize);
470 } else if (rmode == RelocInfo::CODE_TARGET_WITH_ID) {
484 } else if (rmode == RelocInfo::DEOPT_REASON) {
488 } else if (RelocInfo::IsPosition(rmode)) {
492 if (rmode == RelocInfo::STATEMENT_POSITION) {
495 DCHECK_EQ(rmode, RelocInfo::POSITION);
496 if (pc_delta != 0 || last_mode_ != RelocInfo::POSITION) {
508 if (RelocInfo::IsComment(rmode)) {
510 } else if (RelocInfo::IsConstPool(rmode) ||
511 RelocInfo::IsVeneerPool(rmode)) {
528 inline RelocInfo::Mode RelocIterator::GetMode() {
529 return static_cast<RelocInfo::Mode>((*pos_ >> kTagBits) &
625 static inline RelocInfo::Mode GetPositionModeFromTag(int tag) {
629 RelocInfo::POSITION :
630 RelocInfo::STATEMENT_POSITION;
645 if (SetMode(RelocInfo::EMBEDDED_OBJECT)) return;
648 if (SetMode(RelocInfo::CODE_TARGET)) return;
654 if (SetMode(RelocInfo::CODE_TARGET_WITH_ID)) {
659 if (SetMode(RelocInfo::DEOPT_REASON)) {
666 if (mode_mask_ & RelocInfo::kPositionMask) {
675 RelocInfo::Mode rmode = GetMode();
676 if (rmode == RelocInfo::PC_JUMP) {
680 if (rmode == RelocInfo::CODE_TARGET_WITH_ID) {
686 } else if (RelocInfo::IsComment(rmode)) {
692 } else if (RelocInfo::IsPosition(rmode)) {
693 if (mode_mask_ & RelocInfo::kPositionMask) {
701 } else if (RelocInfo::IsConstPool(rmode) ||
702 RelocInfo::IsVeneerPool(rmode)) {
708 } else if (SetMode(static_cast<RelocInfo::Mode>(rmode))) {
717 if (SetMode(RelocInfo::CODE_AGE_SEQUENCE)) {
771 // Implementation of RelocInfo
775 bool RelocInfo::RequiresRelocation(const CodeDesc& desc) {
779 int mode_mask = RelocInfo::kCodeTargetMask |
780 RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT) |
781 RelocInfo::ModeMask(RelocInfo::CELL) |
782 RelocInfo::kApplyMask;
790 const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) {
845 void RelocInfo::Print(Isolate* isolate, std::ostream& os) { // NOLINT
887 void RelocInfo::Verify(Isolate* isolate) {
1585 DCHECK(pos != RelocInfo::kNoPosition);
1596 DCHECK(pos != RelocInfo::kNoPosition);
1614 assembler_->RecordRelocInfo(RelocInfo::STATEMENT_POSITION,
1625 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1845 RecordRelocInfo(RelocInfo::POSITION, raw_position);
1846 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason);
1854 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
1861 RecordRelocInfo(RelocInfo::GENERATOR_CONTINUATION);
1865 void Assembler::RecordDebugBreakSlot(RelocInfo::Mode mode) {
1867 DCHECK(RelocInfo::IsDebugBreakSlot(mode));