Home | History | Annotate | Download | only in src

Lines Matching refs:script

82 // objects between script tags in a browser setting.
118 * Set up the Script function and constructor.
120 %FunctionSetInstanceClassName(Script, 'Script');
121 %SetProperty(Script.prototype, 'constructor', Script,
123 %SetCode(Script, function(x) {
124 // Script objects can only be created by the VM.
284 var script = %MessageGetScript(message);
285 var location = script.locationFromPosition(start_position, true);
294 var script = %MessageGetScript(message);
296 var location = script.locationFromPosition(start_position, true);
409 * start position of the source for the function within the full script source.
419 // Default is the first line in the script. Lines in the script is relative
452 * Get a slice of source code from the script. The boundaries for the slice is
457 * inclusive). Default is the number of lines in the script
493 // Default is the first line in the script. Lines in the script are relative
525 * Returns the name of script if available, contents of sourceURL comment
531 * @return {?string} script name if present, value for //@ sourceURL comment
572 SetUpLockedPrototype(Script,
590 * script : script object for the source
600 * @param {Script} script The Script object for which this is a location
608 function SourceLocation(script, position, line, column, start, end) {
609 this.script = script;
675 return %_CallFunction(this.script.source,
683 $Array("script", "position", "line", "column", "start", "end"),
692 * Class for a source slice. A source slice is a part of a script source with
694 * script : script object for the source
702 * @param {Script} script The Script object for the source slice
709 function SourceSlice(script, from_line, to_line, from_position, to_position) {
710 this.script = script;
723 return %_CallFunction(this.script.source,
730 $Array("script", "from_line", "to_line", "from_position", "to_position"),
738 var script = %MessageGetScript(message);
740 var location = script.locationFromPosition(start_position, false);
807 var script = %FunctionGetScript(this.fun);
808 return script && script.compilation_type == COMPILATION_TYPE_EVAL;
812 var script = %FunctionGetScript(this.fun);
813 return FormatEvalOrigin(script);
817 var script = %FunctionGetScript(this.fun);
818 return script ? script.nameOrSourceURL() : null;
834 var script = %FunctionGetScript(this.fun);
835 if (script && script.compilation_type == COMPILATION_TYPE_EVAL) {
877 var script = %FunctionGetScript(this.fun);
878 return script ? script.name : null;
885 var script = %FunctionGetScript(this.fun);
887 if (script) {
888 location = script.locationFromPosition(this.pos, true);
897 var script = %FunctionGetScript(this.fun);
899 if (script) {
900 location = script.locationFromPosition(this.pos, true);
906 var script = %FunctionGetScript(this.fun);
907 return script ? (script.type == TYPE_NATIVE) : false;
941 function FormatEvalOrigin(script) {
942 var sourceURL = script.nameOrSourceURL();
948 if (script.eval_from_function_name) {
949 eval_origin += script.eval_from_function_name;
954 var eval_from_script = script.eval_from_script;
957 // eval script originated from another eval.
960 // eval script originated from "real" source.
964 script.eval_from_script_position, true);
1130 // overwriting allows leaks of error objects between script blocks