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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 - num_literals = " << num_literals(); | 919 os << "\n - num_literals = " << num_literals(); |
920 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); | 920 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); |
921 os << "\n - feedback_vector = "; | 921 os << "\n - feedback_metadata = "; |
922 feedback_vector()->TypeFeedbackVectorPrint(os); | 922 feedback_metadata()->TypeFeedbackMetadataPrint(os); |
923 if (HasBytecodeArray()) { | 923 if (HasBytecodeArray()) { |
924 os << "\n - bytecode_array = " << bytecode_array(); | 924 os << "\n - bytecode_array = " << bytecode_array(); |
925 } | 925 } |
926 os << "\n"; | 926 os << "\n"; |
927 } | 927 } |
928 | 928 |
929 | 929 |
930 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT | 930 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT |
931 os << "global_proxy "; | 931 os << "global_proxy "; |
932 JSObjectPrint(os); | 932 JSObjectPrint(os); |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1338 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1339 Object* transitions = map()->raw_transitions(); | 1339 Object* transitions = map()->raw_transitions(); |
1340 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1340 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1341 if (num_transitions == 0) return; | 1341 if (num_transitions == 0) return; |
1342 os << "\n - transitions"; | 1342 os << "\n - transitions"; |
1343 TransitionArray::PrintTransitions(os, transitions, false); | 1343 TransitionArray::PrintTransitions(os, transitions, false); |
1344 } | 1344 } |
1345 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1345 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1346 } // namespace internal | 1346 } // namespace internal |
1347 } // namespace v8 | 1347 } // namespace v8 |
OLD | NEW |