Author: whessev8
Date: Wed Sep 10 02:22:33 2008
New Revision: 248

Added:
    changes/whessev8/
    changes/whessev8/print-strings-from-testshell/
    changes/whessev8/print-strings-from-testshell/bleeding_edge/
       - copied from r247, /branches/bleeding_edge/
Modified:
     
changes/whessev8/print-strings-from-testshell/bleeding_edge/src/runtime.cc

Log:
This change makes the release version of V8 print strings
using ShortPrint when runtime %DebugPrint() is called,
using --allow-natives-syntax.  This allows testshell to
print to stdout with the option --js-flags="--allow-natives-syntax"


Modified:  
changes/whessev8/print-strings-from-testshell/bleeding_edge/src/runtime.cc
==============================================================================
--- /branches/bleeding_edge/src/runtime.cc      (original)
+++  
changes/whessev8/print-strings-from-testshell/bleeding_edge/src/runtime.cc      
 
Wed Sep 10 02:22:33 2008
@@ -3221,7 +3221,8 @@
    }
    args[0]->Print();
  #else
-  PrintF("DebugPrint: %p", args[0]);
+  // ShortPrint is available in release mode. Print is not.
+  args[0]->ShortPrint();
  #endif
    PrintF("\n");


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

Reply via email to