Index: src/profiler/tick-sample.cc |
diff --git a/src/profiler/tick-sample.cc b/src/profiler/tick-sample.cc |
index 2595404c13a08070208ec2be8b8c024ba1436b1a..afc2407d5ef7176a20bd9c18ed995652d8233cb6 100644 |
--- a/src/profiler/tick-sample.cc |
+++ b/src/profiler/tick-sample.cc |
@@ -147,7 +147,8 @@ bool TickSample::GetStackSample(Isolate* isolate, const v8::RegisterState& regs, |
reinterpret_cast<Address>(regs.sp), js_entry_sp); |
size_t i = 0; |
if (record_c_entry_frame == kIncludeCEntryFrame && !it.done() && |
- it.top_frame_type() == StackFrame::EXIT) { |
+ (it.top_frame_type() == StackFrame::EXIT || |
+ it.top_frame_type() == StackFrame::BUILTIN_EXIT)) { |
frames[i++] = isolate->c_function(); |
} |
while (!it.done() && i < frames_limit) { |