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

Side by Side Diff: src/heap/heap.cc

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow dchecks. Created 5 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 5435 matching lines...) Expand 10 before | Expand all | Expand 10 after
5446 } 5446 }
5447 5447
5448 5448
5449 bool Heap::CreateHeapObjects() { 5449 bool Heap::CreateHeapObjects() {
5450 // Create initial maps. 5450 // Create initial maps.
5451 if (!CreateInitialMaps()) return false; 5451 if (!CreateInitialMaps()) return false;
5452 CreateApiObjects(); 5452 CreateApiObjects();
5453 5453
5454 // Create initial objects 5454 // Create initial objects
5455 CreateInitialObjects(); 5455 CreateInitialObjects();
5456 CHECK_EQ(0, gc_count_); 5456 CHECK_EQ(0u, gc_count_);
5457 5457
5458 set_native_contexts_list(undefined_value()); 5458 set_native_contexts_list(undefined_value());
5459 set_array_buffers_list(undefined_value()); 5459 set_array_buffers_list(undefined_value());
5460 set_allocation_sites_list(undefined_value()); 5460 set_allocation_sites_list(undefined_value());
5461 weak_object_to_code_table_ = undefined_value(); 5461 weak_object_to_code_table_ = undefined_value();
5462 return true; 5462 return true;
5463 } 5463 }
5464 5464
5465 5465
5466 void Heap::SetStackLimits() { 5466 void Heap::SetStackLimits() {
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
6445 static_cast<int>(object_sizes_last_time_[index])); 6445 static_cast<int>(object_sizes_last_time_[index]));
6446 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6446 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6447 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6447 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6448 6448
6449 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6449 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6450 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6450 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6451 ClearObjectStats(); 6451 ClearObjectStats();
6452 } 6452 }
6453 } 6453 }
6454 } // namespace v8::internal 6454 } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698