| 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 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 | 1416 |
| 1417 void V8HeapExplorer::ExtractAccessorInfoReferences( | 1417 void V8HeapExplorer::ExtractAccessorInfoReferences( |
| 1418 int entry, AccessorInfo* accessor_info) { | 1418 int entry, AccessorInfo* accessor_info) { |
| 1419 SetInternalReference(accessor_info, entry, "name", accessor_info->name(), | 1419 SetInternalReference(accessor_info, entry, "name", accessor_info->name(), |
| 1420 AccessorInfo::kNameOffset); | 1420 AccessorInfo::kNameOffset); |
| 1421 SetInternalReference(accessor_info, entry, "expected_receiver_type", | 1421 SetInternalReference(accessor_info, entry, "expected_receiver_type", |
| 1422 accessor_info->expected_receiver_type(), | 1422 accessor_info->expected_receiver_type(), |
| 1423 AccessorInfo::kExpectedReceiverTypeOffset); | 1423 AccessorInfo::kExpectedReceiverTypeOffset); |
| 1424 if (accessor_info->IsExecutableAccessorInfo()) { | 1424 if (accessor_info->IsAccessorInfo()) { |
| 1425 ExecutableAccessorInfo* executable_accessor_info = | 1425 AccessorInfo* executable_accessor_info = AccessorInfo::cast(accessor_info); |
| 1426 ExecutableAccessorInfo::cast(accessor_info); | |
| 1427 SetInternalReference(executable_accessor_info, entry, "getter", | 1426 SetInternalReference(executable_accessor_info, entry, "getter", |
| 1428 executable_accessor_info->getter(), | 1427 executable_accessor_info->getter(), |
| 1429 ExecutableAccessorInfo::kGetterOffset); | 1428 AccessorInfo::kGetterOffset); |
| 1430 SetInternalReference(executable_accessor_info, entry, "setter", | 1429 SetInternalReference(executable_accessor_info, entry, "setter", |
| 1431 executable_accessor_info->setter(), | 1430 executable_accessor_info->setter(), |
| 1432 ExecutableAccessorInfo::kSetterOffset); | 1431 AccessorInfo::kSetterOffset); |
| 1433 SetInternalReference(executable_accessor_info, entry, "data", | 1432 SetInternalReference(executable_accessor_info, entry, "data", |
| 1434 executable_accessor_info->data(), | 1433 executable_accessor_info->data(), |
| 1435 ExecutableAccessorInfo::kDataOffset); | 1434 AccessorInfo::kDataOffset); |
| 1436 } | 1435 } |
| 1437 } | 1436 } |
| 1438 | 1437 |
| 1439 | 1438 |
| 1440 void V8HeapExplorer::ExtractAccessorPairReferences( | 1439 void V8HeapExplorer::ExtractAccessorPairReferences( |
| 1441 int entry, AccessorPair* accessors) { | 1440 int entry, AccessorPair* accessors) { |
| 1442 SetInternalReference(accessors, entry, "getter", accessors->getter(), | 1441 SetInternalReference(accessors, entry, "getter", accessors->getter(), |
| 1443 AccessorPair::kGetterOffset); | 1442 AccessorPair::kGetterOffset); |
| 1444 SetInternalReference(accessors, entry, "setter", accessors->setter(), | 1443 SetInternalReference(accessors, entry, "setter", accessors->setter(), |
| 1445 AccessorPair::kSetterOffset); | 1444 AccessorPair::kSetterOffset); |
| (...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3157 for (int i = 1; i < sorted_strings.length(); ++i) { | 3156 for (int i = 1; i < sorted_strings.length(); ++i) { |
| 3158 writer_->AddCharacter(','); | 3157 writer_->AddCharacter(','); |
| 3159 SerializeString(sorted_strings[i]); | 3158 SerializeString(sorted_strings[i]); |
| 3160 if (writer_->aborted()) return; | 3159 if (writer_->aborted()) return; |
| 3161 } | 3160 } |
| 3162 } | 3161 } |
| 3163 | 3162 |
| 3164 | 3163 |
| 3165 } // namespace internal | 3164 } // namespace internal |
| 3166 } // namespace v8 | 3165 } // namespace v8 |
| OLD | NEW |