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 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2123 SetInternalReference(code, entry, | 2123 SetInternalReference(code, entry, |
2124 "relocation_info", code->relocation_info(), | 2124 "relocation_info", code->relocation_info(), |
2125 Code::kRelocationInfoOffset); | 2125 Code::kRelocationInfoOffset); |
2126 SetInternalReference(code, entry, | 2126 SetInternalReference(code, entry, |
2127 "handler_table", code->handler_table(), | 2127 "handler_table", code->handler_table(), |
2128 Code::kHandlerTableOffset); | 2128 Code::kHandlerTableOffset); |
2129 TagObject(code->deoptimization_data(), "(code deopt data)"); | 2129 TagObject(code->deoptimization_data(), "(code deopt data)"); |
2130 SetInternalReference(code, entry, | 2130 SetInternalReference(code, entry, |
2131 "deoptimization_data", code->deoptimization_data(), | 2131 "deoptimization_data", code->deoptimization_data(), |
2132 Code::kDeoptimizationDataOffset); | 2132 Code::kDeoptimizationDataOffset); |
2133 SetInternalReference(code, entry, | 2133 if (code->kind() == Code::FUNCTION) { |
2134 "type_feedback_info", code->type_feedback_info(), | 2134 SetInternalReference(code, entry, |
2135 Code::kTypeFeedbackInfoOffset); | 2135 "type_feedback_info", code->type_feedback_info(), |
| 2136 Code::kTypeFeedbackInfoOffset); |
| 2137 } |
2136 SetInternalReference(code, entry, | 2138 SetInternalReference(code, entry, |
2137 "gc_metadata", code->gc_metadata(), | 2139 "gc_metadata", code->gc_metadata(), |
2138 Code::kGCMetadataOffset); | 2140 Code::kGCMetadataOffset); |
2139 } | 2141 } |
2140 | 2142 |
2141 | 2143 |
2142 void V8HeapExplorer::ExtractJSGlobalPropertyCellReferences( | 2144 void V8HeapExplorer::ExtractJSGlobalPropertyCellReferences( |
2143 int entry, JSGlobalPropertyCell* cell) { | 2145 int entry, JSGlobalPropertyCell* cell) { |
2144 SetInternalReference(cell, entry, "value", cell->value()); | 2146 SetInternalReference(cell, entry, "value", cell->value()); |
2145 } | 2147 } |
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3577 | 3579 |
3578 | 3580 |
3579 void HeapSnapshotJSONSerializer::SortHashMap( | 3581 void HeapSnapshotJSONSerializer::SortHashMap( |
3580 HashMap* map, List<HashMap::Entry*>* sorted_entries) { | 3582 HashMap* map, List<HashMap::Entry*>* sorted_entries) { |
3581 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) | 3583 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) |
3582 sorted_entries->Add(p); | 3584 sorted_entries->Add(p); |
3583 sorted_entries->Sort(SortUsingEntryValue); | 3585 sorted_entries->Sort(SortUsingEntryValue); |
3584 } | 3586 } |
3585 | 3587 |
3586 } } // namespace v8::internal | 3588 } } // namespace v8::internal |
OLD | NEW |