| OLD | NEW |
| 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 Loading... |
| 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 8516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9651 */ | 9651 */ |
| 9652 | 9652 |
| 9653 | 9653 |
| 9654 } // namespace v8 | 9654 } // namespace v8 |
| 9655 | 9655 |
| 9656 | 9656 |
| 9657 #undef TYPE_CHECK | 9657 #undef TYPE_CHECK |
| 9658 | 9658 |
| 9659 | 9659 |
| 9660 #endif // INCLUDE_V8_H_ | 9660 #endif // INCLUDE_V8_H_ |
| OLD | NEW |