| 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 /** | 1109 void SetEmbedderData(Local<Value> data); |
| 1110 * Returns the identity hash for this object. | 1110 Local<Value> GetEmbedderData() const; |
| 1111 */ | |
| 1112 int GetIdentityHash() const; | |
| 1113 | 1111 |
| 1114 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context, | 1112 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context, |
| 1115 Local<String> specifier, | 1113 Local<String> specifier, |
| 1116 Local<Module> referrer); | 1114 Local<Module> referrer, |
| 1115 Local<Value> data); |
| 1117 | 1116 |
| 1118 /** | 1117 /** |
| 1119 * ModuleDeclarationInstantiation | 1118 * ModuleDeclarationInstantiation |
| 1120 * | 1119 * |
| 1121 * Returns false if an exception occurred during instantiation. | 1120 * Returns false if an exception occurred during instantiation. |
| 1122 */ | 1121 */ |
| 1123 V8_WARN_UNUSED_RESULT bool Instantiate(Local<Context> context, | 1122 V8_WARN_UNUSED_RESULT bool Instantiate( |
| 1124 ResolveCallback callback); | 1123 Local<Context> context, 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 Loading... |
| 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_ |
| OLD | NEW |