Lines Matching defs:script
185 v8::Script::Compile(v8::String::New(source))->Run();
194 v8::Script::Compile(v8::String::New(source))->Run();
239 return v8::Script::Compile(str)->Run()->Int32Value();
243 // Set a break point in a script identified by id using the global Debug object.
247 // Column specified set script break point on precise location.
252 // Column not specified set script break point on line.
261 v8::Handle<v8::Value> value = v8::Script::Compile(str)->Run();
268 // Set a break point in a script identified by name using the global Debug
274 // Column specified set script break point on precise location.
279 // Column not specified set script break point on line.
288 v8::Handle<v8::Value> value = v8::Script::Compile(str)->Run();
311 v8::Script::Compile(v8::String::New(buffer.start()))->Run();
321 v8::Script::Compile(v8::String::New(buffer.start()))->Run();
331 v8::Script::Compile(v8::String::New(buffer.start()))->Run();
342 v8::Script::Compile(v8::String::New(buffer.start()))->Run();
353 v8::Script::Compile(v8::String::New(buffer.start()))->Run();
368 v8::Script::Compile(
371 v8::Script::Compile(
375 v8::Script::Compile(
378 v8::Script::Compile(
614 // Source for the JavaScript function which picks out the script name for the
618 " return exec_state.frame(0).func().script().name();"
623 // Source for the JavaScript function which picks out the script data for the
627 " return exec_state.frame(0).func().script().data();"
632 // Source for the JavaScript function which picks out the script data from
636 " return event_data.script().data();"
652 // Global variable to store the name and data for last script hit - used by some
712 // Get the script name of the function script.
727 // Get the script data of the function script.
1184 v8::Script::Compile(v8::String::New("function foo(){bar=0;}"))->Run();
1216 v8::Script::Compile(v8::String::New("bar=1"))->Run();
1217 v8::Script::Compile(v8::String::New("function foo(){var x=bar;}"))->Run();
1249 v8::Script::Compile(v8::String::New("function bar(){}"))->Run();
1250 v8::Script::Compile(v8::String::New("function foo(){bar();}"))->Run();
1282 v8::Script::Compile(v8::String::New("function bar(){return 1;}"))->Run();
1283 v8::Script::Compile(v8::String::New("function foo(){return bar();}"))->Run();
1315 v8::Script::Compile(v8::String::New("function bar(){ this.x = 1;}"))->Run();
1316 v8::Script::Compile(v8::String::New(
1360 v8::Script::Compile(v8::String::New("function foo(){}"))->Run();
1532 v8::Script::Compile(v8::String::New("function bar(){}"))->Run();
1533 v8::Script::Compile(v8::String::New("function foo(){bar();bar();}"))->Run();
1537 v8::Local<v8::Script> foo = v8::Script::Compile(v8::String::New("foo()"));
1589 v8::Local<v8::String> script = v8::String::New(
1608 // Compile the script and get the two functions.
1611 v8::Script::Compile(script, &origin)->Run();
1712 // Compile the script and get the two functions.
1715 v8::Local<v8::Script> script = v8::Script::Compile(source, &origin);
1716 script->Run();
1722 // Get the script id knowing that internally it is a 32 integer.
1723 uint32_t script_id = script->Id()->Uint32Value();
1792 // Test conditional script break points.
1802 v8::Local<v8::String> script = v8::String::New(
1807 // Compile the script and get function f.
1810 v8::Script::Compile(script, &origin)->Run();
1814 // Set script break point on line 1 (in function f).
1817 // Call f while enabeling and disabling the script break point.
1834 // Reload the script and get f again checking that the disabeling survives.
1835 v8::Script::Compile(script, &origin)->Run();
1849 // Test conditional script break points.
1859 v8::Local<v8::String> script = v8::String::New(
1868 // Compile the script and get function f.
1871 v8::Script::Compile(script, &origin)->Run();
1875 // Set script break point on line 5 (in function g).
1878 // Call f with different conditions on the script break point.
1896 // Reload the script and get f again checking that the condition survives.
1897 v8::Script::Compile(script, &origin)->Run();
1911 // Test ignore count on script break points.
1921 v8::Local<v8::String> script = v8::String::New(
1926 // Compile the script and get function f.
1929 v8::Script::Compile(script, &origin)->Run();
1933 // Set script break point on line 1 (in function f).
1936 // Call f with different ignores on the script break point.
1951 // Reload the script and get f again checking that the ignore survives.
1952 v8::Script::Compile(script, &origin)->Run();
1966 // Test that script break points survive when a script is reloaded.
1977 v8::Local<v8::String> script = v8::String::New(
1989 // Set a script break point before the script is loaded.
1992 // Compile the script and get the function.
1993 v8::Script::Compile(script, &origin_1)->Run();
1996 // Call f and check that the script break point is active.
2001 // Compile the script again with a different script data and get the
2003 v8::Script::Compile(script, &origin_2)->Run();
2011 // Compile the script again and get the function.
2012 v8::Script::Compile(script, &origin_1)->Run();
2015 // Call f and check that the script break point is active.
2025 // Test when several scripts has the same script data
2050 // Set a script break point before the scripts are loaded.
2053 // Compile the scripts with same script data and get the functions.
2054 v8::Script::Compile(script_f, &origin)->Run();
2056 v8::Script::Compile(script_g, &origin)->Run();
2059 // Call f and g and check that the script break point is active.
2066 // Clear the script break point.
2069 // Call f and g and check that the script break point is no longer active.
2076 // Set script break point with the scripts loaded.
2079 // Call f and g and check that the script break point is active.
2091 // Test the script origin which has both name and line offset.
2102 v8::Local<v8::String> script = v8::String::New(
2104 " a = 0; // line 8 as this script has line offset 7\n"
2105 " b = 0; // line 9 as this script has line offset 7\n"
2108 // Create script origin both name and line offset.
2112 // Set two script break points before the script is loaded.
2116 // Compile the script and get the function.
2117 v8::Script::Compile(script, &origin)->Run();
2120 // Call f and check that the script break point is active.
2125 // Clear the script break points.
2129 // Call f and check that no script break points are active.
2134 // Set a script break point with the script loaded.
2137 // Call f and check that the script break point is active.
2147 // Test script break points set on lines.
2163 v8::Local<v8::String> script = v8::String::New(
2178 // Set a couple script break point before the script is loaded.
2183 // Compile the script and get the function.
2186 v8::Script::Compile(script, &origin)->Run();
2190 // Check that a break point was hit when the script was run.
2194 // Call f and check that the script break point.
2199 // Call g and check that the script break point.
2204 // Clear the script break point on g and set one on h.
2208 // Call g and check that the script break point in h is hit.
2213 // Clear break points in f and h. Set a new one in the script between
2224 // Reload the script which should hit two break points.
2226 v8::Script::Compile(script, &origin)->Run();
2233 // Reload the script which should hit three break points.
2235 v8::Script::Compile(script, &origin)->Run();
2239 // Clear the last break points, and reload the script which should not hit any
2245 v8::Script::Compile(script, &origin)->Run();
2253 // Test top level script break points set on lines.
2262 v8::Local<v8::String> script = v8::String::New(
2270 v8::Script::Compile(script, v8::String::New("test.html"))->Run();
2283 // Recompile and run script and check that break point was hit.
2285 v8::Script::Compile(script, v8::String::New("test.html"))->Run();
2318 v8::Script::Compile(script_source, v8::String::New("test.html"))->Run();
2364 v8::Script::Compile(v8::String::New("function bar(){debugger}"))->Run();
2365 v8::Script::Compile(v8::String::New(
2392 v8::Script::Compile(v8::String::New("function foo(){debugger;}"))->Run();
2735 v8::Script::Compile(v8::String::New(source))->Run();
3827 // Tests that breakpoint will be hit if it's set in script.
3836 // Create a script that returns a function.
3840 // Set breakpoint in the script.
3845 v8::Handle<v8::Script> script = v8::Script::Compile(v8::String::New(src),
3847 v8::Local<v8::Value> r = script->Run();
4006 // v8::Script::Compile there is no JavaScript stack whereas when compiling using
4033 v8::Script::Compile(v8::String::New("+++"));
4040 v8::Script::Compile(v8::String::New("x x"));
4047 v8::Script::Compile(v8::String::New("eval('+++')"))->Run();
4054 v8::Script::Compile(v8::String::New("eval('x x')"))->Run();
4635 v8::Script::Compile(v8::String::New(source))->Run();
4883 // Lets test script wait until break occurs to send commands.
5570 v8::Script::Compile(v8::String::New(frame_count_source))->Run();
5575 v8::Script::Compile(v8::String::New(frame_source_line_source))->Run();
5580 v8::Script::Compile(v8::String::New(debugger_call_with_data_source))->Run();
5586 v8::Script::Compile(
5594 v8::Script::Compile(v8::String::New("CheckFrameCount(1)"))->Run();
5595 v8::Script::Compile(v8::String::New("function f() {"
5600 v8::Script::Compile(v8::String::New("CheckSourceLine(0)"))->Run();
5601 v8::Script::Compile(v8::String::New("function f() {\n"
5608 v8::Script::Compile(v8::String::New("CheckDataParameter()"))->Run();
5611 v8::Script::Compile(v8::String::New("CheckClosure()"))->Run();
5617 v8::Script::Compile(v8::String::New("CheckSourceLine(7)"), &origin)->Run();
5618 v8::Script::Compile(v8::String::New("function f() {\n"
6163 v8::Handle<v8::Script> evil_script(v8::Script::Compile(source));
6188 // Test script break points set on lines.
6194 // Create functions for retrieving script name and data for the function on
6210 v8::Local<v8::String> script = v8::String::New(
6216 v8::Handle<v8::Script> script1 = v8::Script::Compile(script, &origin1);
6227 // Compile the same script again without setting data. As the compilation
6229 v8::Script::Compile(script, &origin1)->Run();
6241 v8::Local<v8::Value> data_obj = v8::Script::Compile(data_obj_source)->Run();
6243 v8::Handle<v8::Script> script2 = v8::Script::Compile(script, &origin2);
6252 v8::Handle<v8::Script> script3 =
6253 v8::Script::Compile(script, &origin2, NULL,
6373 const char* script = "function f() { debugger; g(); } function g() { }";
6374 CompileRun(script);
6438 const char* script =
6442 v8::Local<v8::Function> f = CompileFunction(script, "f");
6577 // Debug event listener which counts the script collected events.
6598 // Request the loaded scripts to initialize the debugger script cache.
6601 // Do garbage collection to ensure that only the script in this test will be
6609 v8::Script::Compile(v8::String::New("eval('a=1')"))->Run();
6610 v8::Script::Compile(v8::String::New("eval('a=2')"))->Run();
6613 // Do garbage collection to collect the script above which is no longer
6624 // Debug event listener which counts the script collected events.
6661 // Request the loaded scripts to initialize the debugger script cache.
6664 // Do garbage collection to ensure that only the script in this test will be
6669 v8::Script::Compile(v8::String::New("eval('a=1')"))->Run();
6670 v8::Script::Compile(v8::String::New("eval('a=2')"))->Run();
6681 // Do garbage collection to collect the script above which is no longer
6711 const char* script = "var a=1";
6714 v8::Script::Compile(v8::String::New(script))->Run();
6719 v8::Script::Compile(v8::String::New(script))->Run();
6735 const char* script = "function f() {};";
6738 v8::Script::Compile(v8::String::New(script))->Run();
6774 const char* script = "function f() {throw new Error()};";
6777 v8::Script::Compile(v8::String::New(script))->Run();
6799 const char* script = "function f() {};";
6802 // Set a couple of provisional breakpoint on lines out of the script lines
6815 // Compile a script whose first line number is greater than the breakpoints'
6817 v8::Script::Compile(v8::String::New(script), &origin)->Run();
6819 // If the script is compiled successfully there is exactly one after compile
6882 // There should be one more break event when the script is evaluated in 'f'.
6975 v8::Handle<v8::Script> script = v8::Script::Compile(void0, void0);
6977 // Check backtrace from "void(0)" script.
6980 script->Run();
6994 v8::Script::New(
7147 v8::Script::Compile(v8::String::New("(function(){debugger;})();"))->Run();
7181 v8::Script::Compile(v8::String::New("(function(x){return x;})(1);"))->Run();
7190 v8::Script::Compile(v8::String::New("(function(x){return x+1;})(1);"))->Run();
7198 v8::Script::Compile(v8::String::New("(function(x){return x+2;})(1);"))->Run();
7208 v8::Script::Compile(v8::String::New("(function(x){return x+3;})(1);"))->Run();
7272 Script::Compile(v8::String::New("function bar(){}; bar()"))->Run();
7276 v8::Script::Compile(v8::String::New("bar()"))->Run();
7366 v8::Script::Compile(v8::String::New(src))->Run();
7455 v8::Local<v8::Script> inline_script;
7467 i::Handle<i::Script> source_script = i::Handle<i::Script>(i::Script::cast(
7468 i::JSFunction::cast(*compiled_script)->shared()->script()));
7471 char script[128];
7472 i::Vector<char> script_vector(script, sizeof(script));
7474 v8::Local<v8::Value> result = CompileRun(script);
7483 v8::Local<v8::Value> result = CompileRun(script);
7511 inline_script = v8::Script::Compile(v8::String::New(source));
7535 // When doing StepNext through the first script, the debugger is not reset
7538 // for forEach in the second script under the assumption that we are in a
7540 // recorded frame pointer from the first script and fail when not finding it
7546 // We step through the first script. It exits through an exception. We run
7547 // this inside a new frame to record a different FP than the second script
7552 // The second script uses forEach.