Fixed printer for JSFunction.

R=verwaest@chromium.org

Review URL: https://codereview.chromium.org/85613003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18044 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 289be486
...@@ -862,8 +862,13 @@ void JSFunction::JSFunctionPrint(FILE* out) { ...@@ -862,8 +862,13 @@ void JSFunction::JSFunctionPrint(FILE* out) {
shared()->name()->Print(out); shared()->name()->Print(out);
PrintF(out, "\n - context = "); PrintF(out, "\n - context = ");
context()->ShortPrint(out); context()->ShortPrint(out);
PrintF(out, "\n - literals = "); if (shared()->bound()) {
literals()->ShortPrint(out); PrintF(out, "\n - bindings = ");
function_bindings()->ShortPrint(out);
} else {
PrintF(out, "\n - literals = ");
literals()->ShortPrint(out);
}
PrintF(out, "\n - code = "); PrintF(out, "\n - code = ");
code()->ShortPrint(out); code()->ShortPrint(out);
PrintF(out, "\n"); PrintF(out, "\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