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); |
1503 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 1506 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
1504 SetWeakReference(code, entry, | 1507 SetWeakReference(code, entry, |
1505 "next_code_link", code->next_code_link(), | 1508 "next_code_link", code->next_code_link(), |
1506 Code::kNextCodeLinkOffset); | 1509 Code::kNextCodeLinkOffset); |
1507 } | 1510 } |
1508 } | 1511 } |
1509 | 1512 |
1510 | 1513 |
1511 void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) { | 1514 void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) { |
1512 SetInternalReference(box, entry, "value", box->value(), Box::kValueOffset); | 1515 SetInternalReference(box, entry, "value", box->value(), Box::kValueOffset); |
(...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3174 for (int i = 1; i < sorted_strings.length(); ++i) { | 3177 for (int i = 1; i < sorted_strings.length(); ++i) { |
3175 writer_->AddCharacter(','); | 3178 writer_->AddCharacter(','); |
3176 SerializeString(sorted_strings[i]); | 3179 SerializeString(sorted_strings[i]); |
3177 if (writer_->aborted()) return; | 3180 if (writer_->aborted()) return; |
3178 } | 3181 } |
3179 } | 3182 } |
3180 | 3183 |
3181 | 3184 |
3182 } // namespace internal | 3185 } // namespace internal |
3183 } // namespace v8 | 3186 } // namespace v8 |
OLD | NEW |