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

Side by Side Diff: src/types.h

Issue 1340023003: Fix printing of types and do some cleanups. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | src/types.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_TYPES_H_ 5 #ifndef V8_TYPES_H_
6 #define V8_TYPES_H_ 6 #define V8_TYPES_H_
7 7
8 #include "src/conversions.h" 8 #include "src/conversions.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 bitset BitsetLub() { return BitsetType::Lub(this); } 596 bitset BitsetLub() { return BitsetType::Lub(this); }
597 597
598 bool SlowIs(TypeImpl* that); 598 bool SlowIs(TypeImpl* that);
599 bool SemanticIs(TypeImpl* that); 599 bool SemanticIs(TypeImpl* that);
600 600
601 struct Limits { 601 struct Limits {
602 double min; 602 double min;
603 double max; 603 double max;
604 Limits(double min, double max) : min(min), max(max) {} 604 Limits(double min, double max) : min(min), max(max) {}
605 explicit Limits(RangeType* range) : min(range->Min()), max(range->Max()) {} 605 explicit Limits(RangeType* range) : min(range->Min()), max(range->Max()) {}
606 static Limits Empty(Region* region) { return Limits(1, 0); } 606 bool IsEmpty();
607 static Limits Empty() { return Limits(1, 0); }
608 static Limits Intersect(Limits lhs, Limits rhs);
609 static Limits Union(Limits lhs, Limits rhs);
607 }; 610 };
608 611
609 static bool IsEmpty(Limits lim);
610 static Limits Intersect(Limits lhs, Limits rhs);
611 static Limits Union(Limits lhs, Limits rhs);
612 static bool Overlap(RangeType* lhs, RangeType* rhs); 612 static bool Overlap(RangeType* lhs, RangeType* rhs);
613 static bool Contains(RangeType* lhs, RangeType* rhs); 613 static bool Contains(RangeType* lhs, RangeType* rhs);
614 static bool Contains(RangeType* range, ConstantType* constant); 614 static bool Contains(RangeType* range, ConstantType* constant);
615 static bool Contains(RangeType* range, i::Object* val); 615 static bool Contains(RangeType* range, i::Object* val);
616 616
617 static int UpdateRange( 617 static int UpdateRange(
618 RangeHandle type, UnionHandle result, int size, Region* region); 618 RangeHandle type, UnionHandle result, int size, Region* region);
619 619
620 static Limits IntersectRangeAndBitset(TypeHandle range, TypeHandle bits, 620 static Limits IntersectRangeAndBitset(TypeHandle range, TypeHandle bits,
621 Region* region); 621 Region* region);
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 bool Narrows(BoundsImpl that) { 1167 bool Narrows(BoundsImpl that) {
1168 return that.lower->Is(this->lower) && this->upper->Is(that.upper); 1168 return that.lower->Is(this->lower) && this->upper->Is(that.upper);
1169 } 1169 }
1170 }; 1170 };
1171 1171
1172 typedef BoundsImpl<ZoneTypeConfig> Bounds; 1172 typedef BoundsImpl<ZoneTypeConfig> Bounds;
1173 1173
1174 } } // namespace v8::internal 1174 } } // namespace v8::internal
1175 1175
1176 #endif // V8_TYPES_H_ 1176 #endif // V8_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698