| Index: src/objects-printer.cc
|
| diff --git a/src/objects-printer.cc b/src/objects-printer.cc
|
| index 2f0b1b31eec2fa380b305865f323d9c01fbd154b..f45a035451f63f2b16af25a748abb4d5bec9bac4 100644
|
| --- a/src/objects-printer.cc
|
| +++ b/src/objects-printer.cc
|
| @@ -7,6 +7,7 @@
|
| #include "src/disasm.h"
|
| #include "src/disassembler.h"
|
| #include "src/heap/objects-visiting.h"
|
| +#include "src/interpreter/bytecodes.h"
|
| #include "src/jsregexp.h"
|
| #include "src/ostreams.h"
|
|
|
| @@ -72,6 +73,9 @@ void HeapObject::HeapObjectPrint(std::ostream& os) { // NOLINT
|
| case BYTE_ARRAY_TYPE:
|
| ByteArray::cast(this)->ByteArrayPrint(os);
|
| break;
|
| + case BYTECODE_ARRAY_TYPE:
|
| + BytecodeArray::cast(this)->BytecodeArrayPrint(os);
|
| + break;
|
| case FREE_SPACE_TYPE:
|
| FreeSpace::cast(this)->FreeSpacePrint(os);
|
| break;
|
| @@ -201,6 +205,11 @@ void ByteArray::ByteArrayPrint(std::ostream& os) { // NOLINT
|
| }
|
|
|
|
|
| +void BytecodeArray::BytecodeArrayPrint(std::ostream& os) { // NOLINT
|
| + Disassemble(os);
|
| +}
|
| +
|
| +
|
| void FreeSpace::FreeSpacePrint(std::ostream& os) { // NOLINT
|
| os << "free space, size " << Size();
|
| }
|
| @@ -817,6 +826,9 @@ void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT
|
| os << "\n - optimized_code_map = " << Brief(optimized_code_map());
|
| os << "\n - feedback_vector = ";
|
| feedback_vector()->TypeFeedbackVectorPrint(os);
|
| + if (HasBytecodeArray()) {
|
| + os << "\n - bytecode_array = " << bytecode_array();
|
| + }
|
| os << "\n";
|
| }
|
|
|
|
|