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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1415 } | 1415 } |
1416 | 1416 |
1417 | 1417 |
1418 void V8HeapExplorer::ExtractAccessorInfoReferences( | 1418 void V8HeapExplorer::ExtractAccessorInfoReferences( |
1419 int entry, AccessorInfo* accessor_info) { | 1419 int entry, AccessorInfo* accessor_info) { |
1420 SetInternalReference(accessor_info, entry, "name", accessor_info->name(), | 1420 SetInternalReference(accessor_info, entry, "name", accessor_info->name(), |
1421 AccessorInfo::kNameOffset); | 1421 AccessorInfo::kNameOffset); |
1422 SetInternalReference(accessor_info, entry, "expected_receiver_type", | 1422 SetInternalReference(accessor_info, entry, "expected_receiver_type", |
1423 accessor_info->expected_receiver_type(), | 1423 accessor_info->expected_receiver_type(), |
1424 AccessorInfo::kExpectedReceiverTypeOffset); | 1424 AccessorInfo::kExpectedReceiverTypeOffset); |
1425 if (accessor_info->IsDeclaredAccessorInfo()) { | 1425 if (accessor_info->IsExecutableAccessorInfo()) { |
1426 DeclaredAccessorInfo* declared_accessor_info = | |
1427 DeclaredAccessorInfo::cast(accessor_info); | |
1428 SetInternalReference(declared_accessor_info, entry, "descriptor", | |
1429 declared_accessor_info->descriptor(), | |
1430 DeclaredAccessorInfo::kDescriptorOffset); | |
1431 } else if (accessor_info->IsExecutableAccessorInfo()) { | |
1432 ExecutableAccessorInfo* executable_accessor_info = | 1426 ExecutableAccessorInfo* executable_accessor_info = |
1433 ExecutableAccessorInfo::cast(accessor_info); | 1427 ExecutableAccessorInfo::cast(accessor_info); |
1434 SetInternalReference(executable_accessor_info, entry, "getter", | 1428 SetInternalReference(executable_accessor_info, entry, "getter", |
1435 executable_accessor_info->getter(), | 1429 executable_accessor_info->getter(), |
1436 ExecutableAccessorInfo::kGetterOffset); | 1430 ExecutableAccessorInfo::kGetterOffset); |
1437 SetInternalReference(executable_accessor_info, entry, "setter", | 1431 SetInternalReference(executable_accessor_info, entry, "setter", |
1438 executable_accessor_info->setter(), | 1432 executable_accessor_info->setter(), |
1439 ExecutableAccessorInfo::kSetterOffset); | 1433 ExecutableAccessorInfo::kSetterOffset); |
1440 SetInternalReference(executable_accessor_info, entry, "data", | 1434 SetInternalReference(executable_accessor_info, entry, "data", |
1441 executable_accessor_info->data(), | 1435 executable_accessor_info->data(), |
(...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3133 writer_->AddString("\"<dummy>\""); | 3127 writer_->AddString("\"<dummy>\""); |
3134 for (int i = 1; i < sorted_strings.length(); ++i) { | 3128 for (int i = 1; i < sorted_strings.length(); ++i) { |
3135 writer_->AddCharacter(','); | 3129 writer_->AddCharacter(','); |
3136 SerializeString(sorted_strings[i]); | 3130 SerializeString(sorted_strings[i]); |
3137 if (writer_->aborted()) return; | 3131 if (writer_->aborted()) return; |
3138 } | 3132 } |
3139 } | 3133 } |
3140 | 3134 |
3141 | 3135 |
3142 } } // namespace v8::internal | 3136 } } // namespace v8::internal |
OLD | NEW |