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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
882 base::SmartArrayPointer<char> source_string = source->ToCString( | 882 base::SmartArrayPointer<char> source_string = source->ToCString( |
883 DISALLOW_NULLS, FAST_STRING_TRAVERSAL, start, length, NULL); | 883 DISALLOW_NULLS, FAST_STRING_TRAVERSAL, start, length, NULL); |
884 os << source_string.get(); | 884 os << source_string.get(); |
885 } | 885 } |
886 // Script files are often large, hard to read. | 886 // Script files are often large, hard to read. |
887 // os << "\n - script ="; | 887 // os << "\n - script ="; |
888 // script()->Print(os); | 888 // script()->Print(os); |
889 os << "\n - function token position = " << function_token_position(); | 889 os << "\n - function token position = " << function_token_position(); |
890 os << "\n - start position = " << start_position(); | 890 os << "\n - start position = " << start_position(); |
891 os << "\n - end position = " << end_position(); | 891 os << "\n - end position = " << end_position(); |
892 os << "\n - is expression = " << is_expression(); | |
Dan Ehrenberg
2016/02/19 00:10:41
Maybe this should be left in, and add is_declarati
adamk
2016/02/19 01:09:15
Done (for all three bits). Since they're all mutua
| |
893 os << "\n - debug info = " << Brief(debug_info()); | 892 os << "\n - debug info = " << Brief(debug_info()); |
894 os << "\n - length = " << length(); | 893 os << "\n - length = " << length(); |
895 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); | 894 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); |
896 os << "\n - feedback_vector = "; | 895 os << "\n - feedback_vector = "; |
897 feedback_vector()->TypeFeedbackVectorPrint(os); | 896 feedback_vector()->TypeFeedbackVectorPrint(os); |
898 if (HasBytecodeArray()) { | 897 if (HasBytecodeArray()) { |
899 os << "\n - bytecode_array = " << bytecode_array(); | 898 os << "\n - bytecode_array = " << bytecode_array(); |
900 } | 899 } |
901 os << "\n"; | 900 os << "\n"; |
902 } | 901 } |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1316 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1315 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1317 Object* transitions = map()->raw_transitions(); | 1316 Object* transitions = map()->raw_transitions(); |
1318 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1317 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1319 if (num_transitions == 0) return; | 1318 if (num_transitions == 0) return; |
1320 os << "\n - transitions"; | 1319 os << "\n - transitions"; |
1321 TransitionArray::PrintTransitions(os, transitions, false); | 1320 TransitionArray::PrintTransitions(os, transitions, false); |
1322 } | 1321 } |
1323 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1322 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1324 } // namespace internal | 1323 } // namespace internal |
1325 } // namespace v8 | 1324 } // namespace v8 |
OLD | NEW |