messages.js: Get better function names in stack traces.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 24 May 2012 11:00:05 +0000 (11:00 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 24 May 2012 11:00:05 +0000 (11:00 +0000)
commit86c2a15691e76b4b8b75c39f08e27b1bb3dbe0f7
tree930cff510b5faeb323ade0ee2cdcc19a66b8005d
parentff216c9cea6f3867a56b403785d41112567d5871
messages.js: Get better function names in stack traces.

CallSite.getFunctionName() is able to retrieve names for functions better than
getFunction().name.  Use it in CallSite.toString().

Code by marja@chromium.org.

BUG=NONE
TEST=stack-traces.js: Added testClassNames.

Review URL: https://chromiumcodereview.appspot.com/10384196

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11652 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/messages.js
test/mjsunit/stack-traces.js