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