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

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

Issue 1563213002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 4 years, 11 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
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 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 SharedFunctionInfo::kFunctionDataOffset); 1387 SharedFunctionInfo::kFunctionDataOffset);
1388 SetInternalReference(obj, entry, 1388 SetInternalReference(obj, entry,
1389 "debug_info", shared->debug_info(), 1389 "debug_info", shared->debug_info(),
1390 SharedFunctionInfo::kDebugInfoOffset); 1390 SharedFunctionInfo::kDebugInfoOffset);
1391 SetInternalReference(obj, entry, 1391 SetInternalReference(obj, entry,
1392 "inferred_name", shared->inferred_name(), 1392 "inferred_name", shared->inferred_name(),
1393 SharedFunctionInfo::kInferredNameOffset); 1393 SharedFunctionInfo::kInferredNameOffset);
1394 SetInternalReference(obj, entry, 1394 SetInternalReference(obj, entry,
1395 "optimized_code_map", shared->optimized_code_map(), 1395 "optimized_code_map", shared->optimized_code_map(),
1396 SharedFunctionInfo::kOptimizedCodeMapOffset); 1396 SharedFunctionInfo::kOptimizedCodeMapOffset);
1397 SetInternalReference(obj, entry, 1397 SetInternalReference(obj, entry, "feedback_metadata",
1398 "feedback_vector", shared->feedback_vector(), 1398 shared->feedback_metadata(),
1399 SharedFunctionInfo::kFeedbackVectorOffset); 1399 SharedFunctionInfo::kFeedbackMetadataOffset);
1400 } 1400 }
1401 1401
1402 1402
1403 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { 1403 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) {
1404 HeapObject* obj = script; 1404 HeapObject* obj = script;
1405 SetInternalReference(obj, entry, 1405 SetInternalReference(obj, entry,
1406 "source", script->source(), 1406 "source", script->source(),
1407 Script::kSourceOffset); 1407 Script::kSourceOffset);
1408 SetInternalReference(obj, entry, 1408 SetInternalReference(obj, entry,
1409 "name", script->name(), 1409 "name", script->name(),
(...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after
3161 for (int i = 1; i < sorted_strings.length(); ++i) { 3161 for (int i = 1; i < sorted_strings.length(); ++i) {
3162 writer_->AddCharacter(','); 3162 writer_->AddCharacter(',');
3163 SerializeString(sorted_strings[i]); 3163 SerializeString(sorted_strings[i]);
3164 if (writer_->aborted()) return; 3164 if (writer_->aborted()) return;
3165 } 3165 }
3166 } 3166 }
3167 3167
3168 3168
3169 } // namespace internal 3169 } // namespace internal
3170 } // namespace v8 3170 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698