| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 "Deleting property '%' of strong object '%' is deprecated") \ | 233 "Deleting property '%' of strong object '%' is deprecated") \ |
| 234 T(StrongExtendNull, "In strong mode, classes extending null are deprecated") \ | 234 T(StrongExtendNull, "In strong mode, classes extending null are deprecated") \ |
| 235 T(StrongImplicitConversion, \ | 235 T(StrongImplicitConversion, \ |
| 236 "In strong mode, implicit conversions are deprecated") \ | 236 "In strong mode, implicit conversions are deprecated") \ |
| 237 T(StrongRedefineDisallowed, \ | 237 T(StrongRedefineDisallowed, \ |
| 238 "On strong object %, redefining writable, non-configurable property '%' " \ | 238 "On strong object %, redefining writable, non-configurable property '%' " \ |
| 239 "to be non-writable is deprecated") \ | 239 "to be non-writable is deprecated") \ |
| 240 T(StrongSetProto, \ | 240 T(StrongSetProto, \ |
| 241 "On strong object %, redefining the internal prototype is deprecated") \ | 241 "On strong object %, redefining the internal prototype is deprecated") \ |
| 242 T(SymbolKeyFor, "% is not a symbol") \ | 242 T(SymbolKeyFor, "% is not a symbol") \ |
| 243 T(SymbolToPrimitive, \ | |
| 244 "Cannot convert a Symbol wrapper object to a primitive value") \ | |
| 245 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ | 243 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ |
| 246 T(SymbolToString, "Cannot convert a Symbol value to a string") \ | 244 T(SymbolToString, "Cannot convert a Symbol value to a string") \ |
| 247 T(SimdToNumber, "Cannot convert a SIMD value to a number") \ | 245 T(SimdToNumber, "Cannot convert a SIMD value to a number") \ |
| 248 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ | 246 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ |
| 249 T(ValueAndAccessor, \ | 247 T(ValueAndAccessor, \ |
| 250 "Invalid property. A property cannot both have accessors and be " \ | 248 "Invalid property. A property cannot both have accessors and be " \ |
| 251 "writable or have a value, %") \ | 249 "writable or have a value, %") \ |
| 252 T(VarRedeclaration, "Identifier '%' has already been declared") \ | 250 T(VarRedeclaration, "Identifier '%' has already been declared") \ |
| 253 T(WithExpression, "% has no properties") \ | 251 T(WithExpression, "% has no properties") \ |
| 254 T(WrongArgs, "%: Arguments list has wrong type") \ | 252 T(WrongArgs, "%: Arguments list has wrong type") \ |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 | 453 |
| 456 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 454 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
| 457 Handle<Object> message_obj); | 455 Handle<Object> message_obj); |
| 458 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 456 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 459 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 457 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 460 Handle<Object> data); | 458 Handle<Object> data); |
| 461 }; | 459 }; |
| 462 } } // namespace v8::internal | 460 } } // namespace v8::internal |
| 463 | 461 |
| 464 #endif // V8_MESSAGES_H_ | 462 #endif // V8_MESSAGES_H_ |
| OLD | NEW |