Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: src/heap-snapshot-generator.cc

Issue 1162993006: Add support for Embedded Constant Pools for PPC and Arm (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/globals.h ('k') | src/heap/heap.h » ('j') | src/objects.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 "deoptimization_data", code->deoptimization_data(), 1496 "deoptimization_data", code->deoptimization_data(),
1497 Code::kDeoptimizationDataOffset); 1497 Code::kDeoptimizationDataOffset);
1498 if (code->kind() == Code::FUNCTION) { 1498 if (code->kind() == Code::FUNCTION) {
1499 SetInternalReference(code, entry, 1499 SetInternalReference(code, entry,
1500 "type_feedback_info", code->type_feedback_info(), 1500 "type_feedback_info", code->type_feedback_info(),
1501 Code::kTypeFeedbackInfoOffset); 1501 Code::kTypeFeedbackInfoOffset);
1502 } 1502 }
1503 SetInternalReference(code, entry, 1503 SetInternalReference(code, entry,
1504 "gc_metadata", code->gc_metadata(), 1504 "gc_metadata", code->gc_metadata(),
1505 Code::kGCMetadataOffset); 1505 Code::kGCMetadataOffset);
1506 SetInternalReference(code, entry,
1507 "constant_pool", code->constant_pool(),
1508 Code::kConstantPoolOffset);
1509 if (code->kind() == Code::OPTIMIZED_FUNCTION) { 1506 if (code->kind() == Code::OPTIMIZED_FUNCTION) {
1510 SetWeakReference(code, entry, 1507 SetWeakReference(code, entry,
1511 "next_code_link", code->next_code_link(), 1508 "next_code_link", code->next_code_link(),
1512 Code::kNextCodeLinkOffset); 1509 Code::kNextCodeLinkOffset);
1513 } 1510 }
1514 } 1511 }
1515 1512
1516 1513
1517 void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) { 1514 void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) {
1518 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
3180 for (int i = 1; i < sorted_strings.length(); ++i) { 3177 for (int i = 1; i < sorted_strings.length(); ++i) {
3181 writer_->AddCharacter(','); 3178 writer_->AddCharacter(',');
3182 SerializeString(sorted_strings[i]); 3179 SerializeString(sorted_strings[i]);
3183 if (writer_->aborted()) return; 3180 if (writer_->aborted()) return;
3184 } 3181 }
3185 } 3182 }
3186 3183
3187 3184
3188 } // namespace internal 3185 } // namespace internal
3189 } // namespace v8 3186 } // namespace v8
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/heap/heap.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698