• Home
  • Raw
  • Download

Lines Matching refs:script

328 ScriptBreakPoint.prototype.matchesScript = function(script) {  argument
330 return this.script_id_ == script.id;
333 if (!(script.line_offset <= this.line_ &&
334 this.line_ < script.line_offset + %ScriptLineCount(script))) {
338 return this.script_name_ == script.nameOrSourceURL();
340 return this.script_regexp_object_.test(script.nameOrSourceURL());
349 ScriptBreakPoint.prototype.set = function (script) { argument
356 var source_line = %ScriptSourceLine(script, line || script.line_offset);
359 if (!script.sourceColumnStart_) {
360 script.sourceColumnStart_ = new GlobalArray(%ScriptLineCount(script));
364 if (IS_UNDEFINED(script.sourceColumnStart_[line])) {
365 script.sourceColumnStart_[line] =
368 column = script.sourceColumnStart_[line];
372 var position = Debug.findScriptSourcePosition(script, this.line(), column);
380 var actual_position = %SetScriptBreakPoint(script, position,
386 var actual_location = script.locationFromPosition(actual_position, true);
389 script_id: script.id };
432 var script = scripts[i];
433 if (func_or_script_name.test(script.name)) {
434 last_result = script;
475 var script = %FunctionGetScript(func);
477 return %ScriptLocationFromLine(script, opt_line, opt_column, script_offset);
483 Debug.findScriptSourcePosition = function(script, opt_line, opt_column) { argument
484 var location = %ScriptLocationFromLine(script, opt_line, opt_column, 0);
532 var script = %FunctionGetScript(func);
534 if (script.type == Debug.ScriptType.Native) {
539 if (script && script.id) {
542 var location = script.locationFromPosition(source_position, false);
543 return this.setScriptBreakPointById(script.id,
551 var actual_location = script.locationFromPosition(actual_position, true);
554 script_id: script.id };
570 var script = scriptById(script_id);
571 if (script) {
574 break_point.actual_position = %SetScriptBreakPoint(script, position,
798 for (var script of scripts) {
799 if (script.id == scriptId) return script;
952 function MakeCompileEvent(script, type) { argument
953 return new CompileEvent(script, type);
957 function CompileEvent(script, type) { argument
958 this.script_ = MakeMirror(script);
968 CompileEvent.prototype.script = function() { method in CompileEvent
973 function MakeScriptObject_(script, include_source) { argument
974 var o = { id: script.id(),
975 name: script.name(),
976 lineOffset: script.lineOffset(),
977 columnOffset: script.columnOffset(),
978 lineCount: script.lineCount(),
980 if (!IS_UNDEFINED(script.data())) {
981 o.data = script.data();
984 o.source = script.source();