Index: src/runtime-profiler.cc |
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc |
index 9eb092af8e10f2cdde9146b92f3dfd6d1156e324..70c61b1cebe5ded8306ad58bce21bdb13c18d2cf 100644 |
--- a/src/runtime-profiler.cc |
+++ b/src/runtime-profiler.cc |
@@ -464,10 +464,10 @@ void RuntimeProfiler::MarkCandidatesForOptimization() { |
// Update shared function info ticks after checking for whether functions |
// should be optimized to keep FCG (which updates ticks on code) and |
// Ignition (which updates ticks on shared function info) in sync. |
- List<JSFunction*> functions(4); |
+ List<SharedFunctionInfo*> functions(4); |
frame->GetFunctions(&functions); |
for (int i = functions.length(); --i >= 0;) { |
- SharedFunctionInfo* shared_function_info = functions[i]->shared(); |
+ SharedFunctionInfo* shared_function_info = functions[i]; |
int ticks = shared_function_info->profiler_ticks(); |
if (ticks < Smi::kMaxValue) { |
shared_function_info->set_profiler_ticks(ticks + 1); |