| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/objects.h" | 5 #include "src/objects.h" |
| 6 | 6 |
| 7 #include "src/disasm.h" | 7 #include "src/disasm.h" |
| 8 #include "src/disassembler.h" | 8 #include "src/disassembler.h" |
| 9 #include "src/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
| 10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 } | 863 } |
| 864 | 864 |
| 865 | 865 |
| 866 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT | 866 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT |
| 867 HeapObject::PrintHeader(os, "Function"); | 867 HeapObject::PrintHeader(os, "Function"); |
| 868 os << " - map = " << reinterpret_cast<void*>(map()) << "\n"; | 868 os << " - map = " << reinterpret_cast<void*>(map()) << "\n"; |
| 869 os << " - initial_map = "; | 869 os << " - initial_map = "; |
| 870 if (has_initial_map()) os << Brief(initial_map()); | 870 if (has_initial_map()) os << Brief(initial_map()); |
| 871 os << "\n - shared_info = " << Brief(shared()); | 871 os << "\n - shared_info = " << Brief(shared()); |
| 872 os << "\n - name = " << Brief(shared()->name()); | 872 os << "\n - name = " << Brief(shared()->name()); |
| 873 if (shared()->is_generator()) { |
| 874 os << "\n - generator"; |
| 875 } |
| 873 os << "\n - context = " << Brief(context()); | 876 os << "\n - context = " << Brief(context()); |
| 874 if (shared()->bound()) { | 877 if (shared()->bound()) { |
| 875 os << "\n - bindings = " << Brief(function_bindings()); | 878 os << "\n - bindings = " << Brief(function_bindings()); |
| 876 } else { | 879 } else { |
| 877 os << "\n - literals = " << Brief(literals()); | 880 os << "\n - literals = " << Brief(literals()); |
| 878 } | 881 } |
| 879 os << "\n - code = " << Brief(code()); | 882 os << "\n - code = " << Brief(code()); |
| 880 os << "\n"; | 883 os << "\n"; |
| 881 PrintProperties(os); | 884 PrintProperties(os); |
| 882 PrintElements(os); | 885 PrintElements(os); |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 } | 1336 } |
| 1334 } | 1337 } |
| 1335 | 1338 |
| 1336 | 1339 |
| 1337 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1340 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1338 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1341 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
| 1339 } | 1342 } |
| 1340 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1343 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1341 } // namespace internal | 1344 } // namespace internal |
| 1342 } // namespace v8 | 1345 } // namespace v8 |
| OLD | NEW |