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 4554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4565 kModuleRequestIndex, | 4565 kModuleRequestIndex, |
4566 kLength | 4566 kLength |
4567 }; | 4567 }; |
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* special_exports() const; | 4576 inline FixedArray* special_exports() const; |
4576 inline FixedArray* regular_exports() const; | 4577 inline FixedArray* regular_exports() const; |
4577 | 4578 |
4578 #ifdef DEBUG | 4579 #ifdef DEBUG |
4579 inline bool Equals(ModuleInfo* other) const; | 4580 inline bool Equals(ModuleInfo* other) const; |
4580 #endif | 4581 #endif |
4581 | 4582 |
4582 private: | 4583 private: |
4583 friend class Factory; | 4584 friend class Factory; |
4584 enum { kSpecialExportsIndex, kRegularExportsIndex, kLength }; | 4585 enum { |
| 4586 kModuleRequestsIndex, |
| 4587 kSpecialExportsIndex, |
| 4588 kRegularExportsIndex, |
| 4589 kLength |
| 4590 }; |
4585 }; | 4591 }; |
4586 | 4592 |
4587 // The cache for maps used by normalized (dictionary mode) objects. | 4593 // The cache for maps used by normalized (dictionary mode) objects. |
4588 // Such maps do not have property descriptors, so a typical program | 4594 // Such maps do not have property descriptors, so a typical program |
4589 // needs very limited number of distinct normalized maps. | 4595 // needs very limited number of distinct normalized maps. |
4590 class NormalizedMapCache: public FixedArray { | 4596 class NormalizedMapCache: public FixedArray { |
4591 public: | 4597 public: |
4592 static Handle<NormalizedMapCache> New(Isolate* isolate); | 4598 static Handle<NormalizedMapCache> New(Isolate* isolate); |
4593 | 4599 |
4594 MUST_USE_RESULT MaybeHandle<Map> Get(Handle<Map> fast_map, | 4600 MUST_USE_RESULT MaybeHandle<Map> Get(Handle<Map> fast_map, |
(...skipping 6710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11305 } | 11311 } |
11306 return value; | 11312 return value; |
11307 } | 11313 } |
11308 }; | 11314 }; |
11309 | 11315 |
11310 | 11316 |
11311 } // NOLINT, false-positive due to second-order macros. | 11317 } // NOLINT, false-positive due to second-order macros. |
11312 } // NOLINT, false-positive due to second-order macros. | 11318 } // NOLINT, false-positive due to second-order macros. |
11313 | 11319 |
11314 #endif // V8_OBJECTS_H_ | 11320 #endif // V8_OBJECTS_H_ |
OLD | NEW |