| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index 6b942d44a6cbca5a2ec53830547bc4d49b022af5..d2edd1b2b7a30494537c4e3c5ceaf61df94a51aa 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -108,7 +108,7 @@ void RuntimeProfiler::Optimize(JSFunction* function, const char* reason) {
|
| void RuntimeProfiler::AttemptOnStackReplacement(JSFunction* function,
|
| int loop_nesting_levels) {
|
| SharedFunctionInfo* shared = function->shared();
|
| - if (!FLAG_use_osr || function->IsBuiltin()) {
|
| + if (!FLAG_use_osr || function->shared()->IsBuiltin()) {
|
| return;
|
| }
|
|
|
|
|