Home | History | Annotate | Download | only in src

Lines Matching refs:script

264 script tags in a browser setting.
295 * Set up the Script function and constructor.
297 %FunctionSetInstanceClassName(Script, 'Script');
298 %AddNamedProperty(Script.prototype, 'constructor', Script,
300 %SetCode(Script, function(x) {
301 // Script objects can only be created by the VM.
317 var script = %MessageGetScript(message);
318 var location = script.locationFromPosition(start_position, true);
327 var script = %MessageGetScript(message);
329 var location = script.locationFromPosition(start_position, true);
442 * start position of the source for the function within the full script source.
452 // Default is the first line in the script. Lines in the script is relative
485 * Get a slice of source code from the script. The boundaries for the slice is
490 * inclusive). Default is the number of lines in the script
526 // Default is the first line in the script. Lines in the script are relative
558 * If sourceURL comment is available and script starts at zero returns sourceURL
559 * comment contents. Otherwise, script name is returned. See
564 * @return {?string} script name if present, value for //# sourceURL or
578 SetUpLockedPrototype(Script,
596 * script : script object for the source
606 * @param {Script} script The Script object for which this is a location
614 function SourceLocation(script, position, line, column, start, end) {
615 this.script = script;
681 return %_CallFunction(this.script.source,
689 $Array("script", "position", "line", "column", "start", "end"),
698 * Class for a source slice. A source slice is a part of a script source with
700 * script : script object for the source
708 * @param {Script} script The Script object for the source slice
715 function SourceSlice(script, from_line, to_line, from_position, to_position) {
716 this.script = script;
729 return %_CallFunction(this.script.source,
736 $Array("script", "from_line", "to_line", "from_position", "to_position"),
744 var script = %MessageGetScript(message);
746 var location = script.locationFromPosition(start_position, false);
789 var script = %FunctionGetScript(GET_PRIVATE(this, CallSiteFunctionKey));
790 return script && script.compilation_type == COMPILATION_TYPE_EVAL;
794 var script = %FunctionGetScript(GET_PRIVATE(this, CallSiteFunctionKey));
795 return FormatEvalOrigin(script);
799 var script = %FunctionGetScript(GET_PRIVATE(this, CallSiteFunctionKey));
800 return script ? script.nameOrSourceURL() : null;
819 var script = %FunctionGetScript(GET_PRIVATE(this, CallSiteFunctionKey));
820 if (script && script.compilation_type == COMPILATION_TYPE_EVAL) {
859 var script = %FunctionGetScript(GET_PRIVATE(this, CallSiteFunctionKey));
860 return script ? script.name : null;
867 var script = %FunctionGetScript(GET_PRIVATE(this, CallSiteFunctionKey));
869 if (script) {
870 location = script.locationFromPosition(
880 var script = %FunctionGetScript(GET_PRIVATE(this, CallSiteFunctionKey));
882 if (script) {
883 location = script.locationFromPosition(
890 var script = %FunctionGetScript(GET_PRIVATE(this, CallSiteFunctionKey));
891 return script ? (script.type == TYPE_NATIVE) : false;
992 function FormatEvalOrigin(script) {
993 var sourceURL = script.nameOrSourceURL();
999 if (script.eval_from_function_name) {
1000 eval_origin += script.eval_from_function_name;
1005 var eval_from_script = script.eval_from_script;
1008 // eval script originated from another eval.
1011 // eval script originated from "real" source.
1015 script.eval_from_script_position, true);