• Home
  • Raw
  • Download

Lines Matching refs:RelocInfo

116 const char* const RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING";
309 const int RelocInfo::kMaxSmallPCDelta = kSmallPCDeltaMask;
408 void RelocInfoWriter::Write(const RelocInfo* rinfo) { in Write()
412 DCHECK(rinfo->rmode() < RelocInfo::NUMBER_OF_MODES); in Write()
414 DCHECK(RelocInfo::LAST_STANDARD_NONCOMPACT_ENUM - RelocInfo::LAST_COMPACT_ENUM in Write()
418 RelocInfo::Mode rmode = rinfo->rmode(); in Write()
421 if (rmode == RelocInfo::EMBEDDED_OBJECT) { in Write()
423 } else if (rmode == RelocInfo::CODE_TARGET) { in Write()
425 DCHECK(begin_pos - pos_ <= RelocInfo::kMaxCallSize); in Write()
426 } else if (rmode == RelocInfo::CODE_TARGET_WITH_ID) { in Write()
440 } else if (RelocInfo::IsPosition(rmode)) { in Write()
444 int pos_type_tag = (rmode == RelocInfo::POSITION) ? kNonstatementPositionTag in Write()
456 } else if (RelocInfo::IsComment(rmode)) { in Write()
460 DCHECK(begin_pos - pos_ >= RelocInfo::kMinRelocCommentSize); in Write()
461 } else if (RelocInfo::IsConstPool(rmode) || RelocInfo::IsVeneerPool(rmode)) { in Write()
464 RelocInfo::IsConstPool(rmode) ? kConstPoolTag in Write()
467 DCHECK(rmode > RelocInfo::LAST_COMPACT_ENUM); in Write()
468 int saved_mode = rmode - RelocInfo::LAST_COMPACT_ENUM; in Write()
581 static inline RelocInfo::Mode GetPositionModeFromTag(int tag) { in GetPositionModeFromTag()
585 RelocInfo::POSITION : in GetPositionModeFromTag()
586 RelocInfo::STATEMENT_POSITION; in GetPositionModeFromTag()
601 if (SetMode(RelocInfo::EMBEDDED_OBJECT)) return; in next()
604 if (SetMode(RelocInfo::CODE_TARGET)) return; in next()
610 if (SetMode(RelocInfo::CODE_TARGET_WITH_ID)) { in next()
619 if (mode_mask_ & RelocInfo::kPositionMask) { in next()
636 if (SetMode(RelocInfo::CODE_TARGET_WITH_ID)) { in next()
644 if (mode_mask_ & RelocInfo::kPositionMask) { in next()
652 if (SetMode(RelocInfo::COMMENT)) { in next()
661 RelocInfo::Mode rmode = (pool_type == kConstPoolTag) ? in next()
662 RelocInfo::CONST_POOL : RelocInfo::VENEER_POOL; in next()
670 int rmode = extra_tag + RelocInfo::LAST_COMPACT_ENUM; in next()
671 if (SetMode(static_cast<RelocInfo::Mode>(rmode))) return; in next()
678 if (SetMode(RelocInfo::CODE_AGE_SEQUENCE)) { in next()
734 bool RelocInfo::RequiresRelocation(const CodeDesc& desc) { in RequiresRelocation()
738 int mode_mask = RelocInfo::kCodeTargetMask | in RequiresRelocation()
739 RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT) | in RequiresRelocation()
740 RelocInfo::ModeMask(RelocInfo::CELL) | in RequiresRelocation()
741 RelocInfo::kApplyMask; in RequiresRelocation()
749 const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) { in RelocModeName()
751 case RelocInfo::NONE32: in RelocModeName()
753 case RelocInfo::NONE64: in RelocModeName()
755 case RelocInfo::EMBEDDED_OBJECT: in RelocModeName()
757 case RelocInfo::CONSTRUCT_CALL: in RelocModeName()
759 case RelocInfo::DEBUG_BREAK: in RelocModeName()
761 case RelocInfo::CODE_TARGET: in RelocModeName()
763 case RelocInfo::CODE_TARGET_WITH_ID: in RelocModeName()
765 case RelocInfo::CELL: in RelocModeName()
767 case RelocInfo::RUNTIME_ENTRY: in RelocModeName()
769 case RelocInfo::JS_RETURN: in RelocModeName()
771 case RelocInfo::COMMENT: in RelocModeName()
773 case RelocInfo::POSITION: in RelocModeName()
775 case RelocInfo::STATEMENT_POSITION: in RelocModeName()
777 case RelocInfo::EXTERNAL_REFERENCE: in RelocModeName()
779 case RelocInfo::INTERNAL_REFERENCE: in RelocModeName()
781 case RelocInfo::CONST_POOL: in RelocModeName()
783 case RelocInfo::VENEER_POOL: in RelocModeName()
785 case RelocInfo::DEBUG_BREAK_SLOT: in RelocModeName()
787 case RelocInfo::CODE_AGE_SEQUENCE: in RelocModeName()
789 case RelocInfo::NUMBER_OF_MODES: in RelocModeName()
797 void RelocInfo::Print(Isolate* isolate, OStream& os) { // NOLINT in Print()
832 void RelocInfo::Verify(Isolate* isolate) { in Verify()
1525 DCHECK(pos != RelocInfo::kNoPosition); in RecordPosition()
1536 DCHECK(pos != RelocInfo::kNoPosition); in RecordStatementPosition()
1554 assembler_->RecordRelocInfo(RelocInfo::STATEMENT_POSITION, in WriteRecordedPositions()
1565 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); in WriteRecordedPositions()