Lines Matching refs:Code
6 // * Redistributions of source code must retain the above copyright
211 Code* code = abstract_code->GetCode();
212 DCHECK(code->instruction_start() == code->address() + Code::kHeaderSize);
216 LogWriteDebugInfo(code, shared);
220 uint8_t* code_pointer = reinterpret_cast<uint8_t*>(code->instruction_start());
221 uint32_t code_size = code->is_crankshafted() ? code->safepoint_table_offset()
222 : code->instruction_size();
225 if (FLAG_perf_prof_unwinding_info) LogWriteUnwindingInfo(code);
268 SourcePositionInfo GetSourcePositionInfo(Handle<Code> code,
271 if (code->is_turbofanned() || code->is_crankshafted()) {
273 return pos.InliningStack(code)[0];
281 void PerfJitLogger::LogWriteDebugInfo(Code* code, SharedFunctionInfo* shared) {
284 for (SourcePositionTableIterator iterator(code->source_position_table());
295 debug_info.address_ = reinterpret_cast<uint64_t>(code->instruction_start());
303 Handle<Code> code_handle(code);
305 for (SourcePositionTableIterator iterator(code->source_position_table());
318 Address code_start = code->instruction_start();
320 for (SourcePositionTableIterator iterator(code->source_position_table());
325 // TODO(danno): There seems to be a bug in the dwarf handling of JIT code in
344 void PerfJitLogger::LogWriteUnwindingInfo(Code* code) {
350 if (code->has_unwinding_info()) {
351 unwinding_info_header.unwinding_size_ = code->unwinding_info_size();
366 if (code->has_unwinding_info()) {
367 LogWriteBytes(reinterpret_cast<const char*>(code->unwinding_info_start()),
368 code->unwinding_info_size());
380 // Code relocation not supported.