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

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

Issue 292183008: Reland r21442 "Inobject slack tracking is done on a per-closure basis instead of per-shared info ba… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: The fix Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.cc » ('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 "v8.h" 5 #include "v8.h"
6 6
7 #include "heap-snapshot-generator-inl.h" 7 #include "heap-snapshot-generator-inl.h"
8 8
9 #include "allocation-tracker.h" 9 #include "allocation-tracker.h"
10 #include "code-stubs.h" 10 #include "code-stubs.h"
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 SharedFunctionInfo::kDebugInfoOffset); 1414 SharedFunctionInfo::kDebugInfoOffset);
1415 SetInternalReference(obj, entry, 1415 SetInternalReference(obj, entry,
1416 "inferred_name", shared->inferred_name(), 1416 "inferred_name", shared->inferred_name(),
1417 SharedFunctionInfo::kInferredNameOffset); 1417 SharedFunctionInfo::kInferredNameOffset);
1418 SetInternalReference(obj, entry, 1418 SetInternalReference(obj, entry,
1419 "optimized_code_map", shared->optimized_code_map(), 1419 "optimized_code_map", shared->optimized_code_map(),
1420 SharedFunctionInfo::kOptimizedCodeMapOffset); 1420 SharedFunctionInfo::kOptimizedCodeMapOffset);
1421 SetInternalReference(obj, entry, 1421 SetInternalReference(obj, entry,
1422 "feedback_vector", shared->feedback_vector(), 1422 "feedback_vector", shared->feedback_vector(),
1423 SharedFunctionInfo::kFeedbackVectorOffset); 1423 SharedFunctionInfo::kFeedbackVectorOffset);
1424 SetWeakReference(obj, entry,
1425 "initial_map", shared->initial_map(),
1426 SharedFunctionInfo::kInitialMapOffset);
1427 } 1424 }
1428 1425
1429 1426
1430 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { 1427 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) {
1431 HeapObject* obj = script; 1428 HeapObject* obj = script;
1432 SetInternalReference(obj, entry, 1429 SetInternalReference(obj, entry,
1433 "source", script->source(), 1430 "source", script->source(),
1434 Script::kSourceOffset); 1431 Script::kSourceOffset);
1435 SetInternalReference(obj, entry, 1432 SetInternalReference(obj, entry,
1436 "name", script->name(), 1433 "name", script->name(),
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after
3157 writer_->AddString("\"<dummy>\""); 3154 writer_->AddString("\"<dummy>\"");
3158 for (int i = 1; i < sorted_strings.length(); ++i) { 3155 for (int i = 1; i < sorted_strings.length(); ++i) {
3159 writer_->AddCharacter(','); 3156 writer_->AddCharacter(',');
3160 SerializeString(sorted_strings[i]); 3157 SerializeString(sorted_strings[i]);
3161 if (writer_->aborted()) return; 3158 if (writer_->aborted()) return;
3162 } 3159 }
3163 } 3160 }
3164 3161
3165 3162
3166 } } // namespace v8::internal 3163 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698