Chromium Code Reviews| Index: src/profile-generator.cc |
| diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
| index 09468cad75d4860059ef1edc8dd0e96b948c7873..2ff92e0df970e41aa6766d1a37c281c8f9bf774f 100644 |
| --- a/src/profile-generator.cc |
| +++ b/src/profile-generator.cc |
| @@ -637,6 +637,12 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) { |
| *entry++ = unresolved_entry_; |
| } |
| } |
| + } else if (sample.top_frame_type == StackFrame::JAVA_SCRIPT || |
| + sample.top_frame_type == StackFrame::OPTIMIZED) { |
| + // Find out, if top of stack was pointing inside a JS function |
| + // meaning that we have encountered a frameless invocation. |
| + Address start; |
| + *entry++ = code_map_.FindEntry(sample.tos, &start); |
|
alph
2015/09/10 06:20:36
You can omit the second argument.
yurys
2015/09/10 15:58:49
Done. Also I did more clean-up in another CL: http
|
| } |
| } |