| 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/heap-snapshot-generator.h" |     5 #include "src/heap-snapshot-generator.h" | 
|     6  |     6  | 
|     7 #include "src/allocation-tracker.h" |     7 #include "src/allocation-tracker.h" | 
|     8 #include "src/code-stubs.h" |     8 #include "src/code-stubs.h" | 
|     9 #include "src/conversions.h" |     9 #include "src/conversions.h" | 
|    10 #include "src/debug/debug.h" |    10 #include "src/debug/debug.h" | 
| (...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1465  |  1465  | 
|  1466  |  1466  | 
|  1467 void V8HeapExplorer::TagBuiltinCodeObject(Code* code, const char* name) { |  1467 void V8HeapExplorer::TagBuiltinCodeObject(Code* code, const char* name) { | 
|  1468   TagObject(code, names_->GetFormatted("(%s builtin)", name)); |  1468   TagObject(code, names_->GetFormatted("(%s builtin)", name)); | 
|  1469 } |  1469 } | 
|  1470  |  1470  | 
|  1471  |  1471  | 
|  1472 void V8HeapExplorer::TagCodeObject(Code* code) { |  1472 void V8HeapExplorer::TagCodeObject(Code* code) { | 
|  1473   if (code->kind() == Code::STUB) { |  1473   if (code->kind() == Code::STUB) { | 
|  1474     TagObject(code, names_->GetFormatted( |  1474     TagObject(code, names_->GetFormatted( | 
|  1475                         "(%s code)", CodeStub::MajorName( |  1475                         "(%s code)", | 
|  1476                                          CodeStub::GetMajorKey(code), true))); |  1476                         CodeStub::MajorName(CodeStub::GetMajorKey(code)))); | 
|  1477   } |  1477   } | 
|  1478 } |  1478 } | 
|  1479  |  1479  | 
|  1480  |  1480  | 
|  1481 void V8HeapExplorer::ExtractCodeReferences(int entry, Code* code) { |  1481 void V8HeapExplorer::ExtractCodeReferences(int entry, Code* code) { | 
|  1482   TagCodeObject(code); |  1482   TagCodeObject(code); | 
|  1483   TagObject(code->relocation_info(), "(code relocation info)"); |  1483   TagObject(code->relocation_info(), "(code relocation info)"); | 
|  1484   SetInternalReference(code, entry, |  1484   SetInternalReference(code, entry, | 
|  1485                        "relocation_info", code->relocation_info(), |  1485                        "relocation_info", code->relocation_info(), | 
|  1486                        Code::kRelocationInfoOffset); |  1486                        Code::kRelocationInfoOffset); | 
| (...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3172   for (int i = 1; i < sorted_strings.length(); ++i) { |  3172   for (int i = 1; i < sorted_strings.length(); ++i) { | 
|  3173     writer_->AddCharacter(','); |  3173     writer_->AddCharacter(','); | 
|  3174     SerializeString(sorted_strings[i]); |  3174     SerializeString(sorted_strings[i]); | 
|  3175     if (writer_->aborted()) return; |  3175     if (writer_->aborted()) return; | 
|  3176   } |  3176   } | 
|  3177 } |  3177 } | 
|  3178  |  3178  | 
|  3179  |  3179  | 
|  3180 }  // namespace internal |  3180 }  // namespace internal | 
|  3181 }  // namespace v8 |  3181 }  // namespace v8 | 
| OLD | NEW |