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

Unified Diff: test/cctest/types-fuzz.h

Issue 2305383002: [turbofan] Nuke the context 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/test-types.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/types-fuzz.h
diff --git a/test/cctest/types-fuzz.h b/test/cctest/types-fuzz.h
index a8762a07dd2d2815411d047bf02d0ba864fe43b2..ae73da78d06db0618a00b907cf2ef4a12a4f07de 100644
--- a/test/cctest/types-fuzz.h
+++ b/test/cctest/types-fuzz.h
@@ -155,8 +155,6 @@ class Types {
Type* Range(double min, double max) { return Type::Range(min, max, zone_); }
- Type* Context(Type* outer) { return Type::Context(outer, zone_); }
-
Type* Array1(Type* element) { return Type::Array(element, zone_); }
Type* Function0(Type* result, Type* receiver) {
@@ -222,18 +220,12 @@ class Types {
if (min > max) std::swap(min, max);
return Type::Range(min, max, zone_);
}
- case 3: { // context
- int depth = rng_->NextInt(3);
- Type* type = Type::Internal();
- for (int i = 0; i < depth; ++i) type = Type::Context(type, zone_);
- return type;
- }
- case 4: { // array
+ case 3: { // array
Type* element = Fuzz(depth / 2);
return Type::Array(element, zone_);
}
- case 5:
- case 6: { // function
+ case 4:
+ case 5: { // function
Type* result = Fuzz(depth / 2);
Type* receiver = Fuzz(depth / 2);
int arity = rng_->NextInt(3);
« no previous file with comments | « test/cctest/test-types.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698