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

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

Issue 178463007: Moved type feedback vector to SharedFunctionInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports and comment response. Created 6 years, 9 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 SharedFunctionInfo::kFunctionDataOffset); 1320 SharedFunctionInfo::kFunctionDataOffset);
1321 SetInternalReference(obj, entry, 1321 SetInternalReference(obj, entry,
1322 "debug_info", shared->debug_info(), 1322 "debug_info", shared->debug_info(),
1323 SharedFunctionInfo::kDebugInfoOffset); 1323 SharedFunctionInfo::kDebugInfoOffset);
1324 SetInternalReference(obj, entry, 1324 SetInternalReference(obj, entry,
1325 "inferred_name", shared->inferred_name(), 1325 "inferred_name", shared->inferred_name(),
1326 SharedFunctionInfo::kInferredNameOffset); 1326 SharedFunctionInfo::kInferredNameOffset);
1327 SetInternalReference(obj, entry, 1327 SetInternalReference(obj, entry,
1328 "optimized_code_map", shared->optimized_code_map(), 1328 "optimized_code_map", shared->optimized_code_map(),
1329 SharedFunctionInfo::kOptimizedCodeMapOffset); 1329 SharedFunctionInfo::kOptimizedCodeMapOffset);
1330 SetInternalReference(obj, entry,
1331 "feedback_vector", shared->feedback_vector(),
1332 SharedFunctionInfo::kFeedbackVectorOffset);
1330 SetWeakReference(obj, entry, 1333 SetWeakReference(obj, entry,
1331 "initial_map", shared->initial_map(), 1334 "initial_map", shared->initial_map(),
1332 SharedFunctionInfo::kInitialMapOffset); 1335 SharedFunctionInfo::kInitialMapOffset);
1333 } 1336 }
1334 1337
1335 1338
1336 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { 1339 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) {
1337 HeapObject* obj = script; 1340 HeapObject* obj = script;
1338 SetInternalReference(obj, entry, 1341 SetInternalReference(obj, entry,
1339 "source", script->source(), 1342 "source", script->source(),
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
3065 writer_->AddString("\"<dummy>\""); 3068 writer_->AddString("\"<dummy>\"");
3066 for (int i = 1; i < sorted_strings.length(); ++i) { 3069 for (int i = 1; i < sorted_strings.length(); ++i) {
3067 writer_->AddCharacter(','); 3070 writer_->AddCharacter(',');
3068 SerializeString(sorted_strings[i]); 3071 SerializeString(sorted_strings[i]);
3069 if (writer_->aborted()) return; 3072 if (writer_->aborted()) return;
3070 } 3073 }
3071 } 3074 }
3072 3075
3073 3076
3074 } } // namespace v8::internal 3077 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698