| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 TagObject(js_obj->elements(), "(object elements)"); | 1944 TagObject(js_obj->elements(), "(object elements)"); |
| 1945 SetInternalReference(obj, entry, | 1945 SetInternalReference(obj, entry, |
| 1946 "elements", js_obj->elements(), | 1946 "elements", js_obj->elements(), |
| 1947 JSObject::kElementsOffset); | 1947 JSObject::kElementsOffset); |
| 1948 } else if (obj->IsString()) { | 1948 } else if (obj->IsString()) { |
| 1949 if (obj->IsConsString()) { | 1949 if (obj->IsConsString()) { |
| 1950 ConsString* cs = ConsString::cast(obj); | 1950 ConsString* cs = ConsString::cast(obj); |
| 1951 SetInternalReference(obj, entry, 1, cs->first()); | 1951 SetInternalReference(obj, entry, 1, cs->first()); |
| 1952 SetInternalReference(obj, entry, 2, cs->second()); | 1952 SetInternalReference(obj, entry, 2, cs->second()); |
| 1953 } | 1953 } |
| 1954 if (obj->IsSlicedString()) { |
| 1955 SlicedString* ss = SlicedString::cast(obj); |
| 1956 SetInternalReference(obj, entry, "parent", ss->parent()); |
| 1957 } |
| 1954 extract_indexed_refs = false; | 1958 extract_indexed_refs = false; |
| 1955 } else if (obj->IsGlobalContext()) { | 1959 } else if (obj->IsGlobalContext()) { |
| 1956 Context* context = Context::cast(obj); | 1960 Context* context = Context::cast(obj); |
| 1957 TagObject(context->jsfunction_result_caches(), | 1961 TagObject(context->jsfunction_result_caches(), |
| 1958 "(context func. result caches)"); | 1962 "(context func. result caches)"); |
| 1959 TagObject(context->normalized_map_cache(), "(context norm. map cache)"); | 1963 TagObject(context->normalized_map_cache(), "(context norm. map cache)"); |
| 1960 TagObject(context->runtime_context(), "(runtime context)"); | 1964 TagObject(context->runtime_context(), "(runtime context)"); |
| 1961 TagObject(context->map_cache(), "(context map cache)"); | 1965 TagObject(context->map_cache(), "(context map cache)"); |
| 1962 TagObject(context->data(), "(context data)"); | 1966 TagObject(context->data(), "(context data)"); |
| 1963 } else if (obj->IsMap()) { | 1967 } else if (obj->IsMap()) { |
| (...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3396 | 3400 |
| 3397 | 3401 |
| 3398 void HeapSnapshotJSONSerializer::SortHashMap( | 3402 void HeapSnapshotJSONSerializer::SortHashMap( |
| 3399 HashMap* map, List<HashMap::Entry*>* sorted_entries) { | 3403 HashMap* map, List<HashMap::Entry*>* sorted_entries) { |
| 3400 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) | 3404 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) |
| 3401 sorted_entries->Add(p); | 3405 sorted_entries->Add(p); |
| 3402 sorted_entries->Sort(SortUsingEntryValue); | 3406 sorted_entries->Sort(SortUsingEntryValue); |
| 3403 } | 3407 } |
| 3404 | 3408 |
| 3405 } } // namespace v8::internal | 3409 } } // namespace v8::internal |
| OLD | NEW |