Commit 195a57b5 authored by whessev8's avatar whessev8

This change makes the runtime function %DebugPrint()

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
parent 1aa48bb9
...@@ -3221,7 +3221,8 @@ static Object* Runtime_DebugPrint(Arguments args) { ...@@ -3221,7 +3221,8 @@ static Object* Runtime_DebugPrint(Arguments args) {
} }
args[0]->Print(); args[0]->Print();
#else #else
PrintF("DebugPrint: %p", args[0]); // ShortPrint is available in release mode. Print is not.
args[0]->ShortPrint();
#endif #endif
PrintF("\n"); PrintF("\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment