Home | History | Annotate | Download | only in samples

Lines Matching refs:script

53  * script. The script is specified with command line parameters.
60 * --main-cycle-in-cpp option. Script must declare a function named
62 * for processing every time. This is a sample script:
70 * --main-cycle-in-js option. Script gets run one time at all and gets
72 * and print converted lines to output itself. This a sample script:
89 * Normally the program compiles custom script and immediately runs it.
90 * If programmer needs to debug script from the very beginning, he should
97 * respond only when V8 is running some script. In particular, when this program
115 bool RunCppCycle(v8::Handle<v8::Script> script, v8::Local<v8::Context> context,
196 printf("Script is not specified\n");
200 printf("Only one script may be specified\n");
238 v8::Handle<v8::Script> script;
240 // Compile script in try/catch context.
242 script = v8::Script::Compile(script_source, script_name);
243 if (script.IsEmpty()) {
254 script->Run();
263 bool res = RunCppCycle(script, v8::Context::GetCurrent(),
273 bool RunCppCycle(v8::Handle<v8::Script> script, v8::Local<v8::Context> context,
286 printf("Error: Script does not declare 'ProcessLine' global function.\n");