Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1653)

Side by Side Diff: src/objects.h

Issue 2368613002: [modules] Simplify treatment of empty imports. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ast/scopes.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4569 matching lines...) Expand 10 before | Expand all | Expand 10 after
4580 4580
4581 // ModuleInfo is to ModuleDescriptor what ScopeInfo is to Scope. 4581 // ModuleInfo is to ModuleDescriptor what ScopeInfo is to Scope.
4582 class ModuleInfo : public FixedArray { 4582 class ModuleInfo : public FixedArray {
4583 public: 4583 public:
4584 DECLARE_CAST(ModuleInfo) 4584 DECLARE_CAST(ModuleInfo)
4585 static Handle<ModuleInfo> New(Isolate* isolate, Zone* zone, 4585 static Handle<ModuleInfo> New(Isolate* isolate, Zone* zone,
4586 ModuleDescriptor* descr); 4586 ModuleDescriptor* descr);
4587 inline FixedArray* module_requests() const; 4587 inline FixedArray* module_requests() const;
4588 inline FixedArray* special_exports() const; 4588 inline FixedArray* special_exports() const;
4589 inline FixedArray* regular_exports() const; 4589 inline FixedArray* regular_exports() const;
4590 inline FixedArray* special_imports() const; 4590 inline FixedArray* namespace_imports() const;
4591 inline FixedArray* regular_imports() const; 4591 inline FixedArray* regular_imports() const;
4592 4592
4593 #ifdef DEBUG 4593 #ifdef DEBUG
4594 inline bool Equals(ModuleInfo* other) const; 4594 inline bool Equals(ModuleInfo* other) const;
4595 #endif 4595 #endif
4596 4596
4597 private: 4597 private:
4598 friend class Factory; 4598 friend class Factory;
4599 enum { 4599 enum {
4600 kModuleRequestsIndex, 4600 kModuleRequestsIndex,
4601 kSpecialExportsIndex, 4601 kSpecialExportsIndex,
4602 kRegularExportsIndex, 4602 kRegularExportsIndex,
4603 kSpecialImportsIndex, 4603 kNamespaceImportsIndex,
4604 kRegularImportsIndex, 4604 kRegularImportsIndex,
4605 kLength 4605 kLength
4606 }; 4606 };
4607 }; 4607 };
4608 4608
4609 // The cache for maps used by normalized (dictionary mode) objects. 4609 // The cache for maps used by normalized (dictionary mode) objects.
4610 // Such maps do not have property descriptors, so a typical program 4610 // Such maps do not have property descriptors, so a typical program
4611 // needs very limited number of distinct normalized maps. 4611 // needs very limited number of distinct normalized maps.
4612 class NormalizedMapCache: public FixedArray { 4612 class NormalizedMapCache: public FixedArray {
4613 public: 4613 public:
(...skipping 6803 matching lines...) Expand 10 before | Expand all | Expand 10 after
11417 } 11417 }
11418 return value; 11418 return value;
11419 } 11419 }
11420 }; 11420 };
11421 11421
11422 11422
11423 } // NOLINT, false-positive due to second-order macros. 11423 } // NOLINT, false-positive due to second-order macros.
11424 } // NOLINT, false-positive due to second-order macros. 11424 } // NOLINT, false-positive due to second-order macros.
11425 11425
11426 #endif // V8_OBJECTS_H_ 11426 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698