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

Side by Side Diff: src/objects.h

Issue 2360063002: [modules] Basic support of import statements. (Closed)
Patch Set: . 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
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 7928 matching lines...) Expand 10 before | Expand all | Expand 10 after
7939 DECL_ACCESSORS(requested_modules, FixedArray) 7939 DECL_ACCESSORS(requested_modules, FixedArray)
7940 7940
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 static void CreateExport(Handle<Module> module, Handle<FixedArray> names); 7948 static void CreateExport(Handle<Module> module, Handle<FixedArray> names);
7949 static Handle<Object> LoadExport(Handle<Module> module, Handle<String> name);
7949 static void StoreExport(Handle<Module> module, Handle<String> name, 7950 static void StoreExport(Handle<Module> module, Handle<String> name,
7950 Handle<Object> value); 7951 Handle<Object> value);
7951 static Handle<Object> LoadExport(Handle<Module> module, Handle<String> name); 7952
7953 static Handle<Object> LoadImport(Handle<Module> module, Handle<String> name,
7954 int module_request);
7952 7955
7953 static const int kCodeOffset = HeapObject::kHeaderSize; 7956 static const int kCodeOffset = HeapObject::kHeaderSize;
7954 static const int kExportsOffset = kCodeOffset + kPointerSize; 7957 static const int kExportsOffset = kCodeOffset + kPointerSize;
7955 static const int kRequestedModulesOffset = kExportsOffset + kPointerSize; 7958 static const int kRequestedModulesOffset = kExportsOffset + kPointerSize;
7956 static const int kFlagsOffset = kRequestedModulesOffset + kPointerSize; 7959 static const int kFlagsOffset = kRequestedModulesOffset + kPointerSize;
7957 static const int kSize = kFlagsOffset + kPointerSize; 7960 static const int kSize = kFlagsOffset + kPointerSize;
7958 7961
7959 private: 7962 private:
7960 enum { kEvaluatedBit }; 7963 enum { kEvaluatedBit };
7961 7964
(...skipping 3436 matching lines...) Expand 10 before | Expand all | Expand 10 after
11398 } 11401 }
11399 return value; 11402 return value;
11400 } 11403 }
11401 }; 11404 };
11402 11405
11403 11406
11404 } // NOLINT, false-positive due to second-order macros. 11407 } // NOLINT, false-positive due to second-order macros.
11405 } // NOLINT, false-positive due to second-order macros. 11408 } // NOLINT, false-positive due to second-order macros.
11406 11409
11407 #endif // V8_OBJECTS_H_ 11410 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698