diff --git a/src/d8/d8.cc b/src/d8/d8.cc --- a/src/d8/d8.cc +++ b/src/d8/d8.cc @@ -4149,9 +4149,6 @@ auto bytecode = i::handle(current->GetBytecodeArray(isolate), isolate); std::cout << "\nStart SharedFunctionInfo\n"; current->SharedFunctionInfoPrint(std::cout); - std::cout << "\nStart BytecodeArray\n"; - bytecode->Disassemble(std::cout); - std::cout << "\nEnd BytecodeArray\n"; std::cout << "End SharedFunctionInfo\n" << std::flush; auto constants = i::handle(bytecode->constant_pool(), isolate); diff --git a/src/diagnostics/objects-printer.cc b/src/diagnostics/objects-printer.cc --- a/src/diagnostics/objects-printer.cc +++ b/src/diagnostics/objects-printer.cc @@ -1852,8 +1852,8 @@ void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { } else { os << ""; } - PrintSourceCode(os); // Script files are often large, thus only print their {Brief} representation. + // (PrintSourceCode removed: .jsc caches have no real source text.) os << "\n - script: " << Brief(script()); os << "\n - function token position: " << function_token_position(); os << "\n - start position: " << StartPosition(); @@ -1875,6 +1875,10 @@ void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { os << ""; } os << "\n"; + os << "\nStart BytecodeArray\n"; + this->GetActiveBytecodeArray().Disassemble(os); + os << "\nEnd BytecodeArray\n"; + os << std::flush; } void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) {