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 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 SharedFunctionInfo::kFunctionDataOffset); | 1320 SharedFunctionInfo::kFunctionDataOffset); |
1321 SetInternalReference(obj, entry, | 1321 SetInternalReference(obj, entry, |
1322 "debug_info", shared->debug_info(), | 1322 "debug_info", shared->debug_info(), |
1323 SharedFunctionInfo::kDebugInfoOffset); | 1323 SharedFunctionInfo::kDebugInfoOffset); |
1324 SetInternalReference(obj, entry, | 1324 SetInternalReference(obj, entry, |
1325 "inferred_name", shared->inferred_name(), | 1325 "inferred_name", shared->inferred_name(), |
1326 SharedFunctionInfo::kInferredNameOffset); | 1326 SharedFunctionInfo::kInferredNameOffset); |
1327 SetInternalReference(obj, entry, | 1327 SetInternalReference(obj, entry, |
1328 "optimized_code_map", shared->optimized_code_map(), | 1328 "optimized_code_map", shared->optimized_code_map(), |
1329 SharedFunctionInfo::kOptimizedCodeMapOffset); | 1329 SharedFunctionInfo::kOptimizedCodeMapOffset); |
| 1330 SetInternalReference(obj, entry, |
| 1331 "feedback_vector", shared->feedback_vector(), |
| 1332 SharedFunctionInfo::kFeedbackVectorOffset); |
1330 SetWeakReference(obj, entry, | 1333 SetWeakReference(obj, entry, |
1331 "initial_map", shared->initial_map(), | 1334 "initial_map", shared->initial_map(), |
1332 SharedFunctionInfo::kInitialMapOffset); | 1335 SharedFunctionInfo::kInitialMapOffset); |
1333 } | 1336 } |
1334 | 1337 |
1335 | 1338 |
1336 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { | 1339 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { |
1337 HeapObject* obj = script; | 1340 HeapObject* obj = script; |
1338 SetInternalReference(obj, entry, | 1341 SetInternalReference(obj, entry, |
1339 "source", script->source(), | 1342 "source", script->source(), |
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3062 writer_->AddString("\"<dummy>\""); | 3065 writer_->AddString("\"<dummy>\""); |
3063 for (int i = 1; i < sorted_strings.length(); ++i) { | 3066 for (int i = 1; i < sorted_strings.length(); ++i) { |
3064 writer_->AddCharacter(','); | 3067 writer_->AddCharacter(','); |
3065 SerializeString(sorted_strings[i]); | 3068 SerializeString(sorted_strings[i]); |
3066 if (writer_->aborted()) return; | 3069 if (writer_->aborted()) return; |
3067 } | 3070 } |
3068 } | 3071 } |
3069 | 3072 |
3070 | 3073 |
3071 } } // namespace v8::internal | 3074 } } // namespace v8::internal |
OLD | NEW |