| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index e17cbb1d6b2d28524421dc5293c155fc9a847fdd..b76785deeb7c7b67a05b0fdae8e3228d77a47e8e 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -90,7 +90,8 @@ static void GetICCounts(SharedFunctionInfo* shared,
|
|
|
|
|
| void RuntimeProfiler::Optimize(JSFunction* function, const char* reason) {
|
| - if (FLAG_trace_opt && function->PassesFilter(FLAG_hydrogen_filter)) {
|
| + if (FLAG_trace_opt &&
|
| + function->shared()->PassesFilter(FLAG_hydrogen_filter)) {
|
| PrintF("[marking ");
|
| function->ShortPrint();
|
| PrintF(" for recompilation, reason: %s", reason);
|
|
|