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 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 SetInternalReference(code, entry, | 1445 SetInternalReference(code, entry, |
1446 "relocation_info", code->relocation_info(), | 1446 "relocation_info", code->relocation_info(), |
1447 Code::kRelocationInfoOffset); | 1447 Code::kRelocationInfoOffset); |
1448 SetInternalReference(code, entry, | 1448 SetInternalReference(code, entry, |
1449 "handler_table", code->handler_table(), | 1449 "handler_table", code->handler_table(), |
1450 Code::kHandlerTableOffset); | 1450 Code::kHandlerTableOffset); |
1451 TagObject(code->deoptimization_data(), "(code deopt data)"); | 1451 TagObject(code->deoptimization_data(), "(code deopt data)"); |
1452 SetInternalReference(code, entry, | 1452 SetInternalReference(code, entry, |
1453 "deoptimization_data", code->deoptimization_data(), | 1453 "deoptimization_data", code->deoptimization_data(), |
1454 Code::kDeoptimizationDataOffset); | 1454 Code::kDeoptimizationDataOffset); |
| 1455 TagObject(code->source_position_table(), "(source position table)"); |
| 1456 SetInternalReference(code, entry, "source_position_table", |
| 1457 code->source_position_table(), |
| 1458 Code::kSourcePositionTableOffset); |
1455 if (code->kind() == Code::FUNCTION) { | 1459 if (code->kind() == Code::FUNCTION) { |
1456 SetInternalReference(code, entry, | 1460 SetInternalReference(code, entry, |
1457 "type_feedback_info", code->type_feedback_info(), | 1461 "type_feedback_info", code->type_feedback_info(), |
1458 Code::kTypeFeedbackInfoOffset); | 1462 Code::kTypeFeedbackInfoOffset); |
1459 } | 1463 } |
1460 SetInternalReference(code, entry, | 1464 SetInternalReference(code, entry, |
1461 "gc_metadata", code->gc_metadata(), | 1465 "gc_metadata", code->gc_metadata(), |
1462 Code::kGCMetadataOffset); | 1466 Code::kGCMetadataOffset); |
1463 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 1467 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
1464 SetWeakReference(code, entry, | 1468 SetWeakReference(code, entry, |
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3104 for (int i = 1; i < sorted_strings.length(); ++i) { | 3108 for (int i = 1; i < sorted_strings.length(); ++i) { |
3105 writer_->AddCharacter(','); | 3109 writer_->AddCharacter(','); |
3106 SerializeString(sorted_strings[i]); | 3110 SerializeString(sorted_strings[i]); |
3107 if (writer_->aborted()) return; | 3111 if (writer_->aborted()) return; |
3108 } | 3112 } |
3109 } | 3113 } |
3110 | 3114 |
3111 | 3115 |
3112 } // namespace internal | 3116 } // namespace internal |
3113 } // namespace v8 | 3117 } // namespace v8 |
OLD | NEW |