Home
last modified time | relevance | path

Searched refs:rinfo (Results 1 – 25 of 35) sorted by relevance

12

/external/v8/test/cctest/
Dtest-reloc-info.cc37 RelocInfo rinfo(pc, mode, data, NULL); in WriteRinfo() local
38 writer->Write(&rinfo); in WriteRinfo()
74 CHECK_EQ(pc, it.rinfo()->pc()); in TEST()
75 CHECK_EQ(mode, it.rinfo()->rmode()); in TEST()
76 CHECK_EQ(pos, static_cast<int>(it.rinfo()->data())); in TEST()
91 CHECK_EQ(pc, it.rinfo()->pc()); in TEST()
92 CHECK_EQ(mode, it.rinfo()->rmode()); in TEST()
93 CHECK_EQ(pos, static_cast<int>(it.rinfo()->data())); in TEST()
107 CHECK_EQ(pc, it.rinfo()->pc()); in TEST()
108 CHECK_EQ(mode, it.rinfo()->rmode()); in TEST()
[all …]
/external/v8/src/mips/
Ddebug-mips.cc43 return Debug::IsDebugBreakAtReturn(rinfo()); in IsDebugBreakAtReturn()
59 CodePatcher patcher(rinfo()->pc(), Assembler::kJSReturnSequenceInstructions); in SetDebugBreakAtReturn()
76 rinfo()->PatchCode(original_rinfo()->pc(), in ClearDebugBreakAtReturn()
83 bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) { in IsDebugBreakAtReturn() argument
84 ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); in IsDebugBreakAtReturn()
85 return rinfo->IsPatchedReturnSequence(); in IsDebugBreakAtReturn()
92 return rinfo()->IsPatchedDebugBreakSlotSequence(); in IsDebugBreakAtSlot()
106 CodePatcher patcher(rinfo()->pc(), Assembler::kDebugBreakSlotInstructions); in SetDebugBreakAtSlot()
115 rinfo()->PatchCode(original_rinfo()->pc(), in ClearDebugBreakAtSlot()
/external/v8/src/ia32/
Ddebug-ia32.cc42 return Debug::IsDebugBreakAtReturn(rinfo()); in IsDebugBreakAtReturn()
53 rinfo()->PatchCodeWithCall(isolate->debug()->debug_break_return()->entry(), in SetDebugBreakAtReturn()
60 rinfo()->PatchCode(original_rinfo()->pc(), in ClearDebugBreakAtReturn()
67 bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) { in IsDebugBreakAtReturn() argument
68 ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); in IsDebugBreakAtReturn()
69 return rinfo->IsPatchedReturnSequence(); in IsDebugBreakAtReturn()
76 return rinfo()->IsPatchedDebugBreakSlotSequence(); in IsDebugBreakAtSlot()
83 rinfo()->PatchCodeWithCall( in SetDebugBreakAtSlot()
91 rinfo()->PatchCode(original_rinfo()->pc(), Assembler::kDebugBreakSlotLength); in ClearDebugBreakAtSlot()
Ddeoptimizer-ia32.cc102 RelocInfo rinfo(0, RelocInfo::COMMENT, comment_string, NULL); in EnsureRelocSpaceForLazyDeoptimization() local
107 reloc_info_writer.Write(&rinfo); in EnsureRelocSpaceForLazyDeoptimization()
157 RelocInfo rinfo(call_address + 1, // 1 after the call opcode. in DeoptimizeFunction() local
161 reloc_info_writer.Write(&rinfo); in DeoptimizeFunction()
Dassembler-ia32.cc2497 RelocInfo::Mode rmode = it.rinfo()->rmode(); in GrowBuffer()
2499 int32_t* p = reinterpret_cast<int32_t*>(it.rinfo()->pc()); in GrowBuffer()
2502 int32_t* p = reinterpret_cast<int32_t*>(it.rinfo()->pc()); in GrowBuffer()
2594 RelocInfo rinfo(pc_, rmode, data, NULL); in RecordRelocInfo() local
2595 reloc_info_writer.Write(&rinfo); in RecordRelocInfo()
/external/v8/src/x64/
Ddebug-x64.cc43 return Debug::IsDebugBreakAtReturn(rinfo()); in IsDebugBreakAtReturn()
53 rinfo()->PatchCodeWithCall( in SetDebugBreakAtReturn()
61 rinfo()->PatchCode(original_rinfo()->pc(), in ClearDebugBreakAtReturn()
68 bool Debug::IsDebugBreakAtReturn(v8::internal::RelocInfo* rinfo) { in IsDebugBreakAtReturn() argument
69 ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); in IsDebugBreakAtReturn()
70 return rinfo->IsPatchedReturnSequence(); in IsDebugBreakAtReturn()
77 return !Assembler::IsNop(rinfo()->pc()); in IsDebugBreakAtSlot()
83 rinfo()->PatchCodeWithCall( in SetDebugBreakAtSlot()
91 rinfo()->PatchCode(original_rinfo()->pc(), Assembler::kDebugBreakSlotLength); in ClearDebugBreakAtSlot()
/external/v8/src/arm/
Ddebug-arm.cc40 return Debug::IsDebugBreakAtReturn(rinfo()); in IsDebugBreakAtReturn()
60 CodePatcher patcher(rinfo()->pc(), Assembler::kJSReturnSequenceInstructions); in SetDebugBreakAtReturn()
75 rinfo()->PatchCode(original_rinfo()->pc(), in ClearDebugBreakAtReturn()
82 bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) { in IsDebugBreakAtReturn() argument
83 ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); in IsDebugBreakAtReturn()
84 return rinfo->IsPatchedReturnSequence(); in IsDebugBreakAtReturn()
91 return rinfo()->IsPatchedDebugBreakSlotSequence(); in IsDebugBreakAtSlot()
110 CodePatcher patcher(rinfo()->pc(), Assembler::kDebugBreakSlotInstructions); in SetDebugBreakAtSlot()
124 rinfo()->PatchCode(original_rinfo()->pc(), in ClearDebugBreakAtSlot()
Dassembler-arm.cc2479 RelocInfo& rinfo = pending_reloc_info_[i]; in GrowBuffer() local
2480 ASSERT(rinfo.rmode() != RelocInfo::COMMENT && in GrowBuffer()
2481 rinfo.rmode() != RelocInfo::POSITION); in GrowBuffer()
2482 if (rinfo.rmode() != RelocInfo::JS_RETURN) { in GrowBuffer()
2483 rinfo.set_pc(rinfo.pc() + pc_delta); in GrowBuffer()
2513 RelocInfo rinfo(pc_, rmode, data, NULL); in RecordRelocInfo() local
2526 pending_reloc_info_[num_pending_reloc_info_++] = rinfo; in RecordRelocInfo()
2531 if (rinfo.rmode() != RelocInfo::NONE) { in RecordRelocInfo()
2549 reloc_info_writer.Write(&rinfo); in RecordRelocInfo()
2627 RelocInfo& rinfo = pending_reloc_info_[i]; in CheckConstPool() local
[all …]
/external/v8/src/
Dincremental-marking.cc110 RelocInfo rinfo(pc, RelocInfo::CODE_TARGET, 0, host); in RecordCodeTargetPatch() local
111 RecordWriteIntoCode(host, &rinfo, value); in RecordCodeTargetPatch()
120 RelocInfo rinfo(pc, RelocInfo::CODE_TARGET, 0, host); in RecordCodeTargetPatch() local
121 RecordWriteIntoCode(host, &rinfo, value); in RecordCodeTargetPatch()
138 RelocInfo* rinfo, in RecordWriteIntoCodeSlow() argument
155 heap_->mark_compact_collector()->RecordRelocSlot(rinfo, in RecordWriteIntoCodeSlow()
170 void VisitEmbeddedPointer(RelocInfo* rinfo) { in VisitEmbeddedPointer() argument
171 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); in VisitEmbeddedPointer()
172 Object* target = rinfo->target_object(); in VisitEmbeddedPointer()
174 heap_->mark_compact_collector()->RecordRelocSlot(rinfo, target); in VisitEmbeddedPointer()
[all …]
Ddisassembler.cc153 } else if (it != NULL && !it->done() && it->rinfo()->pc() == pc && in DecodeIt()
154 it->rinfo()->rmode() == RelocInfo::INTERNAL_REFERENCE) { in DecodeIt()
174 while (!it->done() && it->rinfo()->pc() < pc) { in DecodeIt()
175 if (RelocInfo::IsComment(it->rinfo()->rmode())) { in DecodeIt()
177 comments.Add(reinterpret_cast<const char*>(it->rinfo()->data())); in DecodeIt()
180 pcs.Add(it->rinfo()->pc()); in DecodeIt()
181 rmodes.Add(it->rinfo()->rmode()); in DecodeIt()
182 datas.Add(it->rinfo()->data()); in DecodeIt()
304 if (RelocInfo::IsComment(it->rinfo()->rmode())) { in DecodeIt()
306 reinterpret_cast<const char*>(it->rinfo()->data())); in DecodeIt()
Dassembler.cc312 void RelocInfoWriter::Write(const RelocInfo* rinfo) { in Write() argument
316 ASSERT(rinfo->pc() - last_pc_ >= 0); in Write()
320 uint32_t pc_delta = static_cast<uint32_t>(rinfo->pc() - last_pc_); in Write()
321 RelocInfo::Mode rmode = rinfo->rmode(); in Write()
331 ASSERT(static_cast<int>(rinfo->data()) == rinfo->data()); in Write()
332 int id_delta = static_cast<int>(rinfo->data()) - last_id_; in Write()
342 last_id_ = static_cast<int>(rinfo->data()); in Write()
345 ASSERT(static_cast<int>(rinfo->data()) == rinfo->data()); in Write()
346 int pos_delta = static_cast<int>(rinfo->data()) - last_position_; in Write()
358 last_position_ = static_cast<int>(rinfo->data()); in Write()
[all …]
Dmark-compact.cc1029 static void VisitGlobalPropertyCell(Heap* heap, RelocInfo* rinfo) { in VisitGlobalPropertyCell() argument
1030 ASSERT(rinfo->rmode() == RelocInfo::GLOBAL_PROPERTY_CELL); in VisitGlobalPropertyCell()
1032 JSGlobalPropertyCell::cast(rinfo->target_cell()); in VisitGlobalPropertyCell()
1037 static inline void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo) { in VisitEmbeddedPointer() argument
1038 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); in VisitEmbeddedPointer()
1041 HeapObject* object = HeapObject::cast(rinfo->target_object()); in VisitEmbeddedPointer()
1042 heap->mark_compact_collector()->RecordRelocSlot(rinfo, object); in VisitEmbeddedPointer()
1047 static inline void VisitCodeTarget(Heap* heap, RelocInfo* rinfo) { in VisitCodeTarget() argument
1048 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode())); in VisitCodeTarget()
1049 Code* target = Code::GetCodeFromTargetAddress(rinfo->target_address()); in VisitCodeTarget()
[all …]
Dserialize.cc1498 void Serializer::ObjectSerializer::VisitEmbeddedPointer(RelocInfo* rinfo) { in VisitEmbeddedPointer() argument
1499 Object** current = rinfo->target_object_address(); in VisitEmbeddedPointer()
1501 OutputRawData(rinfo->target_address_address()); in VisitEmbeddedPointer()
1502 HowToCode representation = rinfo->IsCodedSpecially() ? kFromCode : kPlain; in VisitEmbeddedPointer()
1504 bytes_processed_so_far_ += rinfo->target_address_size(); in VisitEmbeddedPointer()
1522 void Serializer::ObjectSerializer::VisitExternalReference(RelocInfo* rinfo) { in VisitExternalReference() argument
1523 Address references_start = rinfo->target_address_address(); in VisitExternalReference()
1526 Address* current = rinfo->target_reference_address(); in VisitExternalReference()
1527 int representation = rinfo->IsCodedSpecially() ? in VisitExternalReference()
1532 bytes_processed_so_far_ += rinfo->target_address_size(); in VisitExternalReference()
[all …]
Dliveedit.cc947 virtual void VisitCodeTarget(RelocInfo* rinfo) { in VisitCodeTarget() argument
948 if (RelocInfo::IsCodeTarget(rinfo->rmode()) && in VisitCodeTarget()
949 Code::GetCodeFromTargetAddress(rinfo->target_address()) == original_) { in VisitCodeTarget()
950 reloc_infos_.Add(*rinfo); in VisitCodeTarget()
954 virtual void VisitDebugTarget(RelocInfo* rinfo) { in VisitDebugTarget() argument
955 VisitCodeTarget(rinfo); in VisitDebugTarget()
1202 void Write(const RelocInfo* rinfo) { in Write() argument
1206 reloc_info_writer_.Write(rinfo); in Write()
1269 RelocInfo* rinfo = it.rinfo(); in PatchPositionsInCode() local
1270 if (RelocInfo::IsPosition(rinfo->rmode())) { in PatchPositionsInCode()
[all …]
Dincremental-marking-inl.h72 RelocInfo* rinfo, in RecordWriteIntoCode() argument
75 RecordWriteIntoCodeSlow(obj, rinfo, value); in RecordWriteIntoCode()
Ddebug.h114 inline Address pc() { return reloc_iterator_->rinfo()->pc(); } in pc()
116 inline RelocInfo* rinfo() { return reloc_iterator_->rinfo(); } in rinfo() function
118 return reloc_iterator_->rinfo()->rmode(); in rmode()
121 return reloc_iterator_original_->rinfo(); in original_rinfo()
124 return reloc_iterator_original_->rinfo()->rmode(); in original_rmode()
262 static bool IsDebugBreakAtReturn(RelocInfo* rinfo);
Dobjects-visiting-inl.h116 it.rinfo()->Visit(v); in CodeIterateBody()
148 it.rinfo()->template Visit<StaticVisitor>(heap); in CodeIterateBody()
Dincremental-marking.h136 RelocInfo* rinfo,
145 RelocInfo* rinfo,
Ddebug.cc140 rinfo()->data() - debug_info_->shared()->start_position()); in Next()
145 rinfo()->data() - debug_info_->shared()->start_position()); in Next()
393 Address target = rinfo()->target_address(); in PrepareStepIn()
406 rinfo()->set_target_address(stub->entry()); in PrepareStepIn()
455 return Debug::IsDebugBreak(rinfo()->target_address()); in IsDebugBreak()
463 original_rinfo()->set_target_address(rinfo()->target_address()); in SetDebugBreakAtIC()
467 Address target = rinfo()->target_address(); in SetDebugBreakAtIC()
473 rinfo()->set_target_address(dbgbrk_code->entry()); in SetDebugBreakAtIC()
480 rinfo()->set_target_address(original_rinfo()->target_address()); in ClearDebugBreakAtIC()
1353 if (RelocInfo::IsCodeTarget(it.rinfo()->rmode())) { in PrepareStep()
[all …]
Dserialize.h351 virtual void VisitRuntimeEntry(RelocInfo* rinfo) { in VisitRuntimeEntry() argument
512 void VisitExternalReference(RelocInfo* rinfo);
515 void VisitGlobalPropertyCell(RelocInfo* rinfo);
Dobjects-debug.cc555 it.rinfo()->Verify(); in CodeVerify()
557 if (RelocInfo::IsGCRelocMode(it.rinfo()->rmode())) { in CodeVerify()
558 CHECK(it.rinfo()->pc() != last_gc_pc); in CodeVerify()
559 last_gc_pc = it.rinfo()->pc(); in CodeVerify()
Dspaces.cc2389 ASSERT(it->rinfo()->rmode() == RelocInfo::COMMENT); in CollectCommentStatistics()
2390 const char* tmp = reinterpret_cast<const char*>(it->rinfo()->data()); in CollectCommentStatistics()
2398 reinterpret_cast<const char*>(it->rinfo()->data()); in CollectCommentStatistics()
2399 const byte* prev_pc = it->rinfo()->pc(); in CollectCommentStatistics()
2406 if (it->rinfo()->rmode() == RelocInfo::COMMENT) { in CollectCommentStatistics()
2408 reinterpret_cast<const char*>(it->rinfo()->data()); in CollectCommentStatistics()
2409 flat_delta += static_cast<int>(it->rinfo()->pc() - prev_pc); in CollectCommentStatistics()
2414 prev_pc = it->rinfo()->pc(); in CollectCommentStatistics()
2436 if (it.rinfo()->rmode() == RelocInfo::COMMENT) { in CollectCodeStatistics()
2437 delta += static_cast<int>(it.rinfo()->pc() - prev_pc); in CollectCodeStatistics()
[all …]
Dassembler.h398 void Write(const RelocInfo* rinfo);
453 RelocInfo* rinfo() { in rinfo() function
Dobjects.cc7955 void ObjectVisitor::VisitCodeTarget(RelocInfo* rinfo) { in VisitCodeTarget() argument
7956 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode())); in VisitCodeTarget()
7957 Object* target = Code::GetCodeFromTargetAddress(rinfo->target_address()); in VisitCodeTarget()
7974 void ObjectVisitor::VisitGlobalPropertyCell(RelocInfo* rinfo) { in VisitGlobalPropertyCell() argument
7975 ASSERT(rinfo->rmode() == RelocInfo::GLOBAL_PROPERTY_CELL); in VisitGlobalPropertyCell()
7976 Object* cell = rinfo->target_cell(); in VisitGlobalPropertyCell()
7980 rinfo->set_target_cell(reinterpret_cast<JSGlobalPropertyCell*>(cell)); in VisitGlobalPropertyCell()
7985 void ObjectVisitor::VisitDebugTarget(RelocInfo* rinfo) { in VisitDebugTarget() argument
7986 ASSERT((RelocInfo::IsJSReturn(rinfo->rmode()) && in VisitDebugTarget()
7987 rinfo->IsPatchedReturnSequence()) || in VisitDebugTarget()
[all …]
Dtype-info.cc569 RelocInfo* info = it.rinfo(); in CollectKeyedReceiverTypes()
609 infos->Add(*it.rinfo()); in GetRelocInfos()

12