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

Side by Side Diff: src/heap.cc

Issue 12832002: Parallel recompilation: fewer handle dereferences and tighter checks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments 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/heap.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 6579 matching lines...) Expand 10 before | Expand all | Expand 10 after
6590 set_hash_seed(Smi::FromInt(FLAG_hash_seed)); 6590 set_hash_seed(Smi::FromInt(FLAG_hash_seed));
6591 } 6591 }
6592 } 6592 }
6593 6593
6594 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); 6594 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity()));
6595 LOG(isolate_, IntPtrTEvent("heap-available", Available())); 6595 LOG(isolate_, IntPtrTEvent("heap-available", Available()));
6596 6596
6597 store_buffer()->SetUp(); 6597 store_buffer()->SetUp();
6598 6598
6599 if (FLAG_parallel_recompilation) relocation_mutex_ = OS::CreateMutex(); 6599 if (FLAG_parallel_recompilation) relocation_mutex_ = OS::CreateMutex();
6600 #ifdef DEBUG
6601 relocation_mutex_locked_ = false;
6602 #endif // DEBUG
6600 6603
6601 return true; 6604 return true;
6602 } 6605 }
6603 6606
6604 bool Heap::CreateHeapObjects() { 6607 bool Heap::CreateHeapObjects() {
6605 // Create initial maps. 6608 // Create initial maps.
6606 if (!CreateInitialMaps()) return false; 6609 if (!CreateInitialMaps()) return false;
6607 if (!CreateApiObjects()) return false; 6610 if (!CreateApiObjects()) return false;
6608 6611
6609 // Create initial objects 6612 // Create initial objects
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
7822 static_cast<int>(object_sizes_last_time_[index])); 7825 static_cast<int>(object_sizes_last_time_[index]));
7823 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) 7826 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT)
7824 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7827 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7825 7828
7826 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7829 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7827 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7830 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7828 ClearObjectStats(); 7831 ClearObjectStats();
7829 } 7832 }
7830 7833
7831 } } // namespace v8::internal 7834 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698