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 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1391 SharedFunctionInfo::kFunctionDataOffset); | 1391 SharedFunctionInfo::kFunctionDataOffset); |
1392 SetInternalReference(obj, entry, | 1392 SetInternalReference(obj, entry, |
1393 "debug_info", shared->debug_info(), | 1393 "debug_info", shared->debug_info(), |
1394 SharedFunctionInfo::kDebugInfoOffset); | 1394 SharedFunctionInfo::kDebugInfoOffset); |
1395 SetInternalReference(obj, entry, | 1395 SetInternalReference(obj, entry, |
1396 "inferred_name", shared->inferred_name(), | 1396 "inferred_name", shared->inferred_name(), |
1397 SharedFunctionInfo::kInferredNameOffset); | 1397 SharedFunctionInfo::kInferredNameOffset); |
1398 SetInternalReference(obj, entry, | 1398 SetInternalReference(obj, entry, |
1399 "optimized_code_map", shared->optimized_code_map(), | 1399 "optimized_code_map", shared->optimized_code_map(), |
1400 SharedFunctionInfo::kOptimizedCodeMapOffset); | 1400 SharedFunctionInfo::kOptimizedCodeMapOffset); |
| 1401 SetInternalReference(obj, entry, |
| 1402 "feedback_vector", shared->feedback_vector(), |
| 1403 SharedFunctionInfo::kFeedbackVectorOffset); |
1401 SetWeakReference(obj, entry, | 1404 SetWeakReference(obj, entry, |
1402 "initial_map", shared->initial_map(), | 1405 "initial_map", shared->initial_map(), |
1403 SharedFunctionInfo::kInitialMapOffset); | 1406 SharedFunctionInfo::kInitialMapOffset); |
1404 } | 1407 } |
1405 | 1408 |
1406 | 1409 |
1407 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { | 1410 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { |
1408 HeapObject* obj = script; | 1411 HeapObject* obj = script; |
1409 SetInternalReference(obj, entry, | 1412 SetInternalReference(obj, entry, |
1410 "source", script->source(), | 1413 "source", script->source(), |
(...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3075 writer_->AddString("\"<dummy>\""); | 3078 writer_->AddString("\"<dummy>\""); |
3076 for (int i = 1; i < sorted_strings.length(); ++i) { | 3079 for (int i = 1; i < sorted_strings.length(); ++i) { |
3077 writer_->AddCharacter(','); | 3080 writer_->AddCharacter(','); |
3078 SerializeString(sorted_strings[i]); | 3081 SerializeString(sorted_strings[i]); |
3079 if (writer_->aborted()) return; | 3082 if (writer_->aborted()) return; |
3080 } | 3083 } |
3081 } | 3084 } |
3082 | 3085 |
3083 | 3086 |
3084 } } // namespace v8::internal | 3087 } } // namespace v8::internal |
OLD | NEW |