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

Side by Side Diff: src/heap.cc

Issue 12300018: Made Isolate a mandatory parameter for everything Handle-related. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed CreateCode calls. Be nicer to MIPS. Created 7 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/handles-inl.h ('k') | src/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5553 matching lines...) Expand 10 before | Expand all | Expand 10 after
5564 USE(title); 5564 USE(title);
5565 PrintF(">>>>>> =============== %s (%d) =============== >>>>>>\n", 5565 PrintF(">>>>>> =============== %s (%d) =============== >>>>>>\n",
5566 title, gc_count_); 5566 title, gc_count_);
5567 PrintF("old_gen_promotion_limit_ %" V8_PTR_PREFIX "d\n", 5567 PrintF("old_gen_promotion_limit_ %" V8_PTR_PREFIX "d\n",
5568 old_gen_promotion_limit_); 5568 old_gen_promotion_limit_);
5569 PrintF("old_gen_allocation_limit_ %" V8_PTR_PREFIX "d\n", 5569 PrintF("old_gen_allocation_limit_ %" V8_PTR_PREFIX "d\n",
5570 old_gen_allocation_limit_); 5570 old_gen_allocation_limit_);
5571 PrintF("old_gen_limit_factor_ %d\n", old_gen_limit_factor_); 5571 PrintF("old_gen_limit_factor_ %d\n", old_gen_limit_factor_);
5572 5572
5573 PrintF("\n"); 5573 PrintF("\n");
5574 PrintF("Number of handles : %d\n", HandleScope::NumberOfHandles()); 5574 PrintF("Number of handles : %d\n", HandleScope::NumberOfHandles(isolate_));
5575 isolate_->global_handles()->PrintStats(); 5575 isolate_->global_handles()->PrintStats();
5576 PrintF("\n"); 5576 PrintF("\n");
5577 5577
5578 PrintF("Heap statistics : "); 5578 PrintF("Heap statistics : ");
5579 isolate_->memory_allocator()->ReportStatistics(); 5579 isolate_->memory_allocator()->ReportStatistics();
5580 PrintF("To space : "); 5580 PrintF("To space : ");
5581 new_space_.ReportStatistics(); 5581 new_space_.ReportStatistics();
5582 PrintF("Old pointer space : "); 5582 PrintF("Old pointer space : ");
5583 old_pointer_space_->ReportStatistics(); 5583 old_pointer_space_->ReportStatistics();
5584 PrintF("Old data space : "); 5584 PrintF("Old data space : ");
(...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after
7535 static_cast<int>(object_sizes_last_time_[index])); 7535 static_cast<int>(object_sizes_last_time_[index]));
7536 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) 7536 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT)
7537 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7537 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7538 7538
7539 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7539 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7540 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7540 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7541 ClearObjectStats(); 7541 ClearObjectStats();
7542 } 7542 }
7543 7543
7544 } } // namespace v8::internal 7544 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles-inl.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698