diff --git a/src/compiler.h b/src/compiler.h index 6ebe8ec857..398409ad1a 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -120,13 +120,6 @@ class Compiler : public AllStatic { JavaScriptFrame* osr_frame); }; -// TODO(mstarzinger): Move this into the "crankshaft" directory. -struct InlinedFunctionInfo { - explicit InlinedFunctionInfo(int start_position) - : start_position(start_position) {} - int start_position; -}; - // CompilationInfo encapsulates some information known at compile time. It // is constructed based on the resources available at compile-time. @@ -386,10 +379,6 @@ class CompilationInfo final { prologue_offset_ = prologue_offset; } - std::vector& inlined_function_infos() { - return inlined_function_infos_; - } - CompilationDependencies* dependencies() { return &dependencies_; } int optimization_id() const { return optimization_id_; } @@ -519,7 +508,6 @@ class CompilationInfo final { int prologue_offset_; - std::vector inlined_function_infos_; bool track_positions_; InlinedFunctionList inlined_functions_; diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc index 286b48e412..7bb5529ced 100644 --- a/src/crankshaft/hydrogen.cc +++ b/src/crankshaft/hydrogen.cc @@ -1373,8 +1373,8 @@ int HGraphBuilder::TraceInlinedFunction(Handle shared, SourcePosition position) { DCHECK(info_->is_tracking_positions()); - int inline_id = static_cast(info_->inlined_function_infos().size()); - InlinedFunctionInfo info(shared->start_position()); + int inline_id = static_cast(graph()->inlined_function_infos().size()); + HInlinedFunctionInfo info(shared->start_position()); if (!shared->script()->IsUndefined()) { Handle