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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 * should return some new Module type. | 1318 * should return some new Module type. |
1319 */ | 1319 */ |
1320 static Local<Script> CompileModule( | 1320 static Local<Script> CompileModule( |
1321 Isolate* isolate, Source* source, | 1321 Isolate* isolate, Source* source, |
1322 CompileOptions options = kNoCompileOptions); | 1322 CompileOptions options = kNoCompileOptions); |
1323 | 1323 |
1324 /** | 1324 /** |
1325 * Compile a function for a given context. This is equivalent to running | 1325 * Compile a function for a given context. This is equivalent to running |
1326 * | 1326 * |
1327 * with (obj) { | 1327 * with (obj) { |
1328 * return function() { ... } | 1328 * return function(args) { ... } |
1329 * } | 1329 * } |
1330 * | 1330 * |
1331 * It is possible to specify multiple context extensions (obj in the above | 1331 * It is possible to specify multiple context extensions (obj in the above |
1332 * example). | 1332 * example). |
1333 */ | 1333 */ |
1334 static Local<Function> CompileFunctionInContext( | 1334 static Local<Function> CompileFunctionInContext( |
1335 Isolate* isolate, Source* source, Local<Context> context, | 1335 Isolate* isolate, Source* source, Local<Context> context, |
| 1336 size_t arguments_count, Local<String> arguments[], |
1336 size_t context_extension_count, Local<Object> context_extensions[]); | 1337 size_t context_extension_count, Local<Object> context_extensions[]); |
1337 | 1338 |
1338 private: | 1339 private: |
1339 static Local<UnboundScript> CompileUnboundInternal(Isolate* isolate, | 1340 static Local<UnboundScript> CompileUnboundInternal(Isolate* isolate, |
1340 Source* source, | 1341 Source* source, |
1341 CompileOptions options, | 1342 CompileOptions options, |
1342 bool is_module); | 1343 bool is_module); |
1343 }; | 1344 }; |
1344 | 1345 |
1345 | 1346 |
(...skipping 6194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7540 */ | 7541 */ |
7541 | 7542 |
7542 | 7543 |
7543 } // namespace v8 | 7544 } // namespace v8 |
7544 | 7545 |
7545 | 7546 |
7546 #undef TYPE_CHECK | 7547 #undef TYPE_CHECK |
7547 | 7548 |
7548 | 7549 |
7549 #endif // V8_H_ | 7550 #endif // V8_H_ |
OLD | NEW |