src: fix source list on V8 7.4 · nodejs/llnode@ec01604 · GitHub
Skip to content

Commit ec01604

Browse files
committed
src: fix source list on V8 7.4
PR-URL: #316 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent a79a008 commit ec01604

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

src/llnode.cc

Lines changed: 2 additions & 9 deletions

src/llv8.cc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,16 @@ Smi JSFrame::FromFrameMarker(Value value) const {
293293
return Smi(value);
294294
}
295295

296+
297+
bool JSFrame::MightBeV8Frame(lldb::SBFrame& frame) {
298+
// TODO(mmarchini): There might be a better way to check for V8 builtins
299+
// embedded in the binary.
300+
auto c_function_name = frame.GetFunctionName();
301+
std::string function_name(c_function_name != nullptr ? c_function_name : "");
302+
303+
return !frame.GetSymbol().IsValid() || function_name.find("Builtins_") == 0;
304+
}
305+
296306
std::string JSFunction::GetDebugLine(std::string args, Error& err) {
297307
SharedFunctionInfo info = Info(err);
298308
if (err.Fail()) return std::string();

src/llv8.h

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)