| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 T(FirstArgumentNotRegExp, \ | 125 T(FirstArgumentNotRegExp, \ |
| 126 "First argument to % must not be a regular expression") \ | 126 "First argument to % must not be a regular expression") \ |
| 127 T(FunctionBind, "Bind must be called on a function") \ | 127 T(FunctionBind, "Bind must be called on a function") \ |
| 128 T(GeneratorRunning, "Generator is already running") \ | 128 T(GeneratorRunning, "Generator is already running") \ |
| 129 T(IllegalInvocation, "Illegal invocation") \ | 129 T(IllegalInvocation, "Illegal invocation") \ |
| 130 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ | 130 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ |
| 131 T(InstanceofFunctionExpected, \ | 131 T(InstanceofFunctionExpected, \ |
| 132 "Expecting a function in instanceof check, but got %") \ | 132 "Expecting a function in instanceof check, but got %") \ |
| 133 T(InstanceofNonobjectProto, \ | 133 T(InstanceofNonobjectProto, \ |
| 134 "Function has non-object prototype '%' in instanceof check") \ | 134 "Function has non-object prototype '%' in instanceof check") \ |
| 135 T(InvalidAtomicAccessIndex, "Invalid atomic access index") \ |
| 135 T(InvalidArgument, "invalid_argument") \ | 136 T(InvalidArgument, "invalid_argument") \ |
| 136 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ | 137 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ |
| 137 T(InvalidSimdOperation, "% is not a valid type for this SIMD operation.") \ | 138 T(InvalidSimdOperation, "% is not a valid type for this SIMD operation.") \ |
| 138 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ | 139 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ |
| 139 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ | 140 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ |
| 140 T(LanguageID, "Language ID should be string or object.") \ | 141 T(LanguageID, "Language ID should be string or object.") \ |
| 141 T(MethodCalledOnWrongObject, \ | 142 T(MethodCalledOnWrongObject, \ |
| 142 "Method % called on a non-object or on a wrong type of object.") \ | 143 "Method % called on a non-object or on a wrong type of object.") \ |
| 143 T(MethodInvokedOnNullOrUndefined, \ | 144 T(MethodInvokedOnNullOrUndefined, \ |
| 144 "Method invoked on undefined or null value.") \ | 145 "Method invoked on undefined or null value.") \ |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 564 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 564 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 565 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 565 Handle<Object> data); | 566 Handle<Object> data); |
| 566 }; | 567 }; |
| 567 | 568 |
| 568 | 569 |
| 569 } // namespace internal | 570 } // namespace internal |
| 570 } // namespace v8 | 571 } // namespace v8 |
| 571 | 572 |
| 572 #endif // V8_MESSAGES_H_ | 573 #endif // V8_MESSAGES_H_ |
| OLD | NEW |