Revision: 19476
Author:   [email protected]
Date:     Wed Feb 19 10:52:06 2014 UTC
Log:      Narrows predicate for type bounds

[email protected]
BUG=

Review URL: https://codereview.chromium.org/170943005
http://code.google.com/p/v8/source/detail?r=19476

Modified:
 /branches/bleeding_edge/src/types.h

=======================================
--- /branches/bleeding_edge/src/types.h Fri Jan 24 11:47:47 2014 UTC
+++ /branches/bleeding_edge/src/types.h Wed Feb 19 10:52:06 2014 UTC
@@ -560,6 +560,10 @@
     TypeHandle upper = Type::Intersect(b.upper, t, region);
     return BoundsImpl(lower, upper);
   }
+
+  bool Narrows(BoundsImpl that) {
+    return that.lower->Is(this->lower) && this->upper->Is(that.upper);
+  }
 };

 typedef BoundsImpl<ZoneTypeConfig> Bounds;

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to