Lines Matching defs:script
131 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), source))
142 v8::Script::Compile(v8::String::NewFromUtf8(isolate, source))->Run();
190 return v8::Script::Compile(str)->Run()->Int32Value();
194 // Set a break point in a script identified by id using the global Debug object.
199 // Column specified set script break point on precise location.
204 // Column not specified set script break point on line.
214 v8::Handle<v8::Value> value = v8::Script::Compile(str)->Run();
221 // Set a break point in a script identified by name using the global Debug
228 // Column specified set script break point on precise location.
233 // Column not specified set script break point on line.
243 v8::Handle<v8::Value> value = v8::Script::Compile(str)->Run();
267 v8::Script::Compile(v8::String::NewFromUtf8(isolate, buffer.start()))->Run();
278 v8::Script::Compile(v8::String::NewFromUtf8(isolate, buffer.start()))->Run();
289 v8::Script::Compile(v8::String::NewFromUtf8(isolate, buffer.start()))->Run();
301 v8::Script::Compile(v8::String::NewFromUtf8(isolate, buffer.start()))->Run();
313 v8::Script::Compile(v8::String::NewFromUtf8(isolate, buffer.start()))->Run();
329 v8::Script::Compile(
333 v8::Script::Compile(
338 v8::Script::Compile(
342 v8::Script::Compile(
567 // Source for the JavaScript function which picks out the script name for the
571 " return exec_state.frame(0).func().script().name();"
587 // Global variable to store the name for last script hit - used by some tests.
647 // Get the script name of the function script.
1092 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
1124 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), "bar=1"))
1126 v8::Script::Compile(
1159 v8::Script::Compile(
1161 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
1193 v8::Script::Compile(
1196 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
1229 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
1232 v8::Script::Compile(
1276 v8::Script::Compile(
1446 v8::Script::Compile(
1448 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
1454 v8::Local<v8::Script> foo =
1455 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), "foo()"));
1506 v8::Local<v8::String> script = v8::String::NewFromUtf8(
1526 // Compile the script and get the two functions.
1529 v8::Script::Compile(script, &origin)->Run();
1630 // Compile the script and get the two functions.
1633 v8::Local<v8::Script> script = v8::Script::Compile(source, &origin);
1634 script->Run();
1640 // Get the script id knowing that internally it is a 32 integer.
1641 int script_id = script->GetUnboundScript()->GetId();
1710 // Test conditional script break points.
1719 v8::Local<v8::String> script = v8::String::NewFromUtf8(
1725 // Compile the script and get function f.
1728 v8::Script::Compile(script, &origin)->Run();
1732 // Set script break point on line 1 (in function f).
1735 // Call f while enabeling and disabling the script break point.
1752 // Reload the script and get f again checking that the disabeling survives.
1753 v8::Script::Compile(script, &origin)->Run();
1768 // Test conditional script break points.
1777 v8::Local<v8::String> script = v8::String::NewFromUtf8(
1787 // Compile the script and get function f.
1790 v8::Script::Compile(script, &origin)->Run();
1794 // Set script break point on line 5 (in function g).
1797 // Call f with different conditions on the script break point.
1815 // Reload the script and get f again checking that the condition survives.
1816 v8::Script::Compile(script, &origin)->Run();
1831 // Test ignore count on script break points.
1840 v8::Local<v8::String> script = v8::String::NewFromUtf8(
1846 // Compile the script and get function f.
1849 v8::Script::Compile(script, &origin)->Run();
1853 // Set script break point on line 1 (in function f).
1856 // Call f with different ignores on the script break point.
1871 // Reload the script and get f again checking that the ignore survives.
1872 v8::Script::Compile(script, &origin)->Run();
1887 // Test that script break points survive when a script is reloaded.
1897 v8::Local<v8::String> script = v8::String::NewFromUtf8(
1912 // Set a script break point before the script is loaded.
1915 // Compile the script and get the function.
1916 v8::Script::Compile(script, &origin_1)->Run();
1920 // Call f and check that the script break point is active.
1925 // Compile the script again with a different script data and get the
1927 v8::Script::Compile(script, &origin_2)->Run();
1936 // Compile the script again and get the function.
1937 v8::Script::Compile(script, &origin_1)->Run();
1941 // Call f and check that the script break point is active.
1951 // Test when several scripts has the same script data
1977 // Set a script break point before the scripts are loaded.
1980 // Compile the scripts with same script data and get the functions.
1981 v8::Script::Compile(script_f, &origin)->Run();
1984 v8::Script::Compile(script_g, &origin)->Run();
1988 // Call f and g and check that the script break point is active.
1995 // Clear the script break point.
1998 // Call f and g and check that the script break point is no longer active.
2005 // Set script break point with the scripts loaded.
2008 // Call f and g and check that the script break point is active.
2020 // Test the script origin which has both name and line offset.
2030 v8::Local<v8::String> script = v8::String::NewFromUtf8(
2033 " a = 0; // line 8 as this script has line offset 7\n"
2034 " b = 0; // line 9 as this script has line offset 7\n"
2037 // Create script origin both name and line offset.
2042 // Set two script break points before the script is loaded.
2048 // Compile the script and get the function.
2049 v8::Script::Compile(script, &origin)->Run();
2053 // Call f and check that the script break point is active.
2058 // Clear the script break points.
2062 // Call f and check that no script break points are active.
2067 // Set a script break point with the script loaded.
2070 // Call f and check that the script break point is active.
2080 // Test script break points set on lines.
2095 v8::Local<v8::String> script =
2111 // Set a couple script break point before the script is loaded.
2119 // Compile the script and get the function.
2124 v8::Script::Compile(script, &origin)->Run();
2130 // Check that a break point was hit when the script was run.
2134 // Call f and check that the script break point.
2139 // Call g and check that the script break point.
2144 // Clear the script break point on g and set one on h.
2149 // Call g and check that the script break point in h is hit.
2154 // Clear break points in f and h. Set a new one in the script between
2166 // Reload the script which should hit two break points.
2168 v8::Script::Compile(script, &origin)->Run();
2176 // Reload the script which should hit three break points.
2178 v8::Script::Compile(script, &origin)->Run();
2182 // Clear the last break points, and reload the script which should not hit any
2188 v8::Script::Compile(script, &origin)->Run();
2196 // Test top level script break points set on lines.
2204 v8::Local<v8::String> script =
2213 CompileRunWithOrigin(script, "test.html");
2227 // Recompile and run script and check that break point was hit.
2229 CompileRunWithOrigin(script, "test.html");
2310 v8::Script::Compile(
2313 v8::Script::Compile(
2340 v8::Script::Compile(
2682 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), source))
3788 // Tests that breakpoint will be hit if it's set in script.
3797 // Create a script that returns a function.
3801 // Set breakpoint in the script.
3808 v8::Handle<v8::Script> script = v8::Script::Compile(
3810 v8::Local<v8::Value> r = script->Run();
3967 // v8::Script::Compile there is no JavaScript stack whereas when compiling using
3992 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), "+++"));
3999 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), "x x"));
4006 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), "eval('+++')"))
4014 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), "eval('x x')"))
4617 v8::Script::Compile(v8::String::NewFromUtf8(isolate, source))
4855 // Lets test script wait until break occurs to send commands.
5540 v8::Script::Compile(
5546 v8::Script::Compile(v8::String::NewFromUtf8(isolate,
5552 v8::Script::Compile(v8::String::NewFromUtf8(isolate,
5561 v8::Local<v8::Function>::Cast(v8::Script::Compile(
5571 v8::Script::Compile(
5573 v8::Script::Compile(v8::String::NewFromUtf8(isolate,
5579 v8::Script::Compile(
5581 v8::Script::Compile(v8::String::NewFromUtf8(isolate,
5589 v8::Script::Compile(v8::String::NewFromUtf8(isolate,
5593 v8::Script::Compile(
5599 v8::Script::Compile(
5602 v8::Script::Compile(v8::String::NewFromUtf8(isolate,
5806 v8::Handle<v8::Script> evil_script(v8::Script::Compile(source));
5835 // Test script break points set on lines.
5841 // Create functions for retrieving script name and data for the function on
5850 v8::Local<v8::String> script = v8::String::NewFromUtf8(env->GetIsolate(),
5857 v8::Handle<v8::Script> script1 = v8::Script::Compile(script, &origin1);
5867 // Compile the same script again without setting data. As the compilation
5869 v8::Script::Compile(script, &origin1)->Run();
5882 v8::Script::Compile(data_obj_source)->Run();
5885 v8::Handle<v8::Script> script2 = v8::Script::Compile(script, &origin2);
5893 v8::Handle<v8::Script> script3 = v8::Script::Compile(script, &origin2);
6011 const char* script = "function f() { debugger; g(); } function g() { }";
6012 CompileRun(script);
6077 const char* script =
6081 v8::Local<v8::Function> f = CompileFunction(env->GetIsolate(), script, "f");
6220 // Debug event listener which counts the script collected events.
6240 // Request the loaded scripts to initialize the debugger script cache.
6243 // Do garbage collection to ensure that only the script in this test will be
6250 v8::Script::Compile(
6252 v8::Script::Compile(
6256 // Do garbage collection to collect the script above which is no longer
6267 // Debug event listener which counts the script collected events.
6304 // Request the loaded scripts to initialize the debugger script cache.
6307 // Do garbage collection to ensure that only the script in this test will be
6312 v8::Script::Compile(v8::String::NewFromUtf8(isolate, "eval('a=1')"))->Run();
6313 v8::Script::Compile(v8::String::NewFromUtf8(isolate, "eval('a=2')"))->Run();
6324 // Do garbage collection to collect the script above which is no longer
6354 const char* script = "var a=1";
6357 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), script))
6363 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), script))
6380 const char* script = "function f() {};";
6383 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), script))
6420 const char* script = "function f() {throw new Error()};";
6423 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), script))
6446 const char* script = "function f() {};";
6449 // Set a couple of provisional breakpoint on lines out of the script lines
6463 // Compile a script whose first line number is greater than the breakpoints'
6465 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), script),
6468 // If the script is compiled successfully there is exactly one after compile
6531 // There should be one more break event when the script is evaluated in 'f'.
6711 v8::Handle<v8::Script> script = CompileWithOrigin(void0, void0);
6713 // Check backtrace from "void(0)" script.
6720 script->Run();
6894 v8::Script::Compile(
6930 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
6941 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
6951 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
6963 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
7030 v8::Script::Compile(v8::String::NewFromUtf8(
7035 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), "bar()"))
7128 v8::Script
7217 v8::Local<v8::Script> inline_script;
7228 i::Handle<i::Script> source_script = i::Handle<i::Script>(i::Script::cast(
7229 i::JSFunction::cast(*compiled_script)->shared()->script()));
7232 char script[128];
7233 i::Vector<char> script_vector(script, sizeof(script));
7235 v8::Local<v8::Value> result = CompileRun(script);
7244 v8::Local<v8::Value> result = CompileRun(script);
7246 i::Script::GetLineNumber(source_script, result->Int32Value()));
7273 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), source));
7296 // When doing StepNext through the first script, the debugger is not reset
7299 // for forEach in the second script under the assumption that we are in a
7301 // recorded frame pointer from the first script and fail when not finding it
7307 // We step through the first script. It exits through an exception. We run
7308 // this inside a new frame to record a different FP than the second script
7313 // The second script uses forEach.