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

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

Issue 1131783003: Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debug-mode Arm issue. 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') | no next file with comments »
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 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 "deoptimization_data", code->deoptimization_data(), 1493 "deoptimization_data", code->deoptimization_data(),
1494 Code::kDeoptimizationDataOffset); 1494 Code::kDeoptimizationDataOffset);
1495 if (code->kind() == Code::FUNCTION) { 1495 if (code->kind() == Code::FUNCTION) {
1496 SetInternalReference(code, entry, 1496 SetInternalReference(code, entry,
1497 "type_feedback_info", code->type_feedback_info(), 1497 "type_feedback_info", code->type_feedback_info(),
1498 Code::kTypeFeedbackInfoOffset); 1498 Code::kTypeFeedbackInfoOffset);
1499 } 1499 }
1500 SetInternalReference(code, entry, 1500 SetInternalReference(code, entry,
1501 "gc_metadata", code->gc_metadata(), 1501 "gc_metadata", code->gc_metadata(),
1502 Code::kGCMetadataOffset); 1502 Code::kGCMetadataOffset);
1503 SetInternalReference(code, entry,
1504 "constant_pool", code->constant_pool(),
1505 Code::kConstantPoolOffset);
1506 if (code->kind() == Code::OPTIMIZED_FUNCTION) { 1503 if (code->kind() == Code::OPTIMIZED_FUNCTION) {
1507 SetWeakReference(code, entry, 1504 SetWeakReference(code, entry,
1508 "next_code_link", code->next_code_link(), 1505 "next_code_link", code->next_code_link(),
1509 Code::kNextCodeLinkOffset); 1506 Code::kNextCodeLinkOffset);
1510 } 1507 }
1511 } 1508 }
1512 1509
1513 1510
1514 void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) { 1511 void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) {
1515 SetInternalReference(box, entry, "value", box->value(), Box::kValueOffset); 1512 SetInternalReference(box, entry, "value", box->value(), Box::kValueOffset);
(...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after
3177 for (int i = 1; i < sorted_strings.length(); ++i) { 3174 for (int i = 1; i < sorted_strings.length(); ++i) {
3178 writer_->AddCharacter(','); 3175 writer_->AddCharacter(',');
3179 SerializeString(sorted_strings[i]); 3176 SerializeString(sorted_strings[i]);
3180 if (writer_->aborted()) return; 3177 if (writer_->aborted()) return;
3181 } 3178 }
3182 } 3179 }
3183 3180
3184 3181
3185 } // namespace internal 3182 } // namespace internal
3186 } // namespace v8 3183 } // namespace v8
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698