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); | |
1427 } | 1424 } |
1428 | 1425 |
1429 | 1426 |
1430 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { | 1427 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { |
1431 HeapObject* obj = script; | 1428 HeapObject* obj = script; |
1432 SetInternalReference(obj, entry, | 1429 SetInternalReference(obj, entry, |
1433 "source", script->source(), | 1430 "source", script->source(), |
1434 Script::kSourceOffset); | 1431 Script::kSourceOffset); |
1435 SetInternalReference(obj, entry, | 1432 SetInternalReference(obj, entry, |
1436 "name", script->name(), | 1433 "name", script->name(), |
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3157 writer_->AddString("\"<dummy>\""); | 3154 writer_->AddString("\"<dummy>\""); |
3158 for (int i = 1; i < sorted_strings.length(); ++i) { | 3155 for (int i = 1; i < sorted_strings.length(); ++i) { |
3159 writer_->AddCharacter(','); | 3156 writer_->AddCharacter(','); |
3160 SerializeString(sorted_strings[i]); | 3157 SerializeString(sorted_strings[i]); |
3161 if (writer_->aborted()) return; | 3158 if (writer_->aborted()) return; |
3162 } | 3159 } |
3163 } | 3160 } |
3164 | 3161 |
3165 | 3162 |
3166 } } // namespace v8::internal | 3163 } } // namespace v8::internal |
OLD | NEW |