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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 T(NotAnIterator, "% is not an iterator") \ | 156 T(NotAnIterator, "% is not an iterator") \ |
157 T(NotAPromise, "% is not a promise") \ | 157 T(NotAPromise, "% is not a promise") \ |
158 T(NotConstructor, "% is not a constructor") \ | 158 T(NotConstructor, "% is not a constructor") \ |
159 T(NotDateObject, "this is not a Date object.") \ | 159 T(NotDateObject, "this is not a Date object.") \ |
160 T(NotIntlObject, "% is not an i18n object.") \ | 160 T(NotIntlObject, "% is not an i18n object.") \ |
161 T(NotGeneric, "% is not generic") \ | 161 T(NotGeneric, "% is not generic") \ |
162 T(NotIterable, "% is not iterable") \ | 162 T(NotIterable, "% is not iterable") \ |
163 T(NotTypedArray, "this is not a typed array.") \ | 163 T(NotTypedArray, "this is not a typed array.") \ |
164 T(NotSharedTypedArray, "% is not a shared typed array.") \ | 164 T(NotSharedTypedArray, "% is not a shared typed array.") \ |
165 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ | 165 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ |
| 166 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ |
166 T(ObjectGetterExpectingFunction, \ | 167 T(ObjectGetterExpectingFunction, \ |
167 "Object.prototype.__defineGetter__: Expecting function") \ | 168 "Object.prototype.__defineGetter__: Expecting function") \ |
168 T(ObjectGetterCallable, "Getter must be a function: %") \ | 169 T(ObjectGetterCallable, "Getter must be a function: %") \ |
169 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ | 170 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ |
170 T(ObjectSetterExpectingFunction, \ | 171 T(ObjectSetterExpectingFunction, \ |
171 "Object.prototype.__defineSetter__: Expecting function") \ | 172 "Object.prototype.__defineSetter__: Expecting function") \ |
172 T(ObjectSetterCallable, "Setter must be a function: %") \ | 173 T(ObjectSetterCallable, "Setter must be a function: %") \ |
173 T(ObserveCallbackFrozen, \ | 174 T(ObserveCallbackFrozen, \ |
174 "Object.observe cannot deliver to a frozen function object") \ | 175 "Object.observe cannot deliver to a frozen function object") \ |
175 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ | 176 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 455 |
455 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 456 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
456 Handle<Object> message_obj); | 457 Handle<Object> message_obj); |
457 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 458 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
458 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 459 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
459 Handle<Object> data); | 460 Handle<Object> data); |
460 }; | 461 }; |
461 } } // namespace v8::internal | 462 } } // namespace v8::internal |
462 | 463 |
463 #endif // V8_MESSAGES_H_ | 464 #endif // V8_MESSAGES_H_ |
OLD | NEW |