src: fix source list on V8 7.4 by mmarchini · Pull Request #316 · nodejs/llnode · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions src/llnode.cc
10 changes: 10 additions & 0 deletions src/llv8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,16 @@ Smi JSFrame::FromFrameMarker(Value value) const {
return Smi(value);
}


bool JSFrame::MightBeV8Frame(lldb::SBFrame& frame) {
// TODO(mmarchini): There might be a better way to check for V8 builtins
// embedded in the binary.
auto c_function_name = frame.GetFunctionName();
std::string function_name(c_function_name != nullptr ? c_function_name : "");

return !frame.GetSymbol().IsValid() || function_name.find("Builtins_") == 0;
}

std::string JSFunction::GetDebugLine(std::string args, Error& err) {
SharedFunctionInfo info = Info(err);
if (err.Fail()) return std::string();
Expand Down
2 changes: 2 additions & 0 deletions src/llv8.h