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

Side by Side Diff: src/objects.h

Issue 2376693003: [modules] Move Evaluate from api.cc into internal Module implementation (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/api.cc ('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 7949 matching lines...) Expand 10 before | Expand all | Expand 10 after
7960 inline uint32_t Hash() const; 7960 inline uint32_t Hash() const;
7961 7961
7962 // Implementation of spec operation ModuleDeclarationInstantiation. 7962 // Implementation of spec operation ModuleDeclarationInstantiation.
7963 // Returns false if an exception occurred during instantiation, true 7963 // Returns false if an exception occurred during instantiation, true
7964 // otherwise. 7964 // otherwise.
7965 static MUST_USE_RESULT bool Instantiate(Handle<Module> module, 7965 static MUST_USE_RESULT bool Instantiate(Handle<Module> module,
7966 v8::Local<v8::Context> context, 7966 v8::Local<v8::Context> context,
7967 v8::Module::ResolveCallback callback, 7967 v8::Module::ResolveCallback callback,
7968 v8::Local<v8::Value> callback_data); 7968 v8::Local<v8::Value> callback_data);
7969 7969
7970 // Implementation of spec operation ModuleEvaluation.
7971 static MUST_USE_RESULT MaybeHandle<Object> Evaluate(Handle<Module> module);
7972
7970 static Handle<Object> LoadExport(Handle<Module> module, Handle<String> name); 7973 static Handle<Object> LoadExport(Handle<Module> module, Handle<String> name);
7971 static void StoreExport(Handle<Module> module, Handle<String> name, 7974 static void StoreExport(Handle<Module> module, Handle<String> name,
7972 Handle<Object> value); 7975 Handle<Object> value);
7973 7976
7974 static Handle<Object> LoadImport(Handle<Module> module, Handle<String> name, 7977 static Handle<Object> LoadImport(Handle<Module> module, Handle<String> name,
7975 int module_request); 7978 int module_request);
7976 7979
7977 static const int kCodeOffset = HeapObject::kHeaderSize; 7980 static const int kCodeOffset = HeapObject::kHeaderSize;
7978 static const int kExportsOffset = kCodeOffset + kPointerSize; 7981 static const int kExportsOffset = kCodeOffset + kPointerSize;
7979 static const int kRequestedModulesOffset = kExportsOffset + kPointerSize; 7982 static const int kRequestedModulesOffset = kExportsOffset + kPointerSize;
(...skipping 3469 matching lines...) Expand 10 before | Expand all | Expand 10 after
11449 } 11452 }
11450 return value; 11453 return value;
11451 } 11454 }
11452 }; 11455 };
11453 11456
11454 11457
11455 } // NOLINT, false-positive due to second-order macros. 11458 } // NOLINT, false-positive due to second-order macros.
11456 } // NOLINT, false-positive due to second-order macros. 11459 } // NOLINT, false-positive due to second-order macros.
11457 11460
11458 #endif // V8_OBJECTS_H_ 11461 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698