Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index de539bc146bce27cf1fab641d6736611eccb37f9..0fa036170ba339deaf2f246e8ce47ac31f6a097a 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -180,59 +180,6 @@ bool CompilationInfo::has_simple_parameters() { |
} |
-int CompilationInfo::TraceInlinedFunction(Handle<SharedFunctionInfo> shared, |
- SourcePosition position, |
- int parent_id) { |
- DCHECK(track_positions_); |
- |
- int inline_id = static_cast<int>(inlined_function_infos_.size()); |
- InlinedFunctionInfo info(parent_id, position, UnboundScript::kNoScriptId, |
- shared->start_position()); |
- if (!shared->script()->IsUndefined()) { |
- Handle<Script> script(Script::cast(shared->script())); |
- info.script_id = script->id(); |
- |
- if (FLAG_hydrogen_track_positions && !script->source()->IsUndefined()) { |
- CodeTracer::Scope tracing_scope(isolate()->GetCodeTracer()); |
- OFStream os(tracing_scope.file()); |
- os << "--- FUNCTION SOURCE (" << shared->DebugName()->ToCString().get() |
- << ") id{" << optimization_id() << "," << inline_id << "} ---\n"; |
- { |
- DisallowHeapAllocation no_allocation; |
- int start = shared->start_position(); |
- int len = shared->end_position() - start; |
- String::SubStringRange source(String::cast(script->source()), start, |
- len); |
- for (const auto& c : source) { |
- os << AsReversiblyEscapedUC16(c); |
- } |
- } |
- |
- os << "\n--- END ---\n"; |
- } |
- } |
- |
- inlined_function_infos_.push_back(info); |
- |
- if (FLAG_hydrogen_track_positions && inline_id != 0) { |
- CodeTracer::Scope tracing_scope(isolate()->GetCodeTracer()); |
- OFStream os(tracing_scope.file()); |
- os << "INLINE (" << shared->DebugName()->ToCString().get() << ") id{" |
- << optimization_id() << "," << inline_id << "} AS " << inline_id |
- << " AT " << position << std::endl; |
- } |
- |
- return inline_id; |
-} |
- |
- |
-void CompilationInfo::LogDeoptCallPosition(int pc_offset, int inlining_id) { |
- if (!track_positions_ || IsStub()) return; |
- DCHECK_LT(static_cast<size_t>(inlining_id), inlined_function_infos_.size()); |
- inlined_function_infos_.at(inlining_id).deopt_pc_offsets.push_back(pc_offset); |
-} |
- |
- |
base::SmartArrayPointer<char> CompilationInfo::GetDebugName() const { |
if (parse_info() && parse_info()->literal()) { |
AllowHandleDereference allow_deref; |