| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 4557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4568 }; | 4568 }; |
| 4569 | 4569 |
| 4570 // ModuleInfo is to ModuleDescriptor what ScopeInfo is to Scope. | 4570 // ModuleInfo is to ModuleDescriptor what ScopeInfo is to Scope. |
| 4571 class ModuleInfo : public FixedArray { | 4571 class ModuleInfo : public FixedArray { |
| 4572 public: | 4572 public: |
| 4573 DECLARE_CAST(ModuleInfo) | 4573 DECLARE_CAST(ModuleInfo) |
| 4574 static Handle<ModuleInfo> New(Isolate* isolate, ModuleDescriptor* descr); | 4574 static Handle<ModuleInfo> New(Isolate* isolate, ModuleDescriptor* descr); |
| 4575 inline FixedArray* module_requests() const; | 4575 inline FixedArray* module_requests() const; |
| 4576 inline FixedArray* special_exports() const; | 4576 inline FixedArray* special_exports() const; |
| 4577 inline FixedArray* regular_exports() const; | 4577 inline FixedArray* regular_exports() const; |
| 4578 inline FixedArray* special_imports() const; |
| 4579 inline FixedArray* regular_imports() const; |
| 4578 | 4580 |
| 4579 #ifdef DEBUG | 4581 #ifdef DEBUG |
| 4580 inline bool Equals(ModuleInfo* other) const; | 4582 inline bool Equals(ModuleInfo* other) const; |
| 4581 #endif | 4583 #endif |
| 4582 | 4584 |
| 4583 private: | 4585 private: |
| 4584 friend class Factory; | 4586 friend class Factory; |
| 4585 enum { | 4587 enum { |
| 4586 kModuleRequestsIndex, | 4588 kModuleRequestsIndex, |
| 4587 kSpecialExportsIndex, | 4589 kSpecialExportsIndex, |
| 4588 kRegularExportsIndex, | 4590 kRegularExportsIndex, |
| 4591 kSpecialImportsIndex, |
| 4592 kRegularImportsIndex, |
| 4589 kLength | 4593 kLength |
| 4590 }; | 4594 }; |
| 4591 }; | 4595 }; |
| 4592 | 4596 |
| 4593 // The cache for maps used by normalized (dictionary mode) objects. | 4597 // The cache for maps used by normalized (dictionary mode) objects. |
| 4594 // Such maps do not have property descriptors, so a typical program | 4598 // Such maps do not have property descriptors, so a typical program |
| 4595 // needs very limited number of distinct normalized maps. | 4599 // needs very limited number of distinct normalized maps. |
| 4596 class NormalizedMapCache: public FixedArray { | 4600 class NormalizedMapCache: public FixedArray { |
| 4597 public: | 4601 public: |
| 4598 static Handle<NormalizedMapCache> New(Isolate* isolate); | 4602 static Handle<NormalizedMapCache> New(Isolate* isolate); |
| (...skipping 6723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11322 } | 11326 } |
| 11323 return value; | 11327 return value; |
| 11324 } | 11328 } |
| 11325 }; | 11329 }; |
| 11326 | 11330 |
| 11327 | 11331 |
| 11328 } // NOLINT, false-positive due to second-order macros. | 11332 } // NOLINT, false-positive due to second-order macros. |
| 11329 } // NOLINT, false-positive due to second-order macros. | 11333 } // NOLINT, false-positive due to second-order macros. |
| 11330 | 11334 |
| 11331 #endif // V8_OBJECTS_H_ | 11335 #endif // V8_OBJECTS_H_ |
| OLD | NEW |