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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "heap-snapshot-generator-inl.h" | 7 #include "heap-snapshot-generator-inl.h" |
8 | 8 |
9 #include "allocation-tracker.h" | 9 #include "allocation-tracker.h" |
10 #include "code-stubs.h" | 10 #include "code-stubs.h" |
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 SharedFunctionInfo::kDebugInfoOffset); | 1414 SharedFunctionInfo::kDebugInfoOffset); |
1415 SetInternalReference(obj, entry, | 1415 SetInternalReference(obj, entry, |
1416 "inferred_name", shared->inferred_name(), | 1416 "inferred_name", shared->inferred_name(), |
1417 SharedFunctionInfo::kInferredNameOffset); | 1417 SharedFunctionInfo::kInferredNameOffset); |
1418 SetInternalReference(obj, entry, | 1418 SetInternalReference(obj, entry, |
1419 "optimized_code_map", shared->optimized_code_map(), | 1419 "optimized_code_map", shared->optimized_code_map(), |
1420 SharedFunctionInfo::kOptimizedCodeMapOffset); | 1420 SharedFunctionInfo::kOptimizedCodeMapOffset); |
1421 SetInternalReference(obj, entry, | 1421 SetInternalReference(obj, entry, |
1422 "feedback_vector", shared->feedback_vector(), | 1422 "feedback_vector", shared->feedback_vector(), |
1423 SharedFunctionInfo::kFeedbackVectorOffset); | 1423 SharedFunctionInfo::kFeedbackVectorOffset); |
| 1424 SetWeakReference(obj, entry, |
| 1425 "initial_map", shared->initial_map(), |
| 1426 SharedFunctionInfo::kInitialMapOffset); |
1424 } | 1427 } |
1425 | 1428 |
1426 | 1429 |
1427 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { | 1430 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { |
1428 HeapObject* obj = script; | 1431 HeapObject* obj = script; |
1429 SetInternalReference(obj, entry, | 1432 SetInternalReference(obj, entry, |
1430 "source", script->source(), | 1433 "source", script->source(), |
1431 Script::kSourceOffset); | 1434 Script::kSourceOffset); |
1432 SetInternalReference(obj, entry, | 1435 SetInternalReference(obj, entry, |
1433 "name", script->name(), | 1436 "name", script->name(), |
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3154 writer_->AddString("\"<dummy>\""); | 3157 writer_->AddString("\"<dummy>\""); |
3155 for (int i = 1; i < sorted_strings.length(); ++i) { | 3158 for (int i = 1; i < sorted_strings.length(); ++i) { |
3156 writer_->AddCharacter(','); | 3159 writer_->AddCharacter(','); |
3157 SerializeString(sorted_strings[i]); | 3160 SerializeString(sorted_strings[i]); |
3158 if (writer_->aborted()) return; | 3161 if (writer_->aborted()) return; |
3159 } | 3162 } |
3160 } | 3163 } |
3161 | 3164 |
3162 | 3165 |
3163 } } // namespace v8::internal | 3166 } } // namespace v8::internal |
OLD | NEW |