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

Side by Side Diff: src/objects.h

Issue 2362083002: [modules] Do basic linking. (Closed)
Patch Set: Rename files because the presubmit tool is so fragile. Created 4 years, 3 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/messages.h ('k') | src/objects.cc » ('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 7930 matching lines...) Expand 10 before | Expand all | Expand 10 after
7941 // [[Evaluated]]: Whether this module has been evaluated. Modules 7941 // [[Evaluated]]: Whether this module has been evaluated. Modules
7942 // are only evaluated a single time. 7942 // are only evaluated a single time.
7943 DECL_BOOLEAN_ACCESSORS(evaluated) 7943 DECL_BOOLEAN_ACCESSORS(evaluated)
7944 7944
7945 // Storage for [[Evaluated]] 7945 // Storage for [[Evaluated]]
7946 DECL_INT_ACCESSORS(flags) 7946 DECL_INT_ACCESSORS(flags)
7947 7947
7948 // Embedder-specified data 7948 // Embedder-specified data
7949 DECL_ACCESSORS(embedder_data, Object) 7949 DECL_ACCESSORS(embedder_data, Object)
7950 7950
7951 // Get the ModuleInfo associated with the code.
7952 inline ModuleInfo* info() const;
7953
7951 static void CreateExport(Handle<Module> module, Handle<FixedArray> names); 7954 static void CreateExport(Handle<Module> module, Handle<FixedArray> names);
7952 static Handle<Object> LoadExport(Handle<Module> module, Handle<String> name); 7955 static Handle<Object> LoadExport(Handle<Module> module, Handle<String> name);
7953 static void StoreExport(Handle<Module> module, Handle<String> name, 7956 static void StoreExport(Handle<Module> module, Handle<String> name,
7954 Handle<Object> value); 7957 Handle<Object> value);
7955 7958
7959 static void CreateIndirectExport(Handle<Module> module, Handle<String> name,
7960 Handle<ModuleInfoEntry> entry);
7961
7956 static Handle<Object> LoadImport(Handle<Module> module, Handle<String> name, 7962 static Handle<Object> LoadImport(Handle<Module> module, Handle<String> name,
7957 int module_request); 7963 int module_request);
7958 7964
7965 static MUST_USE_RESULT MaybeHandle<Cell> ResolveImport(Handle<Module> module,
7966 Handle<String> name,
7967 int module_request);
7968 static MUST_USE_RESULT MaybeHandle<Cell> ResolveExport(Handle<Module> module,
7969 Handle<String> name);
7970
7959 static const int kCodeOffset = HeapObject::kHeaderSize; 7971 static const int kCodeOffset = HeapObject::kHeaderSize;
7960 static const int kExportsOffset = kCodeOffset + kPointerSize; 7972 static const int kExportsOffset = kCodeOffset + kPointerSize;
7961 static const int kRequestedModulesOffset = kExportsOffset + kPointerSize; 7973 static const int kRequestedModulesOffset = kExportsOffset + kPointerSize;
7962 static const int kFlagsOffset = kRequestedModulesOffset + kPointerSize; 7974 static const int kFlagsOffset = kRequestedModulesOffset + kPointerSize;
7963 static const int kEmbedderDataOffset = kFlagsOffset + kPointerSize; 7975 static const int kEmbedderDataOffset = kFlagsOffset + kPointerSize;
7964 static const int kSize = kEmbedderDataOffset + kPointerSize; 7976 static const int kSize = kEmbedderDataOffset + kPointerSize;
7965 7977
7966 private: 7978 private:
7967 enum { kEvaluatedBit }; 7979 enum { kEvaluatedBit };
7968 7980
(...skipping 3436 matching lines...) Expand 10 before | Expand all | Expand 10 after
11405 } 11417 }
11406 return value; 11418 return value;
11407 } 11419 }
11408 }; 11420 };
11409 11421
11410 11422
11411 } // NOLINT, false-positive due to second-order macros. 11423 } // NOLINT, false-positive due to second-order macros.
11412 } // NOLINT, false-positive due to second-order macros. 11424 } // NOLINT, false-positive due to second-order macros.
11413 11425
11414 #endif // V8_OBJECTS_H_ 11426 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698