From f822f101a02b9b765f8a8f37819c71b7cee343d6 Mon Sep 17 00:00:00 2001 From: "peter.rybin@gmail.com" Date: Thu, 18 Mar 2010 22:15:54 +0000 Subject: [PATCH] Show file name/line number in stack trace Review URL: http://codereview.chromium.org/1002010 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4186 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/frames.cc | 25 +++++++++++++++++++++++++ src/handles.cc | 24 ++++++++++++++++++++++++ src/handles.h | 2 ++ 3 files changed, 51 insertions(+) diff --git a/src/frames.cc b/src/frames.cc index 3bf4c93e3..227fa67d5 100644 --- a/src/frames.cc +++ b/src/frames.cc @@ -520,6 +520,31 @@ void JavaScriptFrame::Print(StringStream* accumulator, Code* code = NULL; if (IsConstructor()) accumulator->Add("new "); accumulator->PrintFunction(function, receiver, &code); + + if (function->IsJSFunction()) { + Handle shared(JSFunction::cast(function)->shared()); + Object* script_obj = shared->script(); + if (script_obj->IsScript()) { + Handle