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

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

Issue 196343021: Revert "Continued fix for 351257. Reusing the feedback vector is too complex." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« 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 // 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 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 SharedFunctionInfo::kFunctionDataOffset); 1391 SharedFunctionInfo::kFunctionDataOffset);
1392 SetInternalReference(obj, entry, 1392 SetInternalReference(obj, entry,
1393 "debug_info", shared->debug_info(), 1393 "debug_info", shared->debug_info(),
1394 SharedFunctionInfo::kDebugInfoOffset); 1394 SharedFunctionInfo::kDebugInfoOffset);
1395 SetInternalReference(obj, entry, 1395 SetInternalReference(obj, entry,
1396 "inferred_name", shared->inferred_name(), 1396 "inferred_name", shared->inferred_name(),
1397 SharedFunctionInfo::kInferredNameOffset); 1397 SharedFunctionInfo::kInferredNameOffset);
1398 SetInternalReference(obj, entry, 1398 SetInternalReference(obj, entry,
1399 "optimized_code_map", shared->optimized_code_map(), 1399 "optimized_code_map", shared->optimized_code_map(),
1400 SharedFunctionInfo::kOptimizedCodeMapOffset); 1400 SharedFunctionInfo::kOptimizedCodeMapOffset);
1401 SetInternalReference(obj, entry,
1402 "feedback_vector", shared->feedback_vector(),
1403 SharedFunctionInfo::kFeedbackVectorOffset);
1404 SetWeakReference(obj, entry, 1401 SetWeakReference(obj, entry,
1405 "initial_map", shared->initial_map(), 1402 "initial_map", shared->initial_map(),
1406 SharedFunctionInfo::kInitialMapOffset); 1403 SharedFunctionInfo::kInitialMapOffset);
1407 } 1404 }
1408 1405
1409 1406
1410 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { 1407 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) {
1411 HeapObject* obj = script; 1408 HeapObject* obj = script;
1412 SetInternalReference(obj, entry, 1409 SetInternalReference(obj, entry,
1413 "source", script->source(), 1410 "source", script->source(),
(...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after
3078 writer_->AddString("\"<dummy>\""); 3075 writer_->AddString("\"<dummy>\"");
3079 for (int i = 1; i < sorted_strings.length(); ++i) { 3076 for (int i = 1; i < sorted_strings.length(); ++i) {
3080 writer_->AddCharacter(','); 3077 writer_->AddCharacter(',');
3081 SerializeString(sorted_strings[i]); 3078 SerializeString(sorted_strings[i]);
3082 if (writer_->aborted()) return; 3079 if (writer_->aborted()) return;
3083 } 3080 }
3084 } 3081 }
3085 3082
3086 3083
3087 } } // namespace v8::internal 3084 } } // 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