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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 "deoptimization_data", code->deoptimization_data(), | 1482 "deoptimization_data", code->deoptimization_data(), |
1483 Code::kDeoptimizationDataOffset); | 1483 Code::kDeoptimizationDataOffset); |
1484 if (code->kind() == Code::FUNCTION) { | 1484 if (code->kind() == Code::FUNCTION) { |
1485 SetInternalReference(code, entry, | 1485 SetInternalReference(code, entry, |
1486 "type_feedback_info", code->type_feedback_info(), | 1486 "type_feedback_info", code->type_feedback_info(), |
1487 Code::kTypeFeedbackInfoOffset); | 1487 Code::kTypeFeedbackInfoOffset); |
1488 } | 1488 } |
1489 SetInternalReference(code, entry, | 1489 SetInternalReference(code, entry, |
1490 "gc_metadata", code->gc_metadata(), | 1490 "gc_metadata", code->gc_metadata(), |
1491 Code::kGCMetadataOffset); | 1491 Code::kGCMetadataOffset); |
1492 SetInternalReference(code, entry, | 1492 if (FLAG_enable_ool_constant_pool) { |
1493 "constant_pool", code->constant_pool(), | 1493 SetInternalReference(code, entry, "constant_pool", |
1494 Code::kConstantPoolOffset); | 1494 reinterpret_cast<Object*>(code->constant_pool()), |
| 1495 Code::kConstantPoolOffset); |
| 1496 } |
1495 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 1497 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
1496 SetWeakReference(code, entry, | 1498 SetWeakReference(code, entry, |
1497 "next_code_link", code->next_code_link(), | 1499 "next_code_link", code->next_code_link(), |
1498 Code::kNextCodeLinkOffset); | 1500 Code::kNextCodeLinkOffset); |
1499 } | 1501 } |
1500 } | 1502 } |
1501 | 1503 |
1502 | 1504 |
1503 void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) { | 1505 void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) { |
1504 SetInternalReference(box, entry, "value", box->value(), Box::kValueOffset); | 1506 SetInternalReference(box, entry, "value", box->value(), Box::kValueOffset); |
(...skipping 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3152 writer_->AddString("\"<dummy>\""); | 3154 writer_->AddString("\"<dummy>\""); |
3153 for (int i = 1; i < sorted_strings.length(); ++i) { | 3155 for (int i = 1; i < sorted_strings.length(); ++i) { |
3154 writer_->AddCharacter(','); | 3156 writer_->AddCharacter(','); |
3155 SerializeString(sorted_strings[i]); | 3157 SerializeString(sorted_strings[i]); |
3156 if (writer_->aborted()) return; | 3158 if (writer_->aborted()) return; |
3157 } | 3159 } |
3158 } | 3160 } |
3159 | 3161 |
3160 | 3162 |
3161 } } // namespace v8::internal | 3163 } } // namespace v8::internal |
OLD | NEW |