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 } | |
876 os << "\n - context = " << Brief(context()); | 873 os << "\n - context = " << Brief(context()); |
877 if (shared()->bound()) { | 874 if (shared()->bound()) { |
878 os << "\n - bindings = " << Brief(function_bindings()); | 875 os << "\n - bindings = " << Brief(function_bindings()); |
879 } else { | 876 } else { |
880 os << "\n - literals = " << Brief(literals()); | 877 os << "\n - literals = " << Brief(literals()); |
881 } | 878 } |
882 os << "\n - code = " << Brief(code()); | 879 os << "\n - code = " << Brief(code()); |
883 os << "\n"; | 880 os << "\n"; |
884 PrintProperties(os); | 881 PrintProperties(os); |
885 PrintElements(os); | 882 PrintElements(os); |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 } | 1333 } |
1337 } | 1334 } |
1338 | 1335 |
1339 | 1336 |
1340 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1337 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1341 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1338 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
1342 } | 1339 } |
1343 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1340 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1344 } // namespace internal | 1341 } // namespace internal |
1345 } // namespace v8 | 1342 } // namespace v8 |
OLD | NEW |