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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1033 } | 1033 } |
1034 os << "\n - function token position = " << function_token_position(); | 1034 os << "\n - function token position = " << function_token_position(); |
1035 os << "\n - start position = " << start_position(); | 1035 os << "\n - start position = " << start_position(); |
1036 os << "\n - end position = " << end_position(); | 1036 os << "\n - end position = " << end_position(); |
1037 if (HasDebugInfo()) { | 1037 if (HasDebugInfo()) { |
1038 os << "\n - debug info = " << Brief(debug_info()); | 1038 os << "\n - debug info = " << Brief(debug_info()); |
1039 } else { | 1039 } else { |
1040 os << "\n - no debug info"; | 1040 os << "\n - no debug info"; |
1041 } | 1041 } |
1042 os << "\n - length = " << length(); | 1042 os << "\n - length = " << length(); |
1043 os << "\n - num_literals = " << num_literals(); | |
1044 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); | 1043 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); |
1045 os << "\n - feedback_metadata = "; | 1044 os << "\n - feedback_metadata = "; |
1046 feedback_metadata()->FeedbackMetadataPrint(os); | 1045 feedback_metadata()->FeedbackMetadataPrint(os); |
1047 if (HasBytecodeArray()) { | 1046 if (HasBytecodeArray()) { |
1048 os << "\n - bytecode_array = " << bytecode_array(); | 1047 os << "\n - bytecode_array = " << bytecode_array(); |
1049 } | 1048 } |
1050 os << "\n"; | 1049 os << "\n"; |
1051 } | 1050 } |
1052 | 1051 |
1053 | 1052 |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1667 printf("Not a transition array\n"); | 1666 printf("Not a transition array\n"); |
1668 } else { | 1667 } else { |
1669 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1668 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1670 } | 1669 } |
1671 } | 1670 } |
1672 | 1671 |
1673 extern void _v8_internal_Print_StackTrace() { | 1672 extern void _v8_internal_Print_StackTrace() { |
1674 i::Isolate* isolate = i::Isolate::Current(); | 1673 i::Isolate* isolate = i::Isolate::Current(); |
1675 isolate->PrintStack(stdout); | 1674 isolate->PrintStack(stdout); |
1676 } | 1675 } |
OLD | NEW |