OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_INTERFACE_H_ | 5 #ifndef V8_INTERFACE_H_ |
6 #define V8_INTERFACE_H_ | 6 #define V8_INTERFACE_H_ |
7 | 7 |
8 #include "zone-inl.h" // For operator new. | 8 #include "src/zone-inl.h" // For operator new. |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 | 13 |
14 // This class implements the following abstract grammar of interfaces | 14 // This class implements the following abstract grammar of interfaces |
15 // (i.e. module types): | 15 // (i.e. module types): |
16 // interface ::= UNDETERMINED | VALUE | CONST | MODULE(exports) | 16 // interface ::= UNDETERMINED | VALUE | CONST | MODULE(exports) |
17 // exports ::= {name : interface, ...} | 17 // exports ::= {name : interface, ...} |
18 // A frozen type is one that is fully determined. Unification does not | 18 // A frozen type is one that is fully determined. Unification does not |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 } | 208 } |
209 | 209 |
210 void DoAdd(void* name, uint32_t hash, Interface* interface, Zone* zone, | 210 void DoAdd(void* name, uint32_t hash, Interface* interface, Zone* zone, |
211 bool* ok); | 211 bool* ok); |
212 void DoUnify(Interface* that, bool* ok, Zone* zone); | 212 void DoUnify(Interface* that, bool* ok, Zone* zone); |
213 }; | 213 }; |
214 | 214 |
215 } } // namespace v8::internal | 215 } } // namespace v8::internal |
216 | 216 |
217 #endif // V8_INTERFACE_H_ | 217 #endif // V8_INTERFACE_H_ |
OLD | NEW |