From: yangguo Date: Tue, 28 Apr 2015 08:53:12 +0000 (-0700) Subject: Port CallSite methods to C++. X-Git-Tag: upstream/4.7.83~2945 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d12e9480133a2e4d65749c5c2587ec685bb5c76;p=platform%2Fupstream%2Fv8.git Port CallSite methods to C++. The goal is to port all of error stack trace formatting to C++. We will do this bottom up, by first porting helper functions. Eventually, CallSite methods will only be used when a custom error stack trace formatter is defined via Error.prepareStackTrace. R=jkummerow@chromium.org Review URL: https://codereview.chromium.org/1060583008 Cr-Commit-Position: refs/heads/master@{#28095} --- diff --git a/src/messages.cc b/src/messages.cc index 1c07854..7dc5f64 100644 --- a/src/messages.cc +++ b/src/messages.cc @@ -163,6 +163,85 @@ SmartArrayPointer MessageHandler::GetLocalizedMessage( } +Handle CallSite::GetFileName(Isolate* isolate) { + Handle script(fun_->shared()->script(), isolate); + if (script->IsScript()) { + return Handle(Handle