OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/profiler/heap-snapshot-generator.h" | 5 #include "src/profiler/heap-snapshot-generator.h" |
6 | 6 |
7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/conversions.h" | 8 #include "src/conversions.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/objects-body-descriptors.h" | 10 #include "src/objects-body-descriptors.h" |
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1387 SharedFunctionInfo::kFunctionDataOffset); | 1387 SharedFunctionInfo::kFunctionDataOffset); |
1388 SetInternalReference(obj, entry, | 1388 SetInternalReference(obj, entry, |
1389 "debug_info", shared->debug_info(), | 1389 "debug_info", shared->debug_info(), |
1390 SharedFunctionInfo::kDebugInfoOffset); | 1390 SharedFunctionInfo::kDebugInfoOffset); |
1391 SetInternalReference(obj, entry, | 1391 SetInternalReference(obj, entry, |
1392 "inferred_name", shared->inferred_name(), | 1392 "inferred_name", shared->inferred_name(), |
1393 SharedFunctionInfo::kInferredNameOffset); | 1393 SharedFunctionInfo::kInferredNameOffset); |
1394 SetInternalReference(obj, entry, | 1394 SetInternalReference(obj, entry, |
1395 "optimized_code_map", shared->optimized_code_map(), | 1395 "optimized_code_map", shared->optimized_code_map(), |
1396 SharedFunctionInfo::kOptimizedCodeMapOffset); | 1396 SharedFunctionInfo::kOptimizedCodeMapOffset); |
1397 SetInternalReference(obj, entry, | 1397 SetInternalReference(obj, entry, "feedback_metadata", |
1398 "feedback_vector", shared->feedback_vector(), | 1398 shared->feedback_metadata(), |
1399 SharedFunctionInfo::kFeedbackVectorOffset); | 1399 SharedFunctionInfo::kFeedbackMetadataOffset); |
1400 } | 1400 } |
1401 | 1401 |
1402 | 1402 |
1403 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { | 1403 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { |
1404 HeapObject* obj = script; | 1404 HeapObject* obj = script; |
1405 SetInternalReference(obj, entry, | 1405 SetInternalReference(obj, entry, |
1406 "source", script->source(), | 1406 "source", script->source(), |
1407 Script::kSourceOffset); | 1407 Script::kSourceOffset); |
1408 SetInternalReference(obj, entry, | 1408 SetInternalReference(obj, entry, |
1409 "name", script->name(), | 1409 "name", script->name(), |
(...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3161 for (int i = 1; i < sorted_strings.length(); ++i) { | 3161 for (int i = 1; i < sorted_strings.length(); ++i) { |
3162 writer_->AddCharacter(','); | 3162 writer_->AddCharacter(','); |
3163 SerializeString(sorted_strings[i]); | 3163 SerializeString(sorted_strings[i]); |
3164 if (writer_->aborted()) return; | 3164 if (writer_->aborted()) return; |
3165 } | 3165 } |
3166 } | 3166 } |
3167 | 3167 |
3168 | 3168 |
3169 } // namespace internal | 3169 } // namespace internal |
3170 } // namespace v8 | 3170 } // namespace v8 |
OLD | NEW |