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

Side by Side Diff: src/types.h

Issue 2302283002: Forking the type system between Crankshaft & Turbofan. (Closed)
Patch Set: Nits. 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 unified diff | Download patch
« no previous file with comments | « src/type-info.cc ('k') | src/v8.gyp » ('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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 Type* upper = Type::Intersect(b.upper, t, zone); 973 Type* upper = Type::Intersect(b.upper, t, zone);
974 // Lower bounds are considered approximate, correct as necessary. 974 // Lower bounds are considered approximate, correct as necessary.
975 if (!lower->Is(upper)) lower = upper; 975 if (!lower->Is(upper)) lower = upper;
976 return Bounds(lower, upper); 976 return Bounds(lower, upper);
977 } 977 }
978 978
979 bool Narrows(Bounds that) { 979 bool Narrows(Bounds that) {
980 return that.lower->Is(this->lower) && this->upper->Is(that.upper); 980 return that.lower->Is(this->lower) && this->upper->Is(that.upper);
981 } 981 }
982 }; 982 };
983
984 } // namespace internal 983 } // namespace internal
985 } // namespace v8 984 } // namespace v8
986 985
987 #endif // V8_TYPES_H_ 986 #endif // V8_TYPES_H_
OLDNEW
« no previous file with comments | « src/type-info.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698