| 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 } | 860 } |
| 861 | 861 |
| 862 | 862 |
| 863 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT | 863 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT |
| 864 HeapObject::PrintHeader(os, "Function"); | 864 HeapObject::PrintHeader(os, "Function"); |
| 865 os << " - map = " << reinterpret_cast<void*>(map()) << "\n"; | 865 os << " - map = " << reinterpret_cast<void*>(map()) << "\n"; |
| 866 os << " - initial_map = "; | 866 os << " - initial_map = "; |
| 867 if (has_initial_map()) os << Brief(initial_map()); | 867 if (has_initial_map()) os << Brief(initial_map()); |
| 868 os << "\n - shared_info = " << Brief(shared()); | 868 os << "\n - shared_info = " << Brief(shared()); |
| 869 os << "\n - name = " << Brief(shared()->name()); | 869 os << "\n - name = " << Brief(shared()->name()); |
| 870 if (shared()->is_generator()) { |
| 871 os << "\n - generator"; |
| 872 } |
| 870 os << "\n - context = " << Brief(context()); | 873 os << "\n - context = " << Brief(context()); |
| 871 if (shared()->bound()) { | 874 if (shared()->bound()) { |
| 872 os << "\n - bindings = " << Brief(function_bindings()); | 875 os << "\n - bindings = " << Brief(function_bindings()); |
| 873 } else { | 876 } else { |
| 874 os << "\n - literals = " << Brief(literals()); | 877 os << "\n - literals = " << Brief(literals()); |
| 875 } | 878 } |
| 876 os << "\n - code = " << Brief(code()); | 879 os << "\n - code = " << Brief(code()); |
| 877 os << "\n"; | 880 os << "\n"; |
| 878 PrintProperties(os); | 881 PrintProperties(os); |
| 879 PrintElements(os); | 882 PrintElements(os); |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1324 } | 1327 } |
| 1325 } | 1328 } |
| 1326 | 1329 |
| 1327 | 1330 |
| 1328 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1331 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1329 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1332 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
| 1330 } | 1333 } |
| 1331 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1334 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1332 } // namespace internal | 1335 } // namespace internal |
| 1333 } // namespace v8 | 1336 } // namespace v8 |
| OLD | NEW |