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

Side by Side Diff: src/profile-generator.cc

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/preparser-api.cc ('k') | src/regexp-macro-assembler.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2382 obj != NULL; 2382 obj != NULL;
2383 obj = iterator.next(), IncProgressCounter()) { 2383 obj = iterator.next(), IncProgressCounter()) {
2384 if (!interrupted) { 2384 if (!interrupted) {
2385 ExtractReferences(obj); 2385 ExtractReferences(obj);
2386 if (!ReportProgress()) interrupted = true; 2386 if (!ReportProgress()) interrupted = true;
2387 } 2387 }
2388 } 2388 }
2389 if (interrupted) return false; 2389 if (interrupted) return false;
2390 SetRootGcRootsReference(); 2390 SetRootGcRootsReference();
2391 RootsReferencesExtractor extractor(this); 2391 RootsReferencesExtractor extractor(this);
2392 HEAP->IterateRoots(&extractor, VISIT_ONLY_STRONG); 2392 HEAP->IterateRoots(&extractor, VISIT_ALL);
2393 return ReportProgress(); 2393 return ReportProgress();
2394 } 2394 }
2395 2395
2396 2396
2397 void HeapSnapshotsDiff::CreateRoots(int additions_count, int deletions_count) { 2397 void HeapSnapshotsDiff::CreateRoots(int additions_count, int deletions_count) {
2398 raw_additions_root_ = 2398 raw_additions_root_ =
2399 NewArray<char>(HeapEntry::EntriesSize(1, additions_count, 0)); 2399 NewArray<char>(HeapEntry::EntriesSize(1, additions_count, 0));
2400 additions_root()->Init( 2400 additions_root()->Init(
2401 snapshot2_, HeapEntry::kHidden, "", 0, 0, additions_count, 0); 2401 snapshot2_, HeapEntry::kHidden, "", 0, 0, additions_count, 0);
2402 raw_deletions_root_ = 2402 raw_deletions_root_ =
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
2837 2837
2838 2838
2839 String* GetConstructorNameForHeapProfile(JSObject* object) { 2839 String* GetConstructorNameForHeapProfile(JSObject* object) {
2840 if (object->IsJSFunction()) return HEAP->closure_symbol(); 2840 if (object->IsJSFunction()) return HEAP->closure_symbol();
2841 return object->constructor_name(); 2841 return object->constructor_name();
2842 } 2842 }
2843 2843
2844 } } // namespace v8::internal 2844 } } // namespace v8::internal
2845 2845
2846 #endif // ENABLE_LOGGING_AND_PROFILING 2846 #endif // ENABLE_LOGGING_AND_PROFILING
OLDNEW
« no previous file with comments | « src/preparser-api.cc ('k') | src/regexp-macro-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698