Revision: 13366
Author:   [email protected]
Date:     Mon Jan 14 00:36:38 2013
Log:      We can't print the AST or the source for stubs.

BUG=v8:2486

Review URL: https://codereview.chromium.org/11881017
http://code.google.com/p/v8/source/detail?r=13366

Modified:
 /branches/bleeding_edge/src/codegen.cc

=======================================
--- /branches/bleeding_edge/src/codegen.cc      Wed Jan  9 02:30:54 2013
+++ /branches/bleeding_edge/src/codegen.cc      Mon Jan 14 00:36:38 2013
@@ -86,12 +86,12 @@
     PrintF(" ***\n");
   }

-  if (print_source) {
+  if (!info->IsStub() && print_source) {
     PrintF("--- Source from AST ---\n%s\n",
            PrettyPrinter().PrintProgram(info->function()));
   }

-  if (print_ast) {
+  if (!info->IsStub() && print_ast) {
     PrintF("--- AST ---\n%s\n",
            AstPrinter().PrintProgram(info->function()));
   }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to