| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 82cefdcbba3054045a2b3fb227fa360a26b8ccd5..b63ceacc3decf6ba0d7ca4518d56e8c2b1df60b2 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -7831,7 +7831,7 @@ void SharedFunctionInfo::EnableDeoptimizationSupport(Code* recompiled) {
|
| }
|
|
|
|
|
| -void SharedFunctionInfo::DisableOptimization() {
|
| +void SharedFunctionInfo::DisableOptimization(const char* reason) {
|
| // Disable optimization for the shared function info and mark the
|
| // code as non-optimizable. The marker on the shared function info
|
| // is there because we flush non-optimized code thereby loosing the
|
| @@ -7847,7 +7847,8 @@ void SharedFunctionInfo::DisableOptimization() {
|
| code()->set_optimizable(false);
|
| }
|
| if (FLAG_trace_opt) {
|
| - PrintF("[disabled optimization for %s]\n", *DebugName()->ToCString());
|
| + PrintF("[disabled optimization for %s, reason: %s]\n",
|
| + *DebugName()->ToCString(), reason);
|
| }
|
| }
|
|
|
|
|