| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1415 SharedFunctionInfo::kFunctionDataOffset); | 1415 SharedFunctionInfo::kFunctionDataOffset); |
| 1416 SetInternalReference(obj, entry, | 1416 SetInternalReference(obj, entry, |
| 1417 "debug_info", shared->debug_info(), | 1417 "debug_info", shared->debug_info(), |
| 1418 SharedFunctionInfo::kDebugInfoOffset); | 1418 SharedFunctionInfo::kDebugInfoOffset); |
| 1419 SetInternalReference(obj, entry, | 1419 SetInternalReference(obj, entry, |
| 1420 "inferred_name", shared->inferred_name(), | 1420 "inferred_name", shared->inferred_name(), |
| 1421 SharedFunctionInfo::kInferredNameOffset); | 1421 SharedFunctionInfo::kInferredNameOffset); |
| 1422 SetInternalReference(obj, entry, | 1422 SetInternalReference(obj, entry, |
| 1423 "optimized_code_map", shared->optimized_code_map(), | 1423 "optimized_code_map", shared->optimized_code_map(), |
| 1424 SharedFunctionInfo::kOptimizedCodeMapOffset); | 1424 SharedFunctionInfo::kOptimizedCodeMapOffset); |
| 1425 SetInternalReference(obj, entry, |
| 1426 "feedback_vector", shared->feedback_vector(), |
| 1427 SharedFunctionInfo::kFeedbackVectorOffset); |
| 1425 SetWeakReference(obj, entry, | 1428 SetWeakReference(obj, entry, |
| 1426 "initial_map", shared->initial_map(), | 1429 "initial_map", shared->initial_map(), |
| 1427 SharedFunctionInfo::kInitialMapOffset); | 1430 SharedFunctionInfo::kInitialMapOffset); |
| 1428 } | 1431 } |
| 1429 | 1432 |
| 1430 | 1433 |
| 1431 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { | 1434 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { |
| 1432 HeapObject* obj = script; | 1435 HeapObject* obj = script; |
| 1433 SetInternalReference(obj, entry, | 1436 SetInternalReference(obj, entry, |
| 1434 "source", script->source(), | 1437 "source", script->source(), |
| (...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3160 writer_->AddString("\"<dummy>\""); | 3163 writer_->AddString("\"<dummy>\""); |
| 3161 for (int i = 1; i < sorted_strings.length(); ++i) { | 3164 for (int i = 1; i < sorted_strings.length(); ++i) { |
| 3162 writer_->AddCharacter(','); | 3165 writer_->AddCharacter(','); |
| 3163 SerializeString(sorted_strings[i]); | 3166 SerializeString(sorted_strings[i]); |
| 3164 if (writer_->aborted()) return; | 3167 if (writer_->aborted()) return; |
| 3165 } | 3168 } |
| 3166 } | 3169 } |
| 3167 | 3170 |
| 3168 | 3171 |
| 3169 } } // namespace v8::internal | 3172 } } // namespace v8::internal |
| OLD | NEW |