| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 PrintF(out, " - initial_map = "); | 855 PrintF(out, " - initial_map = "); |
| 856 if (has_initial_map()) { | 856 if (has_initial_map()) { |
| 857 initial_map()->ShortPrint(out); | 857 initial_map()->ShortPrint(out); |
| 858 } | 858 } |
| 859 PrintF(out, "\n - shared_info = "); | 859 PrintF(out, "\n - shared_info = "); |
| 860 shared()->ShortPrint(out); | 860 shared()->ShortPrint(out); |
| 861 PrintF(out, "\n - name = "); | 861 PrintF(out, "\n - name = "); |
| 862 shared()->name()->Print(out); | 862 shared()->name()->Print(out); |
| 863 PrintF(out, "\n - context = "); | 863 PrintF(out, "\n - context = "); |
| 864 context()->ShortPrint(out); | 864 context()->ShortPrint(out); |
| 865 PrintF(out, "\n - literals = "); | 865 if (shared()->bound()) { |
| 866 literals()->ShortPrint(out); | 866 PrintF(out, "\n - bindings = "); |
| 867 function_bindings()->ShortPrint(out); |
| 868 } else { |
| 869 PrintF(out, "\n - literals = "); |
| 870 literals()->ShortPrint(out); |
| 871 } |
| 867 PrintF(out, "\n - code = "); | 872 PrintF(out, "\n - code = "); |
| 868 code()->ShortPrint(out); | 873 code()->ShortPrint(out); |
| 869 PrintF(out, "\n"); | 874 PrintF(out, "\n"); |
| 870 | 875 |
| 871 PrintProperties(out); | 876 PrintProperties(out); |
| 872 PrintElements(out); | 877 PrintElements(out); |
| 873 | 878 |
| 874 PrintF(out, "\n"); | 879 PrintF(out, "\n"); |
| 875 } | 880 } |
| 876 | 881 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 | 1123 |
| 1119 | 1124 |
| 1120 void AllocationSite::AllocationSitePrint(FILE* out) { | 1125 void AllocationSite::AllocationSitePrint(FILE* out) { |
| 1121 HeapObject::PrintHeader(out, "AllocationSite"); | 1126 HeapObject::PrintHeader(out, "AllocationSite"); |
| 1122 PrintF(out, " - weak_next: "); | 1127 PrintF(out, " - weak_next: "); |
| 1123 weak_next()->ShortPrint(out); | 1128 weak_next()->ShortPrint(out); |
| 1124 PrintF(out, "\n - dependent code: "); | 1129 PrintF(out, "\n - dependent code: "); |
| 1125 dependent_code()->ShortPrint(out); | 1130 dependent_code()->ShortPrint(out); |
| 1126 PrintF(out, "\n - nested site: "); | 1131 PrintF(out, "\n - nested site: "); |
| 1127 nested_site()->ShortPrint(out); | 1132 nested_site()->ShortPrint(out); |
| 1133 PrintF(out, "\n - memento found count: "); |
| 1134 memento_found_count()->ShortPrint(out); |
| 1135 PrintF(out, "\n - memento create count: "); |
| 1136 memento_create_count()->ShortPrint(out); |
| 1137 PrintF(out, "\n - pretenure decision: "); |
| 1138 pretenure_decision()->ShortPrint(out); |
| 1128 PrintF(out, "\n - transition_info: "); | 1139 PrintF(out, "\n - transition_info: "); |
| 1129 if (transition_info()->IsSmi()) { | 1140 if (transition_info()->IsSmi()) { |
| 1130 ElementsKind kind = GetElementsKind(); | 1141 ElementsKind kind = GetElementsKind(); |
| 1131 PrintF(out, "Array allocation with ElementsKind "); | 1142 PrintF(out, "Array allocation with ElementsKind "); |
| 1132 PrintElementsKind(out, kind); | 1143 PrintElementsKind(out, kind); |
| 1133 PrintF(out, "\n"); | 1144 PrintF(out, "\n"); |
| 1134 return; | 1145 return; |
| 1135 } else if (transition_info()->IsJSArray()) { | 1146 } else if (transition_info()->IsJSArray()) { |
| 1136 PrintF(out, "Array literal "); | 1147 PrintF(out, "Array literal "); |
| 1137 transition_info()->ShortPrint(out); | 1148 transition_info()->ShortPrint(out); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 } | 1263 } |
| 1253 } | 1264 } |
| 1254 PrintF(out, "\n"); | 1265 PrintF(out, "\n"); |
| 1255 } | 1266 } |
| 1256 | 1267 |
| 1257 | 1268 |
| 1258 #endif // OBJECT_PRINT | 1269 #endif // OBJECT_PRINT |
| 1259 | 1270 |
| 1260 | 1271 |
| 1261 } } // namespace v8::internal | 1272 } } // namespace v8::internal |
| OLD | NEW |