OLD | NEW |
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 T(FunctionBind, "Bind must be called on a function") \ | 129 T(FunctionBind, "Bind must be called on a function") \ |
130 T(GeneratorRunning, "Generator is already running") \ | 130 T(GeneratorRunning, "Generator is already running") \ |
131 T(IllegalInvocation, "Illegal invocation") \ | 131 T(IllegalInvocation, "Illegal invocation") \ |
132 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ | 132 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ |
133 T(InstanceofFunctionExpected, \ | 133 T(InstanceofFunctionExpected, \ |
134 "Expecting a function in instanceof check, but got %") \ | 134 "Expecting a function in instanceof check, but got %") \ |
135 T(InstanceofNonobjectProto, \ | 135 T(InstanceofNonobjectProto, \ |
136 "Function has non-object prototype '%' in instanceof check") \ | 136 "Function has non-object prototype '%' in instanceof check") \ |
137 T(InvalidArgument, "invalid_argument") \ | 137 T(InvalidArgument, "invalid_argument") \ |
138 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ | 138 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ |
| 139 T(InvalidRegExpExecResult, \ |
| 140 "RegExp exec method returned something other than an Object or null") \ |
139 T(InvalidSimdOperation, "% is not a valid type for this SIMD operation.") \ | 141 T(InvalidSimdOperation, "% is not a valid type for this SIMD operation.") \ |
140 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ | 142 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ |
141 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ | 143 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ |
142 T(LanguageID, "Language ID should be string or object.") \ | 144 T(LanguageID, "Language ID should be string or object.") \ |
143 T(MethodCalledOnWrongObject, \ | 145 T(MethodCalledOnWrongObject, \ |
144 "Method % called on a non-object or on a wrong type of object.") \ | 146 "Method % called on a non-object or on a wrong type of object.") \ |
145 T(MethodInvokedOnNullOrUndefined, \ | 147 T(MethodInvokedOnNullOrUndefined, \ |
146 "Method invoked on undefined or null value.") \ | 148 "Method invoked on undefined or null value.") \ |
147 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \ | 149 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \ |
148 T(NoAccess, "no access") \ | 150 T(NoAccess, "no access") \ |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 514 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
513 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 515 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
514 Handle<Object> data); | 516 Handle<Object> data); |
515 }; | 517 }; |
516 | 518 |
517 | 519 |
518 } // namespace internal | 520 } // namespace internal |
519 } // namespace v8 | 521 } // namespace v8 |
520 | 522 |
521 #endif // V8_MESSAGES_H_ | 523 #endif // V8_MESSAGES_H_ |
OLD | NEW |