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

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

Issue 1670813005: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/objects-printer.cc ('k') | src/runtime-profiler.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 "src/profiler/heap-snapshot-generator.h" 5 #include "src/profiler/heap-snapshot-generator.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/conversions.h" 8 #include "src/conversions.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/objects-body-descriptors.h" 10 #include "src/objects-body-descriptors.h"
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 SharedFunctionInfo::kFunctionDataOffset); 1383 SharedFunctionInfo::kFunctionDataOffset);
1384 SetInternalReference(obj, entry, 1384 SetInternalReference(obj, entry,
1385 "debug_info", shared->debug_info(), 1385 "debug_info", shared->debug_info(),
1386 SharedFunctionInfo::kDebugInfoOffset); 1386 SharedFunctionInfo::kDebugInfoOffset);
1387 SetInternalReference(obj, entry, 1387 SetInternalReference(obj, entry,
1388 "inferred_name", shared->inferred_name(), 1388 "inferred_name", shared->inferred_name(),
1389 SharedFunctionInfo::kInferredNameOffset); 1389 SharedFunctionInfo::kInferredNameOffset);
1390 SetInternalReference(obj, entry, 1390 SetInternalReference(obj, entry,
1391 "optimized_code_map", shared->optimized_code_map(), 1391 "optimized_code_map", shared->optimized_code_map(),
1392 SharedFunctionInfo::kOptimizedCodeMapOffset); 1392 SharedFunctionInfo::kOptimizedCodeMapOffset);
1393 SetInternalReference(obj, entry, "feedback_metadata", 1393 SetInternalReference(obj, entry,
1394 shared->feedback_metadata(), 1394 "feedback_vector", shared->feedback_vector(),
1395 SharedFunctionInfo::kFeedbackMetadataOffset); 1395 SharedFunctionInfo::kFeedbackVectorOffset);
1396 } 1396 }
1397 1397
1398 1398
1399 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { 1399 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) {
1400 HeapObject* obj = script; 1400 HeapObject* obj = script;
1401 SetInternalReference(obj, entry, 1401 SetInternalReference(obj, entry,
1402 "source", script->source(), 1402 "source", script->source(),
1403 Script::kSourceOffset); 1403 Script::kSourceOffset);
1404 SetInternalReference(obj, entry, 1404 SetInternalReference(obj, entry,
1405 "name", script->name(), 1405 "name", script->name(),
(...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after
3155 for (int i = 1; i < sorted_strings.length(); ++i) { 3155 for (int i = 1; i < sorted_strings.length(); ++i) {
3156 writer_->AddCharacter(','); 3156 writer_->AddCharacter(',');
3157 SerializeString(sorted_strings[i]); 3157 SerializeString(sorted_strings[i]);
3158 if (writer_->aborted()) return; 3158 if (writer_->aborted()) return;
3159 } 3159 }
3160 } 3160 }
3161 3161
3162 3162
3163 } // namespace internal 3163 } // namespace internal
3164 } // namespace v8 3164 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698