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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/heap-snapshot-generator-inl.h" | 7 #include "src/heap-snapshot-generator-inl.h" |
8 | 8 |
9 #include "src/allocation-tracker.h" | 9 #include "src/allocation-tracker.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1493 "deoptimization_data", code->deoptimization_data(), | 1493 "deoptimization_data", code->deoptimization_data(), |
1494 Code::kDeoptimizationDataOffset); | 1494 Code::kDeoptimizationDataOffset); |
1495 if (code->kind() == Code::FUNCTION) { | 1495 if (code->kind() == Code::FUNCTION) { |
1496 SetInternalReference(code, entry, | 1496 SetInternalReference(code, entry, |
1497 "type_feedback_info", code->type_feedback_info(), | 1497 "type_feedback_info", code->type_feedback_info(), |
1498 Code::kTypeFeedbackInfoOffset); | 1498 Code::kTypeFeedbackInfoOffset); |
1499 } | 1499 } |
1500 SetInternalReference(code, entry, | 1500 SetInternalReference(code, entry, |
1501 "gc_metadata", code->gc_metadata(), | 1501 "gc_metadata", code->gc_metadata(), |
1502 Code::kGCMetadataOffset); | 1502 Code::kGCMetadataOffset); |
1503 SetInternalReference(code, entry, | |
1504 "constant_pool", code->constant_pool(), | |
1505 Code::kConstantPoolOffset); | |
1506 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 1503 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
1507 SetWeakReference(code, entry, | 1504 SetWeakReference(code, entry, |
1508 "next_code_link", code->next_code_link(), | 1505 "next_code_link", code->next_code_link(), |
1509 Code::kNextCodeLinkOffset); | 1506 Code::kNextCodeLinkOffset); |
1510 } | 1507 } |
1511 } | 1508 } |
1512 | 1509 |
1513 | 1510 |
1514 void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) { | 1511 void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) { |
1515 SetInternalReference(box, entry, "value", box->value(), Box::kValueOffset); | 1512 SetInternalReference(box, entry, "value", box->value(), Box::kValueOffset); |
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3160 writer_->AddString("\"<dummy>\""); | 3157 writer_->AddString("\"<dummy>\""); |
3161 for (int i = 1; i < sorted_strings.length(); ++i) { | 3158 for (int i = 1; i < sorted_strings.length(); ++i) { |
3162 writer_->AddCharacter(','); | 3159 writer_->AddCharacter(','); |
3163 SerializeString(sorted_strings[i]); | 3160 SerializeString(sorted_strings[i]); |
3164 if (writer_->aborted()) return; | 3161 if (writer_->aborted()) return; |
3165 } | 3162 } |
3166 } | 3163 } |
3167 | 3164 |
3168 | 3165 |
3169 } } // namespace v8::internal | 3166 } } // namespace v8::internal |
OLD | NEW |