Lines Matching refs:if
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 // If this object gets passed to an error constructor the error will
45 if (str.length == 2 && %_StringCharCodeAt(str, 0) == 0x25) {
48 if (arg_num < 4) {
63 // To check if something is a native error we need to check the
84 if (IsNativeErrorObject(obj)) {
93 if (obj != null && IS_OBJECT(obj) && obj.toString === ObjectToString) {
95 if (typeof constructor == "function") {
97 if (IS_STRING(constructorName) && constructorName !== "") {
107 if (IS_UNDEFINED(args)) {
131 if (kMessages === 0) {
276 if (!format) return "<unknown message " + message_type + ">";
283 if (start_position == -1) return kNoLineNumberInfo;
286 if (location == null) return kNoLineNumberInfo;
292 // position, or the empty string if the position is invalid.
297 if (location == null) return "";
335 * @return {number} 0 if input too small, -1 if input too large,
344 if (position > line_ends[upper]) {
349 if (position <= line_ends[0]) {
357 if (position > line_ends[i]) {
359 } else if (position <= line_ends[i - 1]) {
375 * If line is negative or not in the source null is returned.
380 if (line == -1) return null;
386 if (end > 0 && %_CallFunction(this.source, end - 1, StringCharAt) == '\r') {
392 if (include_resource_offset) {
394 if (line == this.line_offset) {
416 * If line is negative or not in the source null is returned.
422 if (!IS_UNDEFINED(opt_line)) {
426 // Default is first column. If on the first line add the offset within the
429 if (line == 0) {
434 if (line < 0 || column < 0 || offset_position < 0) return null;
435 if (line == 0) {
441 if (offset_line == -1 || offset_line + line >= this.lineCount()) {
470 if (from_line < 0) from_line = 0;
471 if (to_line > this.lineCount()) to_line = this.lineCount();
474 if (from_line >= this.lineCount() ||
496 if (!IS_UNDEFINED(opt_line)) {
501 if (line < 0 || this.lineCount() <= line) {
525 * Returns the name of script if available, contents of sourceURL comment
531 * @return {?string} script name if present, value for //@ sourceURL comment
535 if (this.name) {
541 if (this.hasCachedNameOrSourceURL)
554 if (sourceUrlPos > 4) {
563 if (match) {
598 * It might point just past the final position of the source if the last
631 if (!IS_UNDEFINED(opt_limit)) {
636 if (!IS_UNDEFINED(opt_before)) {
639 // If no before is specified center for small limits and perfer more source
641 if (limit <= 20) {
647 if (before >= limit) {
651 // If the [start, end[ interval is too big we restrict
654 if (this.end - this.start > limit) {
657 if (this.start < start_limit && end_limit < this.end) {
660 } else if (this.start < start_limit) {
720 * the line terminating characters (if any)
741 if (location == null) return -1;
763 if (hasBeenSet) {
789 if (!constructor) {
793 if (!constructorName) {
800 if (this.receiver == null) {
826 // See if the function knows its own name
828 if (name) {
835 if (script && script.compilation_type == COMPILATION_TYPE_EVAL) {
842 // See if we can find a unique property on the receiver that holds
845 if (ownName && this.receiver &&
859 if (this.receiver.__lookupGetter__(prop) === this.fun ||
863 // If we find more than one match bail out to avoid confusion.
864 if (name) {
870 if (name) {
882 if (this.pos == -1) {
887 if (script) {
894 if (this.pos == -1) {
899 if (script) {
916 if (!constructor) {
943 if (sourceURL) {
948 if (script.eval_from_function_name) {
955 if (eval_from_script) {
956 if (eval_from_script.compilation_type == COMPILATION_TYPE_EVAL) {
961 if (eval_from_script.name) {
965 if (location) {
982 if (frame.isNative()) {
984 } else if (frame.isEval()) {
986 if (!fileName) {
993 if (fileName) {
996 if (lineNumber != null) {
999 if (columnNumber) {
1005 if (!fileLocation) {
1013 if (isMethodCall) {
1016 if (functionName) {
1018 if (methodName && (methodName != functionName)) {
1024 } else if (isConstructor) {
1026 } else if (functionName) {
1032 if (addPrefix) {
1077 if (IS_FUNCTION($Error.prepareStackTrace)) {
1087 if (!stackTraceLimit || !IS_NUMBER(stackTraceLimit)) return;
1088 if (stackTraceLimit < 0 || stackTraceLimit > 10000) {
1114 if (name == 'Error') {
1136 if (%_IsConstructCall()) {
1143 if (m === kAddMessageAccessorsMarker) {
1149 } else if (!IS_UNDEFINED(m)) {
1184 if (!%PushIfAbsent(visited_errors, error)) throw cyclic_error_marker;
1191 if (type && !hasMessage) {
1195 if (name === "") return message;
1196 if (message === "") return name;
1204 if (!IS_SPEC_OBJECT(this)) {
1211 // If this error message was encountered already return the empty
1213 if (e === cyclic_error_marker) {