From ac2b1cea9718d35ffddac5e5a656e6669296e404 Mon Sep 17 00:00:00 2001 From: verwaest Date: Wed, 21 Jan 2015 05:40:32 -0800 Subject: [PATCH] Add a pretty printer to improve the error message non-function calls BUG=259443 LOG=y Review URL: https://codereview.chromium.org/861623002 Cr-Commit-Position: refs/heads/master@{#26189} --- src/compiler.h | 3 +- src/isolate.cc | 2 +- src/messages.h | 10 +- src/prettyprinter.cc | 420 +++++++++++++++++++++ src/prettyprinter.h | 37 ++ src/runtime.js | 8 +- src/runtime/runtime-internal.cc | 27 ++ src/runtime/runtime.h | 1 + test/cctest/test-api.cc | 9 +- test/mozilla/mozilla.status | 1 - test/webkit/exception-for-nonobject-expected.txt | 2 +- .../webkit/fast/js/toString-overrides-expected.txt | 5 +- test/webkit/run-json-stringify-expected.txt | 4 +- 13 files changed, 508 insertions(+), 21 deletions(-) diff --git a/src/compiler.h b/src/compiler.h index 4fc1635..82b296a 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -93,6 +93,7 @@ class CompilationInfo { }; CompilationInfo(Handle closure, Zone* zone); + CompilationInfo(Handle