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

Side by Side Diff: src/objects-debug.cc

Issue 2490523003: [heap] Use size_t for heap and space counters. (Closed)
Patch Set: more fixes Created 4 years, 1 month 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
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | src/x64/assembler-x64.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 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/disasm.h" 8 #include "src/disasm.h"
9 #include "src/disassembler.h" 9 #include "src/disassembler.h"
10 #include "src/field-type.h" 10 #include "src/field-type.h"
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 CHECK(map()->has_fast_object_elements() == HasFastObjectElements()); 376 CHECK(map()->has_fast_object_elements() == HasFastObjectElements());
377 } 377 }
378 } 378 }
379 379
380 380
381 void Map::MapVerify() { 381 void Map::MapVerify() {
382 Heap* heap = GetHeap(); 382 Heap* heap = GetHeap();
383 CHECK(!heap->InNewSpace(this)); 383 CHECK(!heap->InNewSpace(this));
384 CHECK(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE); 384 CHECK(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE);
385 CHECK(instance_size() == kVariableSizeSentinel || 385 CHECK(instance_size() == kVariableSizeSentinel ||
386 (kPointerSize <= instance_size() && 386 (kPointerSize <= instance_size() &&
387 instance_size() < heap->Capacity())); 387 static_cast<size_t>(instance_size()) < heap->Capacity()));
388 CHECK(GetBackPointer()->IsUndefined(heap->isolate()) || 388 CHECK(GetBackPointer()->IsUndefined(heap->isolate()) ||
389 !Map::cast(GetBackPointer())->is_stable()); 389 !Map::cast(GetBackPointer())->is_stable());
390 VerifyHeapPointer(prototype()); 390 VerifyHeapPointer(prototype());
391 VerifyHeapPointer(instance_descriptors()); 391 VerifyHeapPointer(instance_descriptors());
392 SLOW_DCHECK(instance_descriptors()->IsSortedNoDuplicates()); 392 SLOW_DCHECK(instance_descriptors()->IsSortedNoDuplicates());
393 SLOW_DCHECK(TransitionArray::IsSortedNoDuplicates(this)); 393 SLOW_DCHECK(TransitionArray::IsSortedNoDuplicates(this));
394 SLOW_DCHECK(TransitionArray::IsConsistentWithBackPointers(this)); 394 SLOW_DCHECK(TransitionArray::IsConsistentWithBackPointers(this));
395 // TODO(ishell): turn it back to SLOW_DCHECK. 395 // TODO(ishell): turn it back to SLOW_DCHECK.
396 CHECK(!FLAG_unbox_double_fields || 396 CHECK(!FLAG_unbox_double_fields ||
397 layout_descriptor()->IsConsistentWithMap(this)); 397 layout_descriptor()->IsConsistentWithMap(this));
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 1483
1484 // Both are done at the same time. 1484 // Both are done at the same time.
1485 CHECK_EQ(new_it.done(), old_it.done()); 1485 CHECK_EQ(new_it.done(), old_it.done());
1486 } 1486 }
1487 1487
1488 1488
1489 #endif // DEBUG 1489 #endif // DEBUG
1490 1490
1491 } // namespace internal 1491 } // namespace internal
1492 } // namespace v8 1492 } // namespace v8
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698