Home | History | Annotate | Download | only in samples

Lines Matching refs:script

45  * script. The script is specified with command line parameters.
52 * --main-cycle-in-cpp option. Script must declare a function named
54 * for processing every time. This is a sample script:
62 * --main-cycle-in-js option. Script gets run one time at all and gets
64 * and print converted lines to output itself. This a sample script:
81 * Normally the program compiles custom script and immediately runs it.
82 * If programmer needs to debug script from the very beginning, he should
89 * respond only when V8 is running some script. In particular, when this program
107 bool RunCppCycle(v8::Handle<v8::Script> script,
194 printf("Script is not specified\n");
198 printf("Only one script may be specified\n");
236 v8::Handle<v8::Script> script;
238 // Compile script in try/catch context.
240 script = v8::Script::Compile(script_source, script_name);
241 if (script.IsEmpty()) {
252 script->Run();
261 bool res = RunCppCycle(script,
272 bool RunCppCycle(v8::Handle<v8::Script> script,
286 printf("Error: Script does not declare 'ProcessLine' global function.\n");