Chromium Code Reviews| Index: src/frames.cc |
| diff --git a/src/frames.cc b/src/frames.cc |
| index 6f5176261b3881565bf5b8631c8bfd82deadb5d6..d81bbb784abc5f9915e5c50f07174e12fee88b46 100644 |
| --- a/src/frames.cc |
| +++ b/src/frames.cc |
| @@ -863,6 +863,14 @@ void JavaScriptFrame::GetFunctions(List<JSFunction*>* functions) const { |
| void JavaScriptFrame::Summarize(List<FrameSummary>* functions) const { |
| DCHECK(functions->length() == 0); |
| Code* code = LookupCode(); |
| + |
| + // TODO(caitp): these builtins cause crashes here --- that's not good! |
|
caitp (gmail)
2016/04/26 22:01:30
unfortunately still needed in Option C, for reason
|
| + // Should probably be a better way to keep functions from being included in |
| + // stack trace. |
| + if (code == *function()->GetIsolate()->builtins()->AsyncFunctionNext() || |
| + code == *function()->GetIsolate()->builtins()->AsyncFunctionThrow()) |
| + return; |
| + |
| int offset = static_cast<int>(pc() - code->instruction_start()); |
| AbstractCode* abstract_code = AbstractCode::cast(code); |
| FrameSummary summary(receiver(), function(), abstract_code, offset, |