| 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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1383 SharedFunctionInfo::kFunctionDataOffset); | 1383 SharedFunctionInfo::kFunctionDataOffset); |
| 1384 SetInternalReference(obj, entry, | 1384 SetInternalReference(obj, entry, |
| 1385 "debug_info", shared->debug_info(), | 1385 "debug_info", shared->debug_info(), |
| 1386 SharedFunctionInfo::kDebugInfoOffset); | 1386 SharedFunctionInfo::kDebugInfoOffset); |
| 1387 SetInternalReference(obj, entry, | 1387 SetInternalReference(obj, entry, |
| 1388 "inferred_name", shared->inferred_name(), | 1388 "inferred_name", shared->inferred_name(), |
| 1389 SharedFunctionInfo::kInferredNameOffset); | 1389 SharedFunctionInfo::kInferredNameOffset); |
| 1390 SetInternalReference(obj, entry, | 1390 SetInternalReference(obj, entry, |
| 1391 "optimized_code_map", shared->optimized_code_map(), | 1391 "optimized_code_map", shared->optimized_code_map(), |
| 1392 SharedFunctionInfo::kOptimizedCodeMapOffset); | 1392 SharedFunctionInfo::kOptimizedCodeMapOffset); |
| 1393 SetInternalReference(obj, entry, | 1393 SetInternalReference(obj, entry, "feedback_metadata", |
| 1394 "feedback_vector", shared->feedback_vector(), | 1394 shared->feedback_metadata(), |
| 1395 SharedFunctionInfo::kFeedbackVectorOffset); | 1395 SharedFunctionInfo::kFeedbackMetadataOffset); |
| 1396 } | 1396 } |
| 1397 | 1397 |
| 1398 | 1398 |
| 1399 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { | 1399 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { |
| 1400 HeapObject* obj = script; | 1400 HeapObject* obj = script; |
| 1401 SetInternalReference(obj, entry, | 1401 SetInternalReference(obj, entry, |
| 1402 "source", script->source(), | 1402 "source", script->source(), |
| 1403 Script::kSourceOffset); | 1403 Script::kSourceOffset); |
| 1404 SetInternalReference(obj, entry, | 1404 SetInternalReference(obj, entry, |
| 1405 "name", script->name(), | 1405 "name", script->name(), |
| (...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3155 for (int i = 1; i < sorted_strings.length(); ++i) { | 3155 for (int i = 1; i < sorted_strings.length(); ++i) { |
| 3156 writer_->AddCharacter(','); | 3156 writer_->AddCharacter(','); |
| 3157 SerializeString(sorted_strings[i]); | 3157 SerializeString(sorted_strings[i]); |
| 3158 if (writer_->aborted()) return; | 3158 if (writer_->aborted()) return; |
| 3159 } | 3159 } |
| 3160 } | 3160 } |
| 3161 | 3161 |
| 3162 | 3162 |
| 3163 } // namespace internal | 3163 } // namespace internal |
| 3164 } // namespace v8 | 3164 } // namespace v8 |
| OLD | NEW |