| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index fbb73a71e11d55d4a62295dda1ea8b5c63298c16..d21ae8fe5bd6b4c617e054c7b15ab4e1e6155785 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -7791,7 +7791,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
|
| @@ -7807,7 +7807,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);
|
| }
|
| }
|
|
|
|
|