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

Side by Side Diff: src/messages.h

Issue 1130783002: Migrate error messages, part 9. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « src/ic/ic.cc ('k') | src/messages.js » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The infrastructure used for (localized) message reporting in V8. 5 // The infrastructure used for (localized) message reporting in V8.
6 // 6 //
7 // Note: there's a big unresolved issue about ownership of the data 7 // Note: there's a big unresolved issue about ownership of the data
8 // structures used by this framework. 8 // structures used by this framework.
9 9
10 #ifndef V8_MESSAGES_H_ 10 #ifndef V8_MESSAGES_H_
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 T(DefaultOptionsMissing, "Internal % error. Default options are missing.") \ 119 T(DefaultOptionsMissing, "Internal % error. Default options are missing.") \
120 T(Unsupported, "Not supported") \ 120 T(Unsupported, "Not supported") \
121 T(WrongServiceType, "Internal error, wrong service type: %") \ 121 T(WrongServiceType, "Internal error, wrong service type: %") \
122 T(WrongValueType, "Internal error. Wrong value type.") \ 122 T(WrongValueType, "Internal error. Wrong value type.") \
123 /* TypeError */ \ 123 /* TypeError */ \
124 T(ApplyNonFunction, \ 124 T(ApplyNonFunction, \
125 "Function.prototype.apply was called on %, which is a % and not a " \ 125 "Function.prototype.apply was called on %, which is a % and not a " \
126 "function") \ 126 "function") \
127 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \ 127 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \
128 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \ 128 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \
129 T(ArrayNotSubclassable, "Subclassing Arrays is not currently supported.") \
129 T(CalledNonCallable, "% is not a function") \ 130 T(CalledNonCallable, "% is not a function") \
130 T(CalledOnNonObject, "% called on non-object") \ 131 T(CalledOnNonObject, "% called on non-object") \
131 T(CalledOnNullOrUndefined, "% called on null or undefined") \ 132 T(CalledOnNullOrUndefined, "% called on null or undefined") \
132 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ 133 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \
134 T(ConstructorNonCallable, \
135 "Class constructors cannot be invoked without 'new'") \
133 T(ConstructorNotFunction, "Constructor % requires 'new'") \ 136 T(ConstructorNotFunction, "Constructor % requires 'new'") \
134 T(CurrencyCode, "Currency code is required with currency style.") \ 137 T(CurrencyCode, "Currency code is required with currency style.") \
135 T(DataViewNotArrayBuffer, \ 138 T(DataViewNotArrayBuffer, \
136 "First argument to DataView constructor must be an ArrayBuffer") \ 139 "First argument to DataView constructor must be an ArrayBuffer") \
137 T(DateType, "this is not a Date object.") \ 140 T(DateType, "this is not a Date object.") \
138 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ 141 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \
139 T(FirstArgumentNotRegExp, \ 142 T(FirstArgumentNotRegExp, \
140 "First argument to % must not be a regular expression") \ 143 "First argument to % must not be a regular expression") \
141 T(FlagsGetterNonObject, \ 144 T(FlagsGetterNonObject, \
142 "RegExp.prototype.flags getter called on non-object %") \ 145 "RegExp.prototype.flags getter called on non-object %") \
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 T(SymbolToPrimitive, \ 213 T(SymbolToPrimitive, \
211 "Cannot convert a Symbol wrapper object to a primitive value") \ 214 "Cannot convert a Symbol wrapper object to a primitive value") \
212 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ 215 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \
213 T(SymbolToString, "Cannot convert a Symbol value to a string") \ 216 T(SymbolToString, "Cannot convert a Symbol value to a string") \
214 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ 217 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \
215 T(ValueAndAccessor, \ 218 T(ValueAndAccessor, \
216 "Invalid property. A property cannot both have accessors and be " \ 219 "Invalid property. A property cannot both have accessors and be " \
217 "writable or have a value, %") \ 220 "writable or have a value, %") \
218 T(WithExpression, "% has no properties") \ 221 T(WithExpression, "% has no properties") \
219 T(WrongArgs, "%: Arguments list has wrong type") \ 222 T(WrongArgs, "%: Arguments list has wrong type") \
223 /* ReferenceError */ \
224 T(NonMethod, "'super' is referenced from non-method") \
225 T(NotDefined, "% is not defined") \
226 T(UnsupportedSuper, "Unsupported reference to 'super'") \
220 /* RangeError */ \ 227 /* RangeError */ \
221 T(ArrayLengthOutOfRange, "defineProperty() array length out of range") \ 228 T(ArrayLengthOutOfRange, "defineProperty() array length out of range") \
222 T(DateRange, "Provided date is not in valid range.") \ 229 T(DateRange, "Provided date is not in valid range.") \
223 T(ExpectedLocation, "Expected Area/Location for time zone, got %") \ 230 T(ExpectedLocation, "Expected Area/Location for time zone, got %") \
224 T(InvalidArrayBufferLength, "Invalid array buffer length") \ 231 T(InvalidArrayBufferLength, "Invalid array buffer length") \
225 T(InvalidArrayLength, "Invalid array length") \ 232 T(InvalidArrayLength, "Invalid array length") \
226 T(InvalidCodePoint, "Invalid code point %") \ 233 T(InvalidCodePoint, "Invalid code point %") \
227 T(InvalidCountValue, "Invalid count value") \ 234 T(InvalidCountValue, "Invalid count value") \
228 T(InvalidCurrencyCode, "Invalid currency code: %") \ 235 T(InvalidCurrencyCode, "Invalid currency code: %") \
229 T(InvalidDataViewAccessorOffset, \ 236 T(InvalidDataViewAccessorOffset, \
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 }; 271 };
265 272
266 static MaybeHandle<String> FormatMessage(int template_index, 273 static MaybeHandle<String> FormatMessage(int template_index,
267 Handle<String> arg0, 274 Handle<String> arg0,
268 Handle<String> arg1, 275 Handle<String> arg1,
269 Handle<String> arg2); 276 Handle<String> arg2);
270 }; 277 };
271 } } // namespace v8::internal 278 } } // namespace v8::internal
272 279
273 #endif // V8_MESSAGES_H_ 280 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698