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

Side by Side Diff: src/objects.h

Issue 2827733002: [modules] Allow resolve-callback to signal failure. (Closed)
Patch Set: Cleanup. Created 3 years, 8 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 | « include/v8.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 6706 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698