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

Side by Side Diff: test/cctest/test-types.cc

Issue 567363002: Moar prints (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/types.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 <vector> 5 #include <vector>
6 6
7 #include "src/hydrogen-types.h" 7 #include "src/hydrogen-types.h"
8 #include "src/isolate-inl.h" 8 #include "src/isolate-inl.h"
9 #include "src/types.h" 9 #include "src/types.h"
10 #include "test/cctest/cctest.h" 10 #include "test/cctest/cctest.h"
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 (Rep::AsBitset(type1) & Rep::AsBitset(type2) & Rep::AsBitset(mask))); 402 (Rep::AsBitset(type1) & Rep::AsBitset(type2) & Rep::AsBitset(mask)));
403 } 403 }
404 } 404 }
405 405
406 void Bitset() { 406 void Bitset() {
407 // None and Any are bitsets. 407 // None and Any are bitsets.
408 CHECK(this->IsBitset(T.None)); 408 CHECK(this->IsBitset(T.None));
409 CHECK(this->IsBitset(T.Any)); 409 CHECK(this->IsBitset(T.Any));
410 410
411 CHECK(bitset(0) == this->AsBitset(T.None)); 411 CHECK(bitset(0) == this->AsBitset(T.None));
412 printf("[BitSet] %p (%p) == %p (%p)\n", 412 printf("[BitSet] value=%p enum=%p bitset=%p any=%p this=%p any=%p\n",
413 reinterpret_cast<void*>(bitset(0xfffffffeu)), 413 reinterpret_cast<void*>(bitset(0xfffffffeu)),
414 reinterpret_cast<void*>(bitset(HeapType::BitsetType::kAny)),
415 reinterpret_cast<void*>(
416 HeapTypeConfig::from_bitset(HeapType::BitsetType::kAny)),
414 reinterpret_cast<void*>(HeapType::Any()), 417 reinterpret_cast<void*>(HeapType::Any()),
415 reinterpret_cast<void*>(this->AsBitset(T.Any)), 418 reinterpret_cast<void*>(this->AsBitset(T.Any)),
416 reinterpret_cast<void*>(*T.Any)); 419 reinterpret_cast<void*>(*T.Any));
417 CHECK(bitset(0xfffffffeu) == this->AsBitset(T.Any)); 420 CHECK(bitset(0xfffffffeu) == this->AsBitset(T.Any));
418 421
419 // Union(T1, T2) is bitset for bitsets T1,T2 422 // Union(T1, T2) is bitset for bitsets T1,T2
420 for (TypeIterator it1 = T.types.begin(); it1 != T.types.end(); ++it1) { 423 for (TypeIterator it1 = T.types.begin(); it1 != T.types.end(); ++it1) {
421 for (TypeIterator it2 = T.types.begin(); it2 != T.types.end(); ++it2) { 424 for (TypeIterator it2 = T.types.begin(); it2 != T.types.end(); ++it2) {
422 TypeHandle type1 = *it1; 425 TypeHandle type1 = *it1;
423 TypeHandle type2 = *it2; 426 TypeHandle type2 = *it2;
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 ZoneTests().Convert<HeapType, Handle<HeapType>, Isolate, HeapRep>(); 1976 ZoneTests().Convert<HeapType, Handle<HeapType>, Isolate, HeapRep>();
1974 HeapTests().Convert<Type, Type*, Zone, ZoneRep>(); 1977 HeapTests().Convert<Type, Type*, Zone, ZoneRep>();
1975 } 1978 }
1976 1979
1977 1980
1978 TEST(HTypeFromType) { 1981 TEST(HTypeFromType) {
1979 CcTest::InitializeVM(); 1982 CcTest::InitializeVM();
1980 ZoneTests().HTypeFromType(); 1983 ZoneTests().HTypeFromType();
1981 HeapTests().HTypeFromType(); 1984 HeapTests().HTypeFromType();
1982 } 1985 }
OLDNEW
« no previous file with comments | « src/types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698