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

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

Issue 283383006: Inobject slack tracking is done on a per-closure basis instead of per-shared info basis. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing review comments 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 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 SharedFunctionInfo::kDebugInfoOffset); 1402 SharedFunctionInfo::kDebugInfoOffset);
1403 SetInternalReference(obj, entry, 1403 SetInternalReference(obj, entry,
1404 "inferred_name", shared->inferred_name(), 1404 "inferred_name", shared->inferred_name(),
1405 SharedFunctionInfo::kInferredNameOffset); 1405 SharedFunctionInfo::kInferredNameOffset);
1406 SetInternalReference(obj, entry, 1406 SetInternalReference(obj, entry,
1407 "optimized_code_map", shared->optimized_code_map(), 1407 "optimized_code_map", shared->optimized_code_map(),
1408 SharedFunctionInfo::kOptimizedCodeMapOffset); 1408 SharedFunctionInfo::kOptimizedCodeMapOffset);
1409 SetInternalReference(obj, entry, 1409 SetInternalReference(obj, entry,
1410 "feedback_vector", shared->feedback_vector(), 1410 "feedback_vector", shared->feedback_vector(),
1411 SharedFunctionInfo::kFeedbackVectorOffset); 1411 SharedFunctionInfo::kFeedbackVectorOffset);
1412 SetWeakReference(obj, entry,
1413 "initial_map", shared->initial_map(),
1414 SharedFunctionInfo::kInitialMapOffset);
1415 } 1412 }
1416 1413
1417 1414
1418 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { 1415 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) {
1419 HeapObject* obj = script; 1416 HeapObject* obj = script;
1420 SetInternalReference(obj, entry, 1417 SetInternalReference(obj, entry,
1421 "source", script->source(), 1418 "source", script->source(),
1422 Script::kSourceOffset); 1419 Script::kSourceOffset);
1423 SetInternalReference(obj, entry, 1420 SetInternalReference(obj, entry,
1424 "name", script->name(), 1421 "name", script->name(),
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after
3149 writer_->AddString("\"<dummy>\""); 3146 writer_->AddString("\"<dummy>\"");
3150 for (int i = 1; i < sorted_strings.length(); ++i) { 3147 for (int i = 1; i < sorted_strings.length(); ++i) {
3151 writer_->AddCharacter(','); 3148 writer_->AddCharacter(',');
3152 SerializeString(sorted_strings[i]); 3149 SerializeString(sorted_strings[i]);
3153 if (writer_->aborted()) return; 3150 if (writer_->aborted()) return;
3154 } 3151 }
3155 } 3152 }
3156 3153
3157 3154
3158 } } // namespace v8::internal 3155 } } // 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