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

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

Issue 877753007: Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: VS201x now happy? 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
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.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 // 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/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 void HeapObject::VerifyHeapPointer(Object* p) { 200 void HeapObject::VerifyHeapPointer(Object* p) {
201 CHECK(p->IsHeapObject()); 201 CHECK(p->IsHeapObject());
202 HeapObject* ho = HeapObject::cast(p); 202 HeapObject* ho = HeapObject::cast(p);
203 CHECK(ho->GetHeap()->Contains(ho)); 203 CHECK(ho->GetHeap()->Contains(ho));
204 } 204 }
205 205
206 206
207 void Symbol::SymbolVerify() { 207 void Symbol::SymbolVerify() {
208 CHECK(IsSymbol()); 208 CHECK(IsSymbol());
209 CHECK(HasHashCode()); 209 CHECK(HasHashCode());
210 CHECK_GT(Hash(), 0); 210 CHECK_GT(Hash(), 0u);
211 CHECK(name()->IsUndefined() || name()->IsString()); 211 CHECK(name()->IsUndefined() || name()->IsString());
212 CHECK(flags()->IsSmi()); 212 CHECK(flags()->IsSmi());
213 } 213 }
214 214
215 215
216 void HeapNumber::HeapNumberVerify() { 216 void HeapNumber::HeapNumberVerify() {
217 CHECK(IsHeapNumber() || IsMutableHeapNumber()); 217 CHECK(IsHeapNumber() || IsMutableHeapNumber());
218 } 218 }
219 219
220 220
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 while (map != heap->roots_array_start()[i++]) { 1250 while (map != heap->roots_array_start()[i++]) {
1251 CHECK_LT(i, Heap::kStrongRootListLength); 1251 CHECK_LT(i, Heap::kStrongRootListLength);
1252 } 1252 }
1253 } 1253 }
1254 } 1254 }
1255 1255
1256 1256
1257 #endif // DEBUG 1257 #endif // DEBUG
1258 1258
1259 } } // namespace v8::internal 1259 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698