Lines Matching refs:Script
198 // Set a break point in a script identified by id using the global Debug object.
203 // Column specified set script break point on precise location.
208 // Column not specified set script break point on line.
223 // Set a break point in a script identified by name using the global Debug
230 // Column specified set script break point on precise location.
235 // Column not specified set script break point on line.
500 // Source for the JavaScript function which picks out the script name for the
504 " return exec_state.frame(0).func().script().name();"
520 // Global variable to store the name for last script hit - used by some tests.
583 // Get the script name of the function script.
1325 v8::Local<v8::Script> foo =
1326 v8::Script::Compile(context, source).ToLocalChecked();
1377 v8::Local<v8::String> script = v8_str(isolate,
1396 // Compile the script and get the two functions.
1398 v8::Script::Compile(context, script, &origin)
1503 // Compile the script and get the two functions.
1505 v8::Local<v8::Script> script =
1506 v8::Script::Compile(context, source, &origin).ToLocalChecked();
1507 script->Run(context).ToLocalChecked();
1513 // Get the script id knowing that internally it is a 32 integer.
1514 int script_id = script->GetUnboundScript()->GetId();
1583 // Test conditional script break points.
1594 v8::Local<v8::String> script = v8_str(isolate,
1599 // Compile the script and get function f.
1601 v8::Script::Compile(context, script, &origin)
1608 // Set script break point on line 1 (in function f).
1611 // Call f while enabeling and disabling the script break point.
1628 // Reload the script and get f again checking that the disabling survives.
1629 v8::Script::Compile(context, script, &origin)
1647 // Test conditional script break points.
1657 v8::Local<v8::String> script = v8_str(env->GetIsolate(),
1666 // Compile the script and get function f.
1669 v8::Script::Compile(context, script, &origin)
1678 // Set script break point on line 5 (in function g).
1681 // Call f with different conditions on the script break point.
1699 // Reload the script and get f again checking that the condition survives.
1700 v8::Script::Compile(context, script, &origin)
1720 // Test ignore count on script break points.
1730 v8::Local<v8::String> script = v8_str(env->GetIsolate(),
1735 // Compile the script and get function f.
1738 v8::Script::Compile(context, script, &origin)
1747 // Set script break point on line 1 (in function f).
1750 // Call f with different ignores on the script break point.
1765 // Reload the script and get f again checking that the ignore survives.
1766 v8::Script::Compile(context, script, &origin)
1786 // Test that script break points survive when a script is reloaded.
1798 v8::Local<v8::String> script = v8_str(env->GetIsolate(),
1810 // Set a script break point before the script is loaded.
1813 // Compile the script and get the function.
1814 v8::Script::Compile(context, script, &origin_1)
1823 // Call f and check that the script break point is active.
1828 // Compile the script again with a different script data and get the
1830 v8::Script::Compile(context, script, &origin_2)
1844 // Compile the script again and get the function.
1845 v8::Script::Compile(context, script, &origin_1)
1854 // Call f and check that the script break point is active.
1864 // Test when several scripts has the same script data
1889 // Set a script break point before the scripts are loaded.
1892 // Compile the scripts with same script data and get the functions.
1893 v8::Script::Compile(context, script_f, &origin)
1901 v8::Script::Compile(context, script_g, &origin)
1910 // Call f and g and check that the script break point is active.
1917 // Clear the script break point.
1920 // Call f and g and check that the script break point is no longer active.
1927 // Set script break point with the scripts loaded.
1930 // Call f and g and check that the script break point is active.
1942 // Test the script origin which has both name and line offset.
1954 v8::Local<v8::String> script =
1957 " a = 0; // line 8 as this script has line offset 7\n"
1958 " b = 0; // line 9 as this script has line offset 7\n"
1961 // Create script origin both name and line offset.
1965 // Set two script break points before the script is loaded.
1971 // Compile the script and get the function.
1972 v8::Script::Compile(context, script, &origin)
1981 // Call f and check that the script break point is active.
1986 // Clear the script break points.
1990 // Call f and check that no script break points are active.
1995 // Set a script break point with the script loaded.
1998 // Call f and check that the script break point is active.
2008 // Test script break points set on lines.
2025 v8::Local<v8::String> script =
2041 // Set a couple script break point before the script is loaded.
2049 // Compile the script and get the function.
2053 v8::Script::Compile(context, script, &origin)
2066 // Check that a break point was hit when the script was run.
2070 // Call f and check that the script break point.
2075 // Call g and check that the script break point.
2080 // Clear the script break point on g and set one on h.
2085 // Call g and check that the script break point in h is hit.
2090 // Clear break points in f and h. Set a new one in the script between
2102 // Reload the script which should hit two break points.
2104 v8::Script::Compile(context, script, &origin)
2115 // Reload the script which should hit three break points.
2117 v8::Script::Compile(context, script, &origin)
2124 // Clear the last break points, and reload the script which should not hit any
2130 v8::Script::Compile(context, script, &origin)
2141 // Test top level script break points set on lines.
2151 v8::Local<v8::String> script =
2160 CompileRunWithOrigin(script, "test.html");
2176 // Recompile and run script and check that break point was hit.
2178 CompileRunWithOrigin(script, "test.html");
2266 v8::Script::Compile(context,
2271 v8::Script::Compile(
2306 v8::Script::Compile(context,
2683 v8::Script::Compile(context, v8_str(env->GetIsolate(), source))
3885 // Tests that breakpoint will be hit if it's set in script.
3895 // Create a script that returns a function.
3899 // Set breakpoint in the script.
3905 v8::Local<v8::Script> script =
3906 v8::Script::Compile(context, v8_str(env->GetIsolate(), src), &origin)
3908 v8::Local<v8::Value> r = script->Run(context).ToLocalChecked();
4149 // v8::Script::Compile there is no JavaScript stack whereas when compiling using
4176 v8::Script::Compile(context, v8_str(env->GetIsolate(), "+++")).IsEmpty());
4184 v8::Script::Compile(context, v8_str(env->GetIsolate(), "x x")).IsEmpty());
4191 CHECK(v8::Script::Compile(context, v8_str(env->GetIsolate(), "eval('+++')"))
4201 CHECK(v8::Script::Compile(context, v8_str(env->GetIsolate(), "eval('x x')"))
4894 v8::Script::Compile(context, v8_str(isolate, source))
5154 // Lets test script wait until break occurs to send commands.
5870 v8::Script::Compile(context, v8_str(isolate, frame_count_source))
5880 v8::Script::Compile(context, v8_str(isolate, frame_source_line_source))
5890 v8::Script::Compile(context, v8_str(isolate, debugger_call_with_data_source))
5901 v8::Script::Compile(context,
5915 v8::Script::Compile(context, v8_str(isolate, "CheckFrameCount(1)"))
5919 v8::Script::Compile(context, v8_str(isolate,
5928 v8::Script::Compile(context, v8_str(isolate, "CheckSourceLine(0)"))
5932 v8::Script::Compile(context, v8_str(isolate,
5943 v8::Script::Compile(context, v8_str(isolate, "CheckDataParameter()"))
5949 v8::Script::Compile(context, v8_str(isolate, "CheckClosure()"))
5957 v8::Script::Compile(context, v8_str(isolate, "CheckSourceLine(7)"), &origin)
5961 v8::Script::Compile(context, v8_str(isolate,
6176 CHECK(v8::Script::Compile(context, source).IsEmpty());
6215 // Test script break points set on lines.
6221 // Create functions for retrieving script name and data for the function on
6232 v8::Local<v8::String> script = v8_str(env->GetIsolate(),
6239 v8::Local<v8::Script> script1 =
6240 v8::Script::Compile(context, script, &origin1).ToLocalChecked();
6252 // Compile the same script again without setting data. As the compilation
6254 v8::Script::Compile(context, script, &origin1)
6272 v8::Script::Compile(context, data_obj_source)
6278 v8::Local<v8::Script> script2 =
6279 v8::Script::Compile(context, script, &origin2).ToLocalChecked();
6289 v8::Local<v8::Script> script3 =
6290 v8::Script::Compile(context, script, &origin2).ToLocalChecked();
6412 const char* script = "function f() { debugger; g(); } function g() { }";
6413 CompileRun(script);
6483 const char* script =
6487 v8::Local<v8::Function> f = CompileFunction(env->GetIsolate(), script, "f");
6647 const char* script = "var a=1";
6650 v8::Script::Compile(context, v8_str(env->GetIsolate(), script))
6658 v8::Script::Compile(context, v8_str(env->GetIsolate(), script))
6708 v8::Script::Compile(context, v8_str(env->GetIsolate(), "+++")).IsEmpty());
6711 CHECK(v8::Script::Compile(context, v8_str(env->GetIsolate(), "/sel\\/: \\"))
6715 v8::Local<v8::Script> script =
6716 v8::Script::Compile(context,
6720 CHECK(script->Run(context).IsEmpty());
6723 v8::Script::Compile(context,
6728 v8::Script::Compile(context, v8_str(env->GetIsolate(), "throw 1;"))
6740 const char* script = "function f() {};";
6743 v8::Script::Compile(context, v8_str(env->GetIsolate(), script))
6785 const char* script = "function f() {throw new Error()};";
6788 v8::Script::Compile(context, v8_str(env->GetIsolate(), script))
6815 const char* script = "function f() {};";
6821 script lines
6833 // Compile a script whose first line number is greater than the breakpoints'
6835 v8::Script::Compile(context, v8_str(env->GetIsolate(), script), &origin)
6840 // If the script is compiled successfully there is exactly one after compile
6897 // There should be one more break event when the script is evaluated in 'f'.
7088 v8::Local<v8::Script> script = CompileWithOrigin(void0, void0);
7090 // Check backtrace from "void(0)" script.
7097 script->Run(context).ToLocalChecked();
7288 v8::Script::Compile(expected_context,
7469 v8::Script::Compile(context, v8_str(env->GetIsolate(), src))
7614 v8::Local<v8::Script> inline_script;
7626 i::Handle<i::Script> source_script = i::Handle<i::Script>(i::Script::cast(
7627 i::JSFunction::cast(*compiled_script)->shared()->script()));
7630 char script[128];
7631 i::Vector<char> script_vector(script, sizeof(script));
7633 v8::Local<v8::Value> result = CompileRun(script);
7642 v8::Local<v8::Value> result = CompileRun(script);
7644 i::Script::GetLineNumber(source_script,
7673 v8::Script::Compile(context, v8_str(env->GetIsolate(), source))
7697 // When doing StepNext through the first script, the debugger is not reset
7700 // for forEach in the second script under the assumption that we are in a
7702 // recorded frame pointer from the first script and fail when not finding it
7708 // We step through the first script. It exits through an exception. We run
7709 // this inside a new frame to record a different FP than the second script
7714 // The second script uses forEach.
8004 char script[128];
8005 i::Vector<char> script_vector(script, sizeof(script));
8007 ExpectInt32(script, 1);
8010 CompileRun(script);
8017 ExpectBoolean("allScopes[0].scopeType() === ScopeType.Script", true);