| 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 6706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6717 DECL_ACCESSORS(requested_modules, FixedArray) | 6717 DECL_ACCESSORS(requested_modules, FixedArray) |
| 6718 | 6718 |
| 6719 // Get the ModuleInfo associated with the code. | 6719 // Get the ModuleInfo associated with the code. |
| 6720 inline ModuleInfo* info() const; | 6720 inline ModuleInfo* info() const; |
| 6721 | 6721 |
| 6722 inline bool instantiated() const; | 6722 inline bool instantiated() const; |
| 6723 inline bool evaluated() const; | 6723 inline bool evaluated() const; |
| 6724 | 6724 |
| 6725 // Implementation of spec operation ModuleDeclarationInstantiation. | 6725 // Implementation of spec operation ModuleDeclarationInstantiation. |
| 6726 // Returns false if an exception occurred during instantiation, true | 6726 // Returns false if an exception occurred during instantiation, true |
| 6727 // otherwise. | 6727 // otherwise. (In the case where the callback throws an exception, that |
| 6728 // exception is propagated.) |
| 6728 static MUST_USE_RESULT bool Instantiate(Handle<Module> module, | 6729 static MUST_USE_RESULT bool Instantiate(Handle<Module> module, |
| 6729 v8::Local<v8::Context> context, | 6730 v8::Local<v8::Context> context, |
| 6730 v8::Module::ResolveCallback callback); | 6731 v8::Module::ResolveCallback callback); |
| 6731 | 6732 |
| 6732 // Implementation of spec operation ModuleEvaluation. | 6733 // Implementation of spec operation ModuleEvaluation. |
| 6733 static MUST_USE_RESULT MaybeHandle<Object> Evaluate(Handle<Module> module); | 6734 static MUST_USE_RESULT MaybeHandle<Object> Evaluate(Handle<Module> module); |
| 6734 | 6735 |
| 6735 static Handle<Object> LoadVariable(Handle<Module> module, int cell_index); | 6736 static Handle<Object> LoadVariable(Handle<Module> module, int cell_index); |
| 6736 static void StoreVariable(Handle<Module> module, int cell_index, | 6737 static void StoreVariable(Handle<Module> module, int cell_index, |
| 6737 Handle<Object> value); | 6738 Handle<Object> value); |
| (...skipping 3560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10298 } | 10299 } |
| 10299 }; | 10300 }; |
| 10300 | 10301 |
| 10301 | 10302 |
| 10302 } // NOLINT, false-positive due to second-order macros. | 10303 } // NOLINT, false-positive due to second-order macros. |
| 10303 } // NOLINT, false-positive due to second-order macros. | 10304 } // NOLINT, false-positive due to second-order macros. |
| 10304 | 10305 |
| 10305 #include "src/objects/object-macros-undef.h" | 10306 #include "src/objects/object-macros-undef.h" |
| 10306 | 10307 |
| 10307 #endif // V8_OBJECTS_H_ | 10308 #endif // V8_OBJECTS_H_ |
| OLD | NEW |