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

Side by Side Diff: include/v8.h

Issue 925433002: Make it possible to define arguments for CompileFunctionInContext (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 10 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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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