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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 // Script files are often large, hard to read. | 897 // Script files are often large, hard to read. |
898 // os << "\n - script ="; | 898 // os << "\n - script ="; |
899 // script()->Print(os); | 899 // script()->Print(os); |
900 os << "\n - function token position = " << function_token_position(); | 900 os << "\n - function token position = " << function_token_position(); |
901 os << "\n - start position = " << start_position(); | 901 os << "\n - start position = " << start_position(); |
902 os << "\n - end position = " << end_position(); | 902 os << "\n - end position = " << end_position(); |
903 os << "\n - is expression = " << is_expression(); | 903 os << "\n - is expression = " << is_expression(); |
904 os << "\n - debug info = " << Brief(debug_info()); | 904 os << "\n - debug info = " << Brief(debug_info()); |
905 os << "\n - length = " << length(); | 905 os << "\n - length = " << length(); |
906 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); | 906 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); |
907 os << "\n - feedback_metadata = "; | 907 os << "\n - feedback_vector = "; |
908 feedback_metadata()->TypeFeedbackMetadataPrint(os); | 908 feedback_vector()->TypeFeedbackVectorPrint(os); |
909 if (HasBytecodeArray()) { | 909 if (HasBytecodeArray()) { |
910 os << "\n - bytecode_array = " << bytecode_array(); | 910 os << "\n - bytecode_array = " << bytecode_array(); |
911 } | 911 } |
912 os << "\n"; | 912 os << "\n"; |
913 } | 913 } |
914 | 914 |
915 | 915 |
916 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT | 916 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT |
917 os << "global_proxy "; | 917 os << "global_proxy "; |
918 JSObjectPrint(os); | 918 JSObjectPrint(os); |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1326 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1327 Object* transitions = map()->raw_transitions(); | 1327 Object* transitions = map()->raw_transitions(); |
1328 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1328 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1329 if (num_transitions == 0) return; | 1329 if (num_transitions == 0) return; |
1330 os << "\n - transitions"; | 1330 os << "\n - transitions"; |
1331 TransitionArray::PrintTransitions(os, transitions, false); | 1331 TransitionArray::PrintTransitions(os, transitions, false); |
1332 } | 1332 } |
1333 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1333 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1334 } // namespace internal | 1334 } // namespace internal |
1335 } // namespace v8 | 1335 } // namespace v8 |
OLD | NEW |