| Index: src/debug/debug.cc
|
| diff --git a/src/debug/debug.cc b/src/debug/debug.cc
|
| index 3b5fb5f53d5f449b9cd3e0122a34fdffb93c44cc..e1f0d489c74e202104f5ba997ef0296638bfdd79 100644
|
| --- a/src/debug/debug.cc
|
| +++ b/src/debug/debug.cc
|
| @@ -1313,9 +1313,7 @@ bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) {
|
| {
|
| SharedFunctionInfo::Iterator iterator(isolate_);
|
| while (SharedFunctionInfo* shared = iterator.Next()) {
|
| - if (!shared->OptimizedCodeMapIsCleared()) {
|
| - shared->ClearOptimizedCodeMap();
|
| - }
|
| + shared->ClearCodeFromOptimizedCodeMap();
|
| }
|
| }
|
|
|
| @@ -1368,6 +1366,7 @@ bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) {
|
|
|
| for (Handle<JSFunction> const function : functions) {
|
| function->ReplaceCode(shared->code());
|
| + JSFunction::EnsureLiterals(function);
|
| }
|
|
|
| for (Handle<JSGeneratorObject> const generator_obj : suspended_generators) {
|
|
|