| 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 8030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8041 static const int kExportsOffset = kCodeOffset + kPointerSize; | 8041 static const int kExportsOffset = kCodeOffset + kPointerSize; |
| 8042 static const int kRegularExportsOffset = kExportsOffset + kPointerSize; | 8042 static const int kRegularExportsOffset = kExportsOffset + kPointerSize; |
| 8043 static const int kRegularImportsOffset = kRegularExportsOffset + kPointerSize; | 8043 static const int kRegularImportsOffset = kRegularExportsOffset + kPointerSize; |
| 8044 static const int kHashOffset = kRegularImportsOffset + kPointerSize; | 8044 static const int kHashOffset = kRegularImportsOffset + kPointerSize; |
| 8045 static const int kModuleNamespaceOffset = kHashOffset + kPointerSize; | 8045 static const int kModuleNamespaceOffset = kHashOffset + kPointerSize; |
| 8046 static const int kRequestedModulesOffset = | 8046 static const int kRequestedModulesOffset = |
| 8047 kModuleNamespaceOffset + kPointerSize; | 8047 kModuleNamespaceOffset + kPointerSize; |
| 8048 static const int kSize = kRequestedModulesOffset + kPointerSize; | 8048 static const int kSize = kRequestedModulesOffset + kPointerSize; |
| 8049 | 8049 |
| 8050 private: | 8050 private: |
| 8051 enum { kEvaluatedBit }; | |
| 8052 | |
| 8053 static void CreateExport(Handle<Module> module, int cell_index, | 8051 static void CreateExport(Handle<Module> module, int cell_index, |
| 8054 Handle<FixedArray> names); | 8052 Handle<FixedArray> names); |
| 8055 static void CreateIndirectExport(Handle<Module> module, Handle<String> name, | 8053 static void CreateIndirectExport(Handle<Module> module, Handle<String> name, |
| 8056 Handle<ModuleInfoEntry> entry); | 8054 Handle<ModuleInfoEntry> entry); |
| 8057 | 8055 |
| 8058 // Get the namespace object for [module]. If it doesn't exist yet, it is | 8056 // Get the namespace object for [module]. If it doesn't exist yet, it is |
| 8059 // created. | 8057 // created. |
| 8060 static Handle<JSModuleNamespace> GetModuleNamespace(Handle<Module> module); | 8058 static Handle<JSModuleNamespace> GetModuleNamespace(Handle<Module> module); |
| 8061 | 8059 |
| 8062 // The [must_resolve] argument indicates whether or not an exception should be | 8060 // The [must_resolve] argument indicates whether or not an exception should be |
| (...skipping 3639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11702 } | 11700 } |
| 11703 }; | 11701 }; |
| 11704 | 11702 |
| 11705 | 11703 |
| 11706 } // NOLINT, false-positive due to second-order macros. | 11704 } // NOLINT, false-positive due to second-order macros. |
| 11707 } // NOLINT, false-positive due to second-order macros. | 11705 } // NOLINT, false-positive due to second-order macros. |
| 11708 | 11706 |
| 11709 #include "src/objects/object-macros-undef.h" | 11707 #include "src/objects/object-macros-undef.h" |
| 11710 | 11708 |
| 11711 #endif // V8_OBJECTS_H_ | 11709 #endif // V8_OBJECTS_H_ |
| OLD | NEW |