This change makes the runtime function %DebugPrint()
authorwhessev8 <whessev8@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 10 Sep 2008 10:32:33 +0000 (10:32 +0000)
committerwhessev8 <whessev8@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 10 Sep 2008 10:32:33 +0000 (10:32 +0000)
print the content of strings in release build, rather
than just a pointer.  This lets test_shell print to stdout.

Review URL: http://codereview.chromium.org/1697

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@251 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/runtime.cc

index 6904ff4..5bab875 100644 (file)
@@ -3221,7 +3221,8 @@ static Object* Runtime_DebugPrint(Arguments args) {
   }
   args[0]->Print();
 #else
-  PrintF("DebugPrint: %p", args[0]);
+  // ShortPrint is available in release mode. Print is not.
+  args[0]->ShortPrint();
 #endif
   PrintF("\n");