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

Side by Side Diff: include/v8.h

Issue 2393303002: [modules] Store Module metadata in per-Context EmbedderData (Closed)
Patch Set: Rebased 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 | « no previous file | src/api.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 * Returns the number of modules requested by this module. 1099 * Returns the number of modules requested by this module.
1100 */ 1100 */
1101 int GetModuleRequestsLength() const; 1101 int GetModuleRequestsLength() const;
1102 1102
1103 /** 1103 /**
1104 * Returns the ith module specifier in this module. 1104 * Returns the ith module specifier in this module.
1105 * i must be < GetModuleRequestsLength() and >= 0. 1105 * i must be < GetModuleRequestsLength() and >= 0.
1106 */ 1106 */
1107 Local<String> GetModuleRequest(int i) const; 1107 Local<String> GetModuleRequest(int i) const;
1108 1108
1109 void SetEmbedderData(Local<Value> data); 1109 /**
1110 Local<Value> GetEmbedderData() const; 1110 * Returns the identity hash for this object.
1111 */
1112 int GetIdentityHash() const;
1111 1113
1112 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context, 1114 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context,
1113 Local<String> specifier, 1115 Local<String> specifier,
1114 Local<Module> referrer, 1116 Local<Module> referrer);
1115 Local<Value> data);
1116 1117
1117 /** 1118 /**
1118 * ModuleDeclarationInstantiation 1119 * ModuleDeclarationInstantiation
1119 * 1120 *
1120 * Returns false if an exception occurred during instantiation. 1121 * Returns false if an exception occurred during instantiation.
1121 */ 1122 */
1122 V8_WARN_UNUSED_RESULT bool Instantiate( 1123 V8_WARN_UNUSED_RESULT bool Instantiate(Local<Context> context,
1123 Local<Context> context, ResolveCallback callback, 1124 ResolveCallback callback);
1124 Local<Value> callback_data = Local<Value>());
1125 1125
1126 /** 1126 /**
1127 * ModuleEvaluation 1127 * ModuleEvaluation
1128 */ 1128 */
1129 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Evaluate(Local<Context> context); 1129 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Evaluate(Local<Context> context);
1130 }; 1130 };
1131 1131
1132 /** 1132 /**
1133 * A compiled JavaScript script, tied to a Context which was active when the 1133 * A compiled JavaScript script, tied to a Context which was active when the
1134 * script was compiled. 1134 * script was compiled.
(...skipping 8532 matching lines...) Expand 10 before | Expand all | Expand 10 after
9667 */ 9667 */
9668 9668
9669 9669
9670 } // namespace v8 9670 } // namespace v8
9671 9671
9672 9672
9673 #undef TYPE_CHECK 9673 #undef TYPE_CHECK
9674 9674
9675 9675
9676 #endif // INCLUDE_V8_H_ 9676 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698