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

Unified Diff: test/cctest/test-ast-types.cc

Issue 2309753002: [turbofan] Nuke class types. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/ast-types-fuzz.h ('k') | test/cctest/test-types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-ast-types.cc
diff --git a/test/cctest/test-ast-types.cc b/test/cctest/test-ast-types.cc
index 3d9b8a6d539ec0c36ad19773bad5e484373e4cba..39d2d70eb00a894f058babdee09c67d7d432a38a 100644
--- a/test/cctest/test-ast-types.cc
+++ b/test/cctest/test-ast-types.cc
@@ -21,6 +21,8 @@
using namespace v8::internal;
+namespace {
+
// Testing auxiliaries (breaking the Type abstraction).
static bool IsInteger(double x) {
@@ -34,14 +36,14 @@ static bool IsInteger(i::Object* x) {
typedef uint32_t bitset;
struct Tests {
- typedef Types::TypeVector::iterator TypeIterator;
- typedef Types::MapVector::iterator MapIterator;
- typedef Types::ValueVector::iterator ValueIterator;
+ typedef AstTypes::TypeVector::iterator TypeIterator;
+ typedef AstTypes::MapVector::iterator MapIterator;
+ typedef AstTypes::ValueVector::iterator ValueIterator;
Isolate* isolate;
HandleScope scope;
Zone zone;
- Types T;
+ AstTypes T;
Tests()
: isolate(CcTest::InitIsolateOnce()),
@@ -1845,6 +1847,8 @@ struct Tests {
}
};
+} // namespace
+
TEST(AstIsSomeType_zone) { Tests().IsSomeType(); }
TEST(AstPointwiseRepresentation_zone) { Tests().PointwiseRepresentation(); }
« no previous file with comments | « test/cctest/ast-types-fuzz.h ('k') | test/cctest/test-types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698