From 481c25908c1f17c723a3a1243cf86f91290c6e97 Mon Sep 17 00:00:00 2001 From: "yurys@chromium.org" Date: Tue, 5 Oct 2010 13:29:31 +0000 Subject: [PATCH] Code clean-up in src/top.cc This patch addresses late review comments for http://code.google.com/p/v8/source/detail?r=5586 Review URL: http://codereview.chromium.org/3596005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5592 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/top.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/top.cc b/src/top.cc index d88473f..777f041 100644 --- a/src/top.cc +++ b/src/top.cc @@ -344,6 +344,10 @@ Handle Top::CaptureCurrentStackTrace( Handle column_key = Factory::LookupAsciiSymbol("column"); Handle line_key = Factory::LookupAsciiSymbol("lineNumber"); Handle script_key = Factory::LookupAsciiSymbol("scriptName"); + Handle name_or_source_url_key = + Factory::LookupAsciiSymbol("nameOrSourceURL"); + Handle script_name_or_source_url_key = + Factory::LookupAsciiSymbol("scriptNameOrSourceURL"); Handle function_key = Factory::LookupAsciiSymbol("functionName"); Handle eval_key = Factory::LookupAsciiSymbol("isEval"); Handle constructor_key = Factory::LookupAsciiSymbol("isConstructor"); @@ -355,13 +359,13 @@ Handle Top::CaptureCurrentStackTrace( Handle stackFrame = Factory::NewJSObject(object_function()); JavaScriptFrame* frame = it.frame(); - JSFunction* fun(JSFunction::cast(frame->function())); - Script* script = Script::cast(fun->shared()->script()); + Handle fun(JSFunction::cast(frame->function())); + Handle