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 <iomanip> | 7 #include <iomanip> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 if (is_named_expression()) { | 1087 if (is_named_expression()) { |
1088 os << "\n - named expression"; | 1088 os << "\n - named expression"; |
1089 } else if (is_anonymous_expression()) { | 1089 } else if (is_anonymous_expression()) { |
1090 os << "\n - anonymous expression"; | 1090 os << "\n - anonymous expression"; |
1091 } else if (is_declaration()) { | 1091 } else if (is_declaration()) { |
1092 os << "\n - declaration"; | 1092 os << "\n - declaration"; |
1093 } | 1093 } |
1094 os << "\n - function token position = " << function_token_position(); | 1094 os << "\n - function token position = " << function_token_position(); |
1095 os << "\n - start position = " << start_position(); | 1095 os << "\n - start position = " << start_position(); |
1096 os << "\n - end position = " << end_position(); | 1096 os << "\n - end position = " << end_position(); |
1097 os << "\n - debug info = " << Brief(debug_info()); | 1097 if (HasDebugInfo()) { |
| 1098 os << "\n - debug info = " << Brief(debug_info()); |
| 1099 } else { |
| 1100 os << "\n - no debug info"; |
| 1101 } |
1098 os << "\n - length = " << length(); | 1102 os << "\n - length = " << length(); |
1099 os << "\n - num_literals = " << num_literals(); | 1103 os << "\n - num_literals = " << num_literals(); |
1100 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); | 1104 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); |
1101 os << "\n - feedback_metadata = "; | 1105 os << "\n - feedback_metadata = "; |
1102 feedback_metadata()->TypeFeedbackMetadataPrint(os); | 1106 feedback_metadata()->TypeFeedbackMetadataPrint(os); |
1103 if (HasBytecodeArray()) { | 1107 if (HasBytecodeArray()) { |
1104 os << "\n - bytecode_array = " << bytecode_array(); | 1108 os << "\n - bytecode_array = " << bytecode_array(); |
1105 } | 1109 } |
1106 os << "\n"; | 1110 os << "\n"; |
1107 } | 1111 } |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1717 printf("Not a transition array\n"); | 1721 printf("Not a transition array\n"); |
1718 } else { | 1722 } else { |
1719 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1723 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1720 } | 1724 } |
1721 } | 1725 } |
1722 | 1726 |
1723 extern void _v8_internal_Print_StackTrace() { | 1727 extern void _v8_internal_Print_StackTrace() { |
1724 i::Isolate* isolate = i::Isolate::Current(); | 1728 i::Isolate* isolate = i::Isolate::Current(); |
1725 isolate->PrintStack(stdout); | 1729 isolate->PrintStack(stdout); |
1726 } | 1730 } |
OLD | NEW |