| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 T(ObjectGetterExpectingFunction, \ | 166 T(ObjectGetterExpectingFunction, \ |
| 167 "Object.prototype.__defineGetter__: Expecting function") \ | 167 "Object.prototype.__defineGetter__: Expecting function") \ |
| 168 T(ObjectGetterCallable, "Getter must be a function: %") \ | 168 T(ObjectGetterCallable, "Getter must be a function: %") \ |
| 169 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ | 169 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ |
| 170 T(ObjectSetterExpectingFunction, \ | 170 T(ObjectSetterExpectingFunction, \ |
| 171 "Object.prototype.__defineSetter__: Expecting function") \ | 171 "Object.prototype.__defineSetter__: Expecting function") \ |
| 172 T(ObjectSetterCallable, "Setter must be a function: %") \ | 172 T(ObjectSetterCallable, "Setter must be a function: %") \ |
| 173 T(ObserveCallbackFrozen, \ | 173 T(ObserveCallbackFrozen, \ |
| 174 "Object.observe cannot deliver to a frozen function object") \ | 174 "Object.observe cannot deliver to a frozen function object") \ |
| 175 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ | 175 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ |
| 176 T(ObserveAccessChecked, "% cannot be called on access-checked objects") \ |
| 176 T(ObserveInvalidAccept, \ | 177 T(ObserveInvalidAccept, \ |
| 177 "Third argument to Object.observe must be an array of strings.") \ | 178 "Third argument to Object.observe must be an array of strings.") \ |
| 178 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ | 179 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ |
| 179 T(ObserveNonObject, "Object.% cannot % non-object") \ | 180 T(ObserveNonObject, "Object.% cannot % non-object") \ |
| 180 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ | 181 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ |
| 181 T(ObservePerformNonFunction, "Cannot perform non-function") \ | 182 T(ObservePerformNonFunction, "Cannot perform non-function") \ |
| 182 T(ObservePerformNonString, "Invalid non-string changeType") \ | 183 T(ObservePerformNonString, "Invalid non-string changeType") \ |
| 183 T(ObserveTypeNonString, \ | 184 T(ObserveTypeNonString, \ |
| 184 "Invalid changeRecord with non-string 'type' property") \ | 185 "Invalid changeRecord with non-string 'type' property") \ |
| 185 T(OrdinaryFunctionCalledAsConstructor, \ | 186 T(OrdinaryFunctionCalledAsConstructor, \ |
| (...skipping 268 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 SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 459 static 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 |