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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 T(NonObjectPropertyStore, "Cannot set property '%' of %") \ | 154 T(NonObjectPropertyStore, "Cannot set property '%' of %") \ |
155 T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \ | 155 T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \ |
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.") \ |
| 165 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ |
164 T(ObjectGetterExpectingFunction, \ | 166 T(ObjectGetterExpectingFunction, \ |
165 "Object.prototype.__defineGetter__: Expecting function") \ | 167 "Object.prototype.__defineGetter__: Expecting function") \ |
166 T(ObjectGetterCallable, "Getter must be a function: %") \ | 168 T(ObjectGetterCallable, "Getter must be a function: %") \ |
167 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ | 169 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ |
168 T(ObjectSetterExpectingFunction, \ | 170 T(ObjectSetterExpectingFunction, \ |
169 "Object.prototype.__defineSetter__: Expecting function") \ | 171 "Object.prototype.__defineSetter__: Expecting function") \ |
170 T(ObjectSetterCallable, "Setter must be a function: %") \ | 172 T(ObjectSetterCallable, "Setter must be a function: %") \ |
171 T(ObserveCallbackFrozen, \ | 173 T(ObserveCallbackFrozen, \ |
172 "Object.observe cannot deliver to a frozen function object") \ | 174 "Object.observe cannot deliver to a frozen function object") \ |
173 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ | 175 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 449 |
448 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 450 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
449 Handle<Object> message_obj); | 451 Handle<Object> message_obj); |
450 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 452 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
451 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 453 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
452 Handle<Object> data); | 454 Handle<Object> data); |
453 }; | 455 }; |
454 } } // namespace v8::internal | 456 } } // namespace v8::internal |
455 | 457 |
456 #endif // V8_MESSAGES_H_ | 458 #endif // V8_MESSAGES_H_ |
OLD | NEW |