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

Side by Side Diff: src/field-type.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/effects.h ('k') | src/field-type.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_FIELD_TYPE_H_ 5 #ifndef V8_FIELD_TYPE_H_
6 #define V8_FIELD_TYPE_H_ 6 #define V8_FIELD_TYPE_H_
7 7
8 #include "src/ast/ast-types.h"
8 #include "src/handles.h" 9 #include "src/handles.h"
9 #include "src/objects.h" 10 #include "src/objects.h"
10 #include "src/ostreams.h" 11 #include "src/ostreams.h"
11 12
12 namespace v8 { 13 namespace v8 {
13 namespace internal { 14 namespace internal {
14 15
15 class FieldType : public Object { 16 class FieldType : public Object {
16 public: 17 public:
17 static FieldType* None(); 18 static FieldType* None();
(...skipping 13 matching lines...) Expand all
31 32
32 bool NowContains(Handle<Object> value) { return NowContains(*value); } 33 bool NowContains(Handle<Object> value) { return NowContains(*value); }
33 34
34 bool IsClass(); 35 bool IsClass();
35 Handle<i::Map> AsClass(); 36 Handle<i::Map> AsClass();
36 bool IsNone() { return this == None(); } 37 bool IsNone() { return this == None(); }
37 bool IsAny() { return this == Any(); } 38 bool IsAny() { return this == Any(); }
38 bool NowStable(); 39 bool NowStable();
39 bool NowIs(FieldType* other); 40 bool NowIs(FieldType* other);
40 bool NowIs(Handle<FieldType> other); 41 bool NowIs(Handle<FieldType> other);
41 Type* Convert(Zone* zone); 42 AstType* Convert(Zone* zone);
42 43
43 void PrintTo(std::ostream& os); 44 void PrintTo(std::ostream& os);
44 }; 45 };
45 46
46 } // namespace internal 47 } // namespace internal
47 } // namespace v8 48 } // namespace v8
48 49
49 #endif // V8_FIELD_TYPE_H_ 50 #endif // V8_FIELD_TYPE_H_
OLDNEW
« no previous file with comments | « src/effects.h ('k') | src/field-type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698