Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: src/messages.js

Issue 6460038: Version 3.1.3.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/messages.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 no_input_to_regexp: ["No input to ", "%0"], 204 no_input_to_regexp: ["No input to ", "%0"],
205 invalid_json: ["String '", "%0", "' is not valid JSON"], 205 invalid_json: ["String '", "%0", "' is not valid JSON"],
206 circular_structure: ["Converting circular structure to JSON"], 206 circular_structure: ["Converting circular structure to JSON"],
207 obj_ctor_property_non_object: ["Object.", "%0", " called on non-object"], 207 obj_ctor_property_non_object: ["Object.", "%0", " called on non-object"],
208 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], 208 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"],
209 object_not_extensible: ["Can't add property ", "%0", ", object is n ot extensible"], 209 object_not_extensible: ["Can't add property ", "%0", ", object is n ot extensible"],
210 illegal_access: ["Illegal access"], 210 illegal_access: ["Illegal access"],
211 invalid_preparser_data: ["Invalid preparser data for function ", "%0 "], 211 invalid_preparser_data: ["Invalid preparser data for function ", "%0 "],
212 strict_mode_with: ["Strict mode code may not include a with st atement"], 212 strict_mode_with: ["Strict mode code may not include a with st atement"],
213 strict_catch_variable: ["Catch variable may not be eval or argument s in strict mode"], 213 strict_catch_variable: ["Catch variable may not be eval or argument s in strict mode"],
214 too_many_parameters: ["Too many parameters in function definition "],
214 strict_param_name: ["Parameter name eval or arguments is not al lowed in strict mode"], 215 strict_param_name: ["Parameter name eval or arguments is not al lowed in strict mode"],
215 strict_param_dupe: ["Strict mode function may not have duplicat e parameter names"], 216 strict_param_dupe: ["Strict mode function may not have duplicat e parameter names"],
216 strict_var_name: ["Variable name may not be eval or arguments in strict mode"], 217 strict_var_name: ["Variable name may not be eval or arguments in strict mode"],
217 strict_function_name: ["Function name may not be eval or arguments in strict mode"], 218 strict_function_name: ["Function name may not be eval or arguments in strict mode"],
218 strict_octal_literal: ["Octal literals are not allowed in strict m ode."], 219 strict_octal_literal: ["Octal literals are not allowed in strict m ode."],
219 strict_duplicate_property: ["Duplicate data property in object literal not allowed in strict mode"], 220 strict_duplicate_property: ["Duplicate data property in object literal not allowed in strict mode"],
220 accessor_data_property: ["Object literal may not have data and acces sor property with the same name"], 221 accessor_data_property: ["Object literal may not have data and acces sor property with the same name"],
221 accessor_get_set: ["Object literal may not have multiple get/s et accessors with the same name"], 222 accessor_get_set: ["Object literal may not have multiple get/s et accessors with the same name"],
222 strict_lhs_assignment: ["Assignment to eval or arguments is not all owed in strict mode"], 223 strict_lhs_assignment: ["Assignment to eval or arguments is not all owed in strict mode"],
223 strict_lhs_postfix: ["Postfix increment/decrement may not have e val or arguments operand in strict mode"], 224 strict_lhs_postfix: ["Postfix increment/decrement may not have e val or arguments operand in strict mode"],
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 var i = (lower + upper) >> 1; 310 var i = (lower + upper) >> 1;
310 311
311 if (position > line_ends[i]) { 312 if (position > line_ends[i]) {
312 lower = i + 1; 313 lower = i + 1;
313 } else if (position <= line_ends[i - 1]) { 314 } else if (position <= line_ends[i - 1]) {
314 upper = i - 1; 315 upper = i - 1;
315 } else { 316 } else {
316 return i; 317 return i;
317 } 318 }
318 } 319 }
320
319 return -1; 321 return -1;
320 } 322 }
321 323
322 /** 324 /**
323 * Get information on a specific source position. 325 * Get information on a specific source position.
324 * @param {number} position The source position 326 * @param {number} position The source position
325 * @param {boolean} include_resource_offset Set to true to have the resource 327 * @param {boolean} include_resource_offset Set to true to have the resource
326 * offset added to the location 328 * offset added to the location
327 * @return {SourceLocation} 329 * @return {SourceLocation}
328 * If line is negative or not in the source null is returned. 330 * If line is negative or not in the source null is returned.
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 else throw e; 1056 else throw e;
1055 } 1057 }
1056 } 1058 }
1057 1059
1058 %FunctionSetName(errorToString, 'toString'); 1060 %FunctionSetName(errorToString, 'toString');
1059 %SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM); 1061 %SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM);
1060 1062
1061 // Boilerplate for exceptions for stack overflows. Used from 1063 // Boilerplate for exceptions for stack overflows. Used from
1062 // Top::StackOverflow(). 1064 // Top::StackOverflow().
1063 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1065 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « src/messages.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698