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

Side by Side Diff: src/messages.js

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 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/mips/assembler-mips.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], 113 promise_cyclic: ["Chaining cycle detected for promise ", "%0"],
114 array_functions_on_frozen: ["Cannot modify frozen array elements"], 114 array_functions_on_frozen: ["Cannot modify frozen array elements"],
115 array_functions_change_sealed: ["Cannot add/remove sealed array elements"], 115 array_functions_change_sealed: ["Cannot add/remove sealed array elements"],
116 first_argument_not_regexp: ["First argument to ", "%0", " must not be a re gular expression"], 116 first_argument_not_regexp: ["First argument to ", "%0", " must not be a re gular expression"],
117 // RangeError 117 // RangeError
118 invalid_array_length: ["Invalid array length"], 118 invalid_array_length: ["Invalid array length"],
119 invalid_array_buffer_length: ["Invalid array buffer length"], 119 invalid_array_buffer_length: ["Invalid array buffer length"],
120 invalid_string_length: ["Invalid string length"], 120 invalid_string_length: ["Invalid string length"],
121 invalid_typed_array_offset: ["Start offset is too large:"], 121 invalid_typed_array_offset: ["Start offset is too large:"],
122 invalid_typed_array_length: ["Invalid typed array length"], 122 invalid_typed_array_length: ["Invalid typed array length"],
123 invalid_typed_array_alignment: ["%0", " of ", "%1", " should be a multiple of ", "%2"], 123 invalid_typed_array_alignment: ["%0", "of", "%1", "should be a multiple of", " %3"],
124 typed_array_set_source_too_large: 124 typed_array_set_source_too_large:
125 ["Source is too large"], 125 ["Source is too large"],
126 typed_array_set_negative_offset: 126 typed_array_set_negative_offset:
127 ["Start offset is negative"], 127 ["Start offset is negative"],
128 invalid_data_view_offset: ["Start offset is outside the bounds of the buf fer"], 128 invalid_data_view_offset: ["Start offset is outside the bounds of the buf fer"],
129 invalid_data_view_length: ["Invalid data view length"], 129 invalid_data_view_length: ["Invalid data view length"],
130 invalid_data_view_accessor_offset: 130 invalid_data_view_accessor_offset:
131 ["Offset is outside the bounds of the DataView" ], 131 ["Offset is outside the bounds of the DataView" ],
132 132
133 stack_overflow: ["Maximum call stack size exceeded"], 133 stack_overflow: ["Maximum call stack size exceeded"],
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ], 169 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ],
170 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"], 170 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"],
171 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"], 171 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"],
172 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie s may not be accessed on strict mode functions or the arguments objects for call s to them"], 172 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie s may not be accessed on strict mode functions or the arguments objects for call s to them"],
173 strict_caller: ["Illegal access to a strict mode caller functi on."], 173 strict_caller: ["Illegal access to a strict mode caller functi on."],
174 unprotected_let: ["Illegal let declaration in unprotected statem ent context."], 174 unprotected_let: ["Illegal let declaration in unprotected statem ent context."],
175 unprotected_const: ["Illegal const declaration in unprotected stat ement context."], 175 unprotected_const: ["Illegal const declaration in unprotected stat ement context."],
176 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 176 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
177 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 177 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
178 harmony_const_assign: ["Assignment to constant variable."], 178 harmony_const_assign: ["Assignment to constant variable."],
179 symbol_to_string: ["Cannot convert a Symbol value to a string"], 179 symbol_to_string: ["Conversion from symbol to string"],
180 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"],
181 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"], 180 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"],
182 module_type_error: ["Module '", "%0", "' used improperly"], 181 module_type_error: ["Module '", "%0", "' used improperly"],
183 module_export_undefined: ["Export '", "%0", "' is not defined in module" ] 182 module_export_undefined: ["Export '", "%0", "' is not defined in module" ]
184 }; 183 };
185 184
186 185
187 function FormatString(format, args) { 186 function FormatString(format, args) {
188 var result = ""; 187 var result = "";
189 var arg_num = 0; 188 var arg_num = 0;
190 for (var i = 0; i < format.length; i++) { 189 for (var i = 0; i < format.length; i++) {
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 if (!constructor) return false; 932 if (!constructor) return false;
934 return GET_PRIVATE(this, CallSiteFunctionKey) === constructor; 933 return GET_PRIVATE(this, CallSiteFunctionKey) === constructor;
935 } 934 }
936 935
937 function CallSiteToString() { 936 function CallSiteToString() {
938 var fileName; 937 var fileName;
939 var fileLocation = ""; 938 var fileLocation = "";
940 if (this.isNative()) { 939 if (this.isNative()) {
941 fileLocation = "native"; 940 fileLocation = "native";
942 } else { 941 } else {
943 fileName = this.getScriptNameOrSourceURL(); 942 if (this.isEval()) {
944 if (!fileName && this.isEval()) { 943 fileName = this.getScriptNameOrSourceURL();
945 fileLocation = this.getEvalOrigin(); 944 if (!fileName) {
946 fileLocation += ", "; // Expecting source position to follow. 945 fileLocation = this.getEvalOrigin();
946 fileLocation += ", "; // Expecting source position to follow.
947 }
948 } else {
949 fileName = this.getFileName();
947 } 950 }
948 951
949 if (fileName) { 952 if (fileName) {
950 fileLocation += fileName; 953 fileLocation += fileName;
951 } else { 954 } else {
952 // Source code does not originate from a file and is not native, but we 955 // Source code does not originate from a file and is not native, but we
953 // can still get the source position inside the source string, e.g. in 956 // can still get the source position inside the source string, e.g. in
954 // an eval string. 957 // an eval string.
955 fileLocation += "<anonymous>"; 958 fileLocation += "<anonymous>";
956 } 959 }
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 %GetAndClearOverflowedStackTrace(this); 1350 %GetAndClearOverflowedStackTrace(this);
1348 }; 1351 };
1349 1352
1350 %DefineOrRedefineAccessorProperty( 1353 %DefineOrRedefineAccessorProperty(
1351 boilerplate, 'stack', getter, setter, DONT_ENUM); 1354 boilerplate, 'stack', getter, setter, DONT_ENUM);
1352 1355
1353 return boilerplate; 1356 return boilerplate;
1354 } 1357 }
1355 1358
1356 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1359 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « src/messages.cc ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698