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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 os << "\n - anonymous expression"; | 910 os << "\n - anonymous expression"; |
911 } else if (is_declaration()) { | 911 } else if (is_declaration()) { |
912 os << "\n - declaration"; | 912 os << "\n - declaration"; |
913 } | 913 } |
914 os << "\n - function token position = " << function_token_position(); | 914 os << "\n - function token position = " << function_token_position(); |
915 os << "\n - start position = " << start_position(); | 915 os << "\n - start position = " << start_position(); |
916 os << "\n - end position = " << end_position(); | 916 os << "\n - end position = " << end_position(); |
917 os << "\n - debug info = " << Brief(debug_info()); | 917 os << "\n - debug info = " << Brief(debug_info()); |
918 os << "\n - length = " << length(); | 918 os << "\n - length = " << length(); |
919 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); | 919 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); |
920 os << "\n - feedback_vector = "; | 920 os << "\n - feedback_metadata = "; |
921 feedback_vector()->TypeFeedbackVectorPrint(os); | 921 feedback_metadata()->TypeFeedbackMetadataPrint(os); |
922 if (HasBytecodeArray()) { | 922 if (HasBytecodeArray()) { |
923 os << "\n - bytecode_array = " << bytecode_array(); | 923 os << "\n - bytecode_array = " << bytecode_array(); |
924 } | 924 } |
925 os << "\n"; | 925 os << "\n"; |
926 } | 926 } |
927 | 927 |
928 | 928 |
929 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT | 929 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT |
930 os << "global_proxy "; | 930 os << "global_proxy "; |
931 JSObjectPrint(os); | 931 JSObjectPrint(os); |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1337 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1337 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1338 Object* transitions = map()->raw_transitions(); | 1338 Object* transitions = map()->raw_transitions(); |
1339 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1339 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1340 if (num_transitions == 0) return; | 1340 if (num_transitions == 0) return; |
1341 os << "\n - transitions"; | 1341 os << "\n - transitions"; |
1342 TransitionArray::PrintTransitions(os, transitions, false); | 1342 TransitionArray::PrintTransitions(os, transitions, false); |
1343 } | 1343 } |
1344 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1344 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1345 } // namespace internal | 1345 } // namespace internal |
1346 } // namespace v8 | 1346 } // namespace v8 |
OLD | NEW |