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

Unified Diff: src/field-type.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/field-type.h ('k') | src/ic/ic-state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/field-type.cc
diff --git a/src/field-type.cc b/src/field-type.cc
index 2e4cbfbedde2935d245bd7c47d3e0305211d9eda..b3b24e2c14cd11569650360c49d246aeca828383 100644
--- a/src/field-type.cc
+++ b/src/field-type.cc
@@ -4,9 +4,9 @@
#include "src/field-type.h"
+#include "src/ast/ast-types.h"
#include "src/handles-inl.h"
#include "src/ostreams.h"
-#include "src/types.h"
namespace v8 {
namespace internal {
@@ -71,11 +71,11 @@ bool FieldType::NowIs(FieldType* other) {
bool FieldType::NowIs(Handle<FieldType> other) { return NowIs(*other); }
-Type* FieldType::Convert(Zone* zone) {
- if (IsAny()) return Type::NonInternal();
- if (IsNone()) return Type::None();
+AstType* FieldType::Convert(Zone* zone) {
+ if (IsAny()) return AstType::NonInternal();
+ if (IsNone()) return AstType::None();
DCHECK(IsClass());
- return Type::Class(AsClass(), zone);
+ return AstType::Class(AsClass(), zone);
}
void FieldType::PrintTo(std::ostream& os) {
« no previous file with comments | « src/field-type.h ('k') | src/ic/ic-state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698