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

Unified Diff: src/crankshaft/hydrogen-types.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/crankshaft/hydrogen-types.h ('k') | src/crankshaft/typing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen-types.cc
diff --git a/src/crankshaft/hydrogen-types.cc b/src/crankshaft/hydrogen-types.cc
index 20d50d897c72de5981a57388f8024144792d8e56..684e6ad09c1af0722d9502ad9f8d3eb2c2cfef4c 100644
--- a/src/crankshaft/hydrogen-types.cc
+++ b/src/crankshaft/hydrogen-types.cc
@@ -12,17 +12,17 @@ namespace v8 {
namespace internal {
// static
-HType HType::FromType(Type* type) {
- if (Type::Any()->Is(type)) return HType::Any();
+HType HType::FromType(AstType* type) {
+ if (AstType::Any()->Is(type)) return HType::Any();
if (!type->IsInhabited()) return HType::None();
- if (type->Is(Type::SignedSmall())) return HType::Smi();
- if (type->Is(Type::Number())) return HType::TaggedNumber();
- if (type->Is(Type::Null())) return HType::Null();
- if (type->Is(Type::String())) return HType::String();
- if (type->Is(Type::Boolean())) return HType::Boolean();
- if (type->Is(Type::Undefined())) return HType::Undefined();
- if (type->Is(Type::Object())) return HType::JSObject();
- if (type->Is(Type::DetectableReceiver())) return HType::JSReceiver();
+ if (type->Is(AstType::SignedSmall())) return HType::Smi();
+ if (type->Is(AstType::Number())) return HType::TaggedNumber();
+ if (type->Is(AstType::Null())) return HType::Null();
+ if (type->Is(AstType::String())) return HType::String();
+ if (type->Is(AstType::Boolean())) return HType::Boolean();
+ if (type->Is(AstType::Undefined())) return HType::Undefined();
+ if (type->Is(AstType::Object())) return HType::JSObject();
+ if (type->Is(AstType::DetectableReceiver())) return HType::JSReceiver();
return HType::Tagged();
}
« no previous file with comments | « src/crankshaft/hydrogen-types.h ('k') | src/crankshaft/typing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698