OLD | NEW |
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/ast/ast-types.h" |
9 #include "src/handles.h" | |
10 #include "src/objects.h" | 9 #include "src/objects.h" |
11 #include "src/ostreams.h" | 10 #include "src/ostreams.h" |
12 | 11 |
13 namespace v8 { | 12 namespace v8 { |
14 namespace internal { | 13 namespace internal { |
15 | 14 |
| 15 template <typename T> |
| 16 class Handle; |
| 17 |
16 class FieldType : public Object { | 18 class FieldType : public Object { |
17 public: | 19 public: |
18 static FieldType* None(); | 20 static FieldType* None(); |
19 static FieldType* Any(); | 21 static FieldType* Any(); |
20 static Handle<FieldType> None(Isolate* isolate); | 22 static Handle<FieldType> None(Isolate* isolate); |
21 static Handle<FieldType> Any(Isolate* isolate); | 23 static Handle<FieldType> Any(Isolate* isolate); |
22 static FieldType* Class(i::Map* map); | 24 static FieldType* Class(i::Map* map); |
23 static Handle<FieldType> Class(i::Handle<i::Map> map, Isolate* isolate); | 25 static Handle<FieldType> Class(i::Handle<i::Map> map, Isolate* isolate); |
24 static FieldType* cast(Object* object); | 26 static FieldType* cast(Object* object); |
25 | 27 |
(...skipping 15 matching lines...) Expand all Loading... |
41 bool NowIs(Handle<FieldType> other); | 43 bool NowIs(Handle<FieldType> other); |
42 AstType* Convert(Zone* zone); | 44 AstType* Convert(Zone* zone); |
43 | 45 |
44 void PrintTo(std::ostream& os); | 46 void PrintTo(std::ostream& os); |
45 }; | 47 }; |
46 | 48 |
47 } // namespace internal | 49 } // namespace internal |
48 } // namespace v8 | 50 } // namespace v8 |
49 | 51 |
50 #endif // V8_FIELD_TYPE_H_ | 52 #endif // V8_FIELD_TYPE_H_ |
OLD | NEW |