| 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_AST_MODULES_H_ | 5 #ifndef V8_AST_MODULES_H_ |
| 6 #define V8_AST_MODULES_H_ | 6 #define V8_AST_MODULES_H_ |
| 7 | 7 |
| 8 #include "src/zone.h" | 8 #include "src/zone.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // --------------------------------------------------------------------------- | 103 // --------------------------------------------------------------------------- |
| 104 // Implementation. | 104 // Implementation. |
| 105 private: | 105 private: |
| 106 explicit ModuleDescriptor(Zone* zone) | 106 explicit ModuleDescriptor(Zone* zone) |
| 107 : frozen_(false), | 107 : frozen_(false), |
| 108 exports_(NULL), | 108 exports_(NULL), |
| 109 requested_modules_(1, zone), | 109 requested_modules_(1, zone), |
| 110 index_(-1) {} | 110 index_(-1) {} |
| 111 | 111 |
| 112 bool frozen_; | 112 bool frozen_; |
| 113 ZoneHashMap* exports_; // Module exports and their types (allocated lazily) | 113 ZoneHashMap* exports_; // Module exports and their types (allocated lazily) |
| 114 ZoneList<const AstRawString*> requested_modules_; | 114 ZoneList<const AstRawString*> requested_modules_; |
| 115 int index_; | 115 int index_; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace internal | 118 } // namespace internal |
| 119 } // namespace v8 | 119 } // namespace v8 |
| 120 | 120 |
| 121 #endif // V8_AST_MODULES_H_ | 121 #endif // V8_AST_MODULES_H_ |
| OLD | NEW |