| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 86bdc7cbb268078db55c5e019a891e5a1f1cc659..3f3e8ce93cc19d5938c0cfd4388a8f34fb1b5b7b 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -1921,6 +1921,18 @@ void JSObject::JSObjectShortPrint(StringStream* accumulator) {
|
| if (!printed) {
|
| accumulator->Add("<JS Function");
|
| }
|
| + if (FLAG_trace_file_names) {
|
| + Object* source_name =
|
| + Script::cast(function->shared()->script())->name();
|
| + if (source_name->IsString()) {
|
| + String* str = String::cast(source_name);
|
| + if (str->length() > 0) {
|
| + accumulator->Add(" <");
|
| + accumulator->Put(str);
|
| + accumulator->Add(">");
|
| + }
|
| + }
|
| + }
|
| accumulator->Add(" (SharedFunctionInfo %p)",
|
| reinterpret_cast<void*>(function->shared()));
|
| accumulator->Put('>');
|
|
|