| 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 7949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |