Home | History | Annotate | Download | only in cctest

Lines Matching refs:script

173   v8::Script::Compile(v8::String::New(source))->Run();
182 v8::Script::Compile(v8::String::New(source))->Run();
227 return v8::Script::Compile(str)->Run()->Int32Value();
231 // Set a break point in a script identified by id using the global Debug object.
235 // Column specified set script break point on precise location.
240 // Column not specified set script break point on line.
249 v8::Handle<v8::Value> value = v8::Script::Compile(str)->Run();
256 // Set a break point in a script identified by name using the global Debug
262 // Column specified set script break point on precise location.
267 // Column not specified set script break point on line.
276 v8::Handle<v8::Value> value = v8::Script::Compile(str)->Run();
298 v8::Script::Compile(v8::String::New(buffer.start()))->Run();
308 v8::Script::Compile(v8::String::New(buffer.start()))->Run();
318 v8::Script::Compile(v8::String::New(buffer.start()))->Run();
329 v8::Script::Compile(v8::String::New(buffer.start()))->Run();
340 v8::Script::Compile(v8::String::New(buffer.start()))->Run();
355 v8::Script::Compile(
358 v8::Script::Compile(
362 v8::Script::Compile(
365 v8::Script::Compile(
601 // Source for the JavaScript function which picks out the script name for the
605 " return exec_state.frame(0).func().script().name();"
610 // Source for the JavaScript function which picks out the script data for the
614 " return exec_state.frame(0).func().script().data();"
619 // Source for the JavaScript function which picks out the script data from
623 " return event_data.script().data();"
639 // Global variable to store the name and data for last script hit - used by some
698 // Get the script name of the function script.
713 // Get the script data of the function script.
1158 v8::Script::Compile(v8::String::New("function foo(){bar=0;}"))->Run();
1190 v8::Script::Compile(v8::String::New("bar=1"))->Run();
1191 v8::Script::Compile(v8::String::New("function foo(){var x=bar;}"))->Run();
1223 v8::Script::Compile(v8::String::New("function bar(){}"))->Run();
1224 v8::Script::Compile(v8::String::New("function foo(){bar();}"))->Run();
1256 v8::Script::Compile(v8::String::New("function bar(){return 1;}"))->Run();
1257 v8::Script::Compile(v8::String::New("function foo(){return bar();}"))->Run();
1289 v8::Script::Compile(v8::String::New("function bar(){ this.x = 1;}"))->Run();
1290 v8::Script::Compile(v8::String::New(
1334 v8::Script::Compile(v8::String::New("function foo(){}"))->Run();
1505 v8::Script::Compile(v8::String::New("function bar(){}"))->Run();
1506 v8::Script::Compile(v8::String::New("function foo(){bar();bar();}"))->Run();
1510 v8::Local<v8::Script> foo = v8::Script::Compile(v8::String::New("foo()"));
1562 v8::Local<v8::String> script = v8::String::New(
1581 // Compile the script and get the two functions.
1584 v8::Script::Compile(script, &origin)->Run();
1685 // Compile the script and get the two functions.
1688 v8::Local<v8::Script> script = v8::Script::Compile(source, &origin);
1689 script->Run();
1695 // Get the script id knowing that internally it is a 32 integer.
1696 uint32_t script_id = script->Id()->Uint32Value();
1765 // Test conditional script break points.
1775 v8::Local<v8::String> script = v8::String::New(
1780 // Compile the script and get function f.
1783 v8::Script::Compile(script, &origin)->Run();
1787 // Set script break point on line 1 (in function f).
1790 // Call f while enabeling and disabling the script break point.
1807 // Reload the script and get f again checking that the disabeling survives.
1808 v8::Script::Compile(script, &origin)->Run();
1822 // Test conditional script break points.
1832 v8::Local<v8::String> script = v8::String::New(
1841 // Compile the script and get function f.
1844 v8::Script::Compile(script, &origin)->Run();
1848 // Set script break point on line 5 (in function g).
1851 // Call f with different conditions on the script break point.
1869 // Reload the script and get f again checking that the condition survives.
1870 v8::Script::Compile(script, &origin)->Run();
1884 // Test ignore count on script break points.
1894 v8::Local<v8::String> script = v8::String::New(
1899 // Compile the script and get function f.
1902 v8::Script::Compile(script, &origin)->Run();
1906 // Set script break point on line 1 (in function f).
1909 // Call f with different ignores on the script break point.
1924 // Reload the script and get f again checking that the ignore survives.
1925 v8::Script::Compile(script, &origin)->Run();
1939 // Test that script break points survive when a script is reloaded.
1950 v8::Local<v8::String> script = v8::String::New(
1962 // Set a script break point before the script is loaded.
1965 // Compile the script and get the function.
1966 v8::Script::Compile(script, &origin_1)->Run();
1969 // Call f and check that the script break point is active.
1974 // Compile the script again with a different script data and get the
1976 v8::Script::Compile(script, &origin_2)->Run();
1984 // Compile the script again and get the function.
1985 v8::Script::Compile(script, &origin_1)->Run();
1988 // Call f and check that the script break point is active.
1998 // Test when several scripts has the same script data
2023 // Set a script break point before the scripts are loaded.
2026 // Compile the scripts with same script data and get the functions.
2027 v8::Script::Compile(script_f, &origin)->Run();
2029 v8::Script::Compile(script_g, &origin)->Run();
2032 // Call f and g and check that the script break point is active.
2039 // Clear the script break point.
2042 // Call f and g and check that the script break point is no longer active.
2049 // Set script break point with the scripts loaded.
2052 // Call f and g and check that the script break point is active.
2064 // Test the script origin which has both name and line offset.
2075 v8::Local<v8::String> script = v8::String::New(
2077 " a = 0; // line 8 as this script has line offset 7\n"
2078 " b = 0; // line 9 as this script has line offset 7\n"
2081 // Create script origin both name and line offset.
2085 // Set two script break points before the script is loaded.
2089 // Compile the script and get the function.
2090 v8::Script::Compile(script, &origin)->Run();
2093 // Call f and check that the script break point is active.
2098 // Clear the script break points.
2102 // Call f and check that no script break points are active.
2107 // Set a script break point with the script loaded.
2110 // Call f and check that the script break point is active.
2120 // Test script break points set on lines.
2136 v8::Local<v8::String> script = v8::String::New(
2151 // Set a couple script break point before the script is loaded.
2156 // Compile the script and get the function.
2159 v8::Script::Compile(script, &origin)->Run();
2163 // Check that a break point was hit when the script was run.
2167 // Call f and check that the script break point.
2172 // Call g and check that the script break point.
2177 // Clear the script break point on g and set one on h.
2181 // Call g and check that the script break point in h is hit.
2186 // Clear break points in f and h. Set a new one in the script between
2197 // Reload the script which should hit two break points.
2199 v8::Script::Compile(script, &origin)->Run();
2206 // Reload the script which should hit three break points.
2208 v8::Script::Compile(script, &origin)->Run();
2212 // Clear the last break points, and reload the script which should not hit any
2218 v8::Script::Compile(script, &origin)->Run();
2226 // Test top level script break points set on lines.
2235 v8::Local<v8::String> script = v8::String::New(
2243 v8::Script::Compile(script, v8::String::New("test.html"))->Run();
2256 // Recompile and run script and check that break point was hit.
2258 v8::Script::Compile(script, v8::String::New("test.html"))->Run();
2291 v8::Script::Compile(script_source, v8::String::New("test.html"))->Run();
2337 v8::Script::Compile(v8::String::New("function bar(){debugger}"))->Run();
2338 v8::Script::Compile(v8::String::New(
2365 v8::Script::Compile(v8::String::New("function foo(){debugger;}"))->Run();
2612 v8::Script::Compile(v8::String::New(source))->Run();
3704 // Tests that breakpoint will be hit if it's set in script.
3713 // Create a script that returns a function.
3717 // Set breakpoint in the script.
3722 v8::Handle<v8::Script> script = v8::Script::Compile(v8::String::New(src),
3724 v8::Local<v8::Value> r = script->Run();
3883 // v8::Script::Compile there is no JavaScript stack whereas when compiling using
3910 v8::Script::Compile(v8::String::New("+++"));
3917 v8::Script::Compile(v8::String::New("x x"));
3924 v8::Script::Compile(v8::String::New("eval('+++')"))->Run();
3931 v8::Script::Compile(v8::String::New("eval('x x')"))->Run();
4507 v8::Script::Compile(v8::String::New(source))->Run();
4751 // Lets test script wait until break occurs to send commands.
5429 v8::Script::Compile(v8::String::New(frame_count_source))->Run();
5434 v8::Script::Compile(v8::String::New(frame_source_line_source))->Run();
5439 v8::Script::Compile(v8::String::New(debugger_call_with_data_source))->Run();
5445 v8::Script::Compile(
5453 v8::Script::Compile(v8::String::New("CheckFrameCount(1)"))->Run();
5454 v8::Script::Compile(v8::String::New("function f() {"
5459 v8::Script::Compile(v8::String::New("CheckSourceLine(0)"))->Run();
5460 v8::Script::Compile(v8::String::New("function f() {\n"
5467 v8::Script::Compile(v8::String::New("CheckDataParameter()"))->Run();
5470 v8::Script::Compile(v8::String::New("CheckClosure()"))->Run();
5476 v8::Script::Compile(v8::String::New("CheckSourceLine(7)"), &origin)->Run();
5477 v8::Script::Compile(v8::String::New("function f() {\n"
6022 v8::Handle<v8::Script> evil_script(v8::Script::Compile(source));
6047 // Test script break points set on lines.
6053 // Create functions for retrieving script name and data for the function on
6069 v8::Local<v8::String> script = v8::String::New(
6075 v8::Handle<v8::Script> script1 = v8::Script::Compile(script, &origin1);
6086 // Compile the same script again without setting data. As the compilation
6088 v8::Script::Compile(script, &origin1)->Run();
6100 v8::Local<v8::Value> data_obj = v8::Script::Compile(data_obj_source)->Run();
6102 v8::Handle<v8::Script> script2 = v8::Script::Compile(script, &origin2);
6111 v8::Handle<v8::Script> script3 =
6112 v8::Script::Compile(script, &origin2, NULL,
6231 const char* script = "function f() { debugger; g(); } function g() { }";
6232 CompileRun(script);
6296 const char* script =
6300 v8::Local<v8::Function> f = CompileFunction(script, "f");
6433 // Debug event listener which counts the script collected events.
6454 // Request the loaded scripts to initialize the debugger script cache.
6457 // Do garbage collection to ensure that only the script in this test will be
6465 v8::Script::Compile(v8::String::New("eval('a=1')"))->Run();
6466 v8::Script::Compile(v8::String::New("eval('a=2')"))->Run();
6469 // Do garbage collection to collect the script above which is no longer
6480 // Debug event listener which counts the script collected events.
6502 // Request the loaded scripts to initialize the debugger script cache.
6505 // Do garbage collection to ensure that only the script in this test will be
6511 v8::Script::Compile(v8::String::New("eval('a=1')"))->Run();
6512 v8::Script::Compile(v8::String::New("eval('a=2')"))->Run();
6516 // Do garbage collection to collect the script above which is no longer
6546 const char* script = "var a=1";
6549 v8::Script::Compile(v8::String::New(script))->Run();
6554 v8::Script::Compile(v8::String::New(script))->Run();
6570 const char* script = "function f() {};";
6573 v8::Script::Compile(v8::String::New(script))->Run();
6609 const char* script = "function f() {throw new Error()};";
6612 v8::Script::Compile(v8::String::New(script))->Run();
6634 const char* script = "function f() {};";
6637 // Set a couple of provisional breakpoint on lines out of the script lines
6650 // Compile a script whose first line number is greater than the breakpoints'
6652 v8::Script::Compile(v8::String::New(script), &origin)->Run();
6654 // If the script is compiled successfully there is exactly one after compile
6717 // There should be one more break event when the script is evaluated in 'f'.
6809 v8::Handle<v8::Script> script = v8::Script::Compile(void0, void0);
6811 // Check backtrace from "void(0)" script.
6814 script->Run();
6828 v8::Script::New(
6979 v8::Script::Compile(v8::String::New("(function(){debugger;})();"))->Run();
7014 v8::Script::Compile(v8::String::New("(function(x){return x;})(1);"))->Run();
7023 v8::Script::Compile(v8::String::New("(function(x){return x+1;})(1);"))->Run();
7031 v8::Script::Compile(v8::String::New("(function(x){return x+2;})(1);"))->Run();
7041 v8::Script::Compile(v8::String::New("(function(x){return x+3;})(1);"))->Run();
7105 v8::Script::Compile(v8::String::New("function bar(){}; bar()"))->Run();
7109 v8::Script::Compile(v8::String::New("bar()"))->Run();
7200 v8::Script::Compile(v8::String::New(src))->Run();
7289 v8::Local<v8::Script> inline_script;
7301 i::Handle<i::Script> source_script = i::Handle<i::Script>(i::Script::cast(
7302 i::JSFunction::cast(*compiled_script)->shared()->script()));
7305 char script[128];
7306 i::Vector<char> script_vector(script, sizeof(script));
7308 v8::Local<v8::Value> result = CompileRun(script);
7317 v8::Local<v8::Value> result = CompileRun(script);
7345 inline_script = v8::Script::Compile(v8::String::New(source));