| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 223   T(StrictCannotAssign, "Cannot assign to read only '% in strict mode")        \ | 223   T(StrictCannotAssign, "Cannot assign to read only '% in strict mode")        \ | 
| 224   T(StrictDeleteProperty, "Cannot delete property '%' of %")                   \ | 224   T(StrictDeleteProperty, "Cannot delete property '%' of %")                   \ | 
| 225   T(StrictPoisonPill,                                                          \ | 225   T(StrictPoisonPill,                                                          \ | 
| 226     "'caller', 'callee', and 'arguments' properties may not be accessed on "   \ | 226     "'caller', 'callee', and 'arguments' properties may not be accessed on "   \ | 
| 227     "strict mode functions or the arguments objects for calls to them")        \ | 227     "strict mode functions or the arguments objects for calls to them")        \ | 
| 228   T(StrictReadOnlyProperty, "Cannot assign to read only property '%' of %")    \ | 228   T(StrictReadOnlyProperty, "Cannot assign to read only property '%' of %")    \ | 
| 229   T(StrongArity,                                                               \ | 229   T(StrongArity,                                                               \ | 
| 230     "In strong mode, calling a function with too few arguments is deprecated") \ | 230     "In strong mode, calling a function with too few arguments is deprecated") \ | 
| 231   T(StrongDeleteProperty,                                                      \ | 231   T(StrongDeleteProperty,                                                      \ | 
| 232     "On strong object %, deletion of property % is deprecated")                \ | 232     "On strong object %, deletion of property % is deprecated")                \ | 
| 233   T(StrongImplicitCast, "In strong mode, implicit conversions are deprecated") \ | 233   T(StrongImplicitConversion,                                                  \ | 
|  | 234     "In strong mode, implicit conversions are deprecated")                     \ | 
| 234   T(StrongRedefineDisallowed,                                                  \ | 235   T(StrongRedefineDisallowed,                                                  \ | 
| 235     "On strong object %, redefining writable, non-configurable property '%' "  \ | 236     "On strong object %, redefining writable, non-configurable property '%' "  \ | 
| 236     "to be non-writable is deprecated")                                        \ | 237     "to be non-writable is deprecated")                                        \ | 
| 237   T(StrongSetProto,                                                            \ | 238   T(StrongSetProto,                                                            \ | 
| 238     "On strong object %, redefining the internal prototype is deprecated")     \ | 239     "On strong object %, redefining the internal prototype is deprecated")     \ | 
| 239   T(SymbolKeyFor, "% is not a symbol")                                         \ | 240   T(SymbolKeyFor, "% is not a symbol")                                         \ | 
| 240   T(SymbolToPrimitive,                                                         \ | 241   T(SymbolToPrimitive,                                                         \ | 
| 241     "Cannot convert a Symbol wrapper object to a primitive value")             \ | 242     "Cannot convert a Symbol wrapper object to a primitive value")             \ | 
| 242   T(SymbolToNumber, "Cannot convert a Symbol value to a number")               \ | 243   T(SymbolToNumber, "Cannot convert a Symbol value to a number")               \ | 
| 243   T(SymbolToString, "Cannot convert a Symbol value to a string")               \ | 244   T(SymbolToString, "Cannot convert a Symbol value to a string")               \ | 
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 368   T(StrongEllision,                                                            \ | 369   T(StrongEllision,                                                            \ | 
| 369     "In strong mode, arrays with holes are deprecated, use maps instead")      \ | 370     "In strong mode, arrays with holes are deprecated, use maps instead")      \ | 
| 370   T(StrongEmpty,                                                               \ | 371   T(StrongEmpty,                                                               \ | 
| 371     "In strong mode, empty sub-statements are deprecated, make them explicit " \ | 372     "In strong mode, empty sub-statements are deprecated, make them explicit " \ | 
| 372     "with '{}' instead")                                                       \ | 373     "with '{}' instead")                                                       \ | 
| 373   T(StrongEqual,                                                               \ | 374   T(StrongEqual,                                                               \ | 
| 374     "In strong mode, '==' and '!=' are deprecated, use '===' and '!==' "       \ | 375     "In strong mode, '==' and '!=' are deprecated, use '===' and '!==' "       \ | 
| 375     "instead")                                                                 \ | 376     "instead")                                                                 \ | 
| 376   T(StrongForIn,                                                               \ | 377   T(StrongForIn,                                                               \ | 
| 377     "In strong mode, 'for'-'in' loops are deprecated, use 'for'-'of' instead") \ | 378     "In strong mode, 'for'-'in' loops are deprecated, use 'for'-'of' instead") \ | 
|  | 379   T(StrongPropertyAccess,                                                      \ | 
|  | 380     "In strong mode, accessing missing property '%' of % is deprecated")       \ | 
| 378   T(StrongSuperCallDuplicate,                                                  \ | 381   T(StrongSuperCallDuplicate,                                                  \ | 
| 379     "In strong mode, invoking the super constructor multiple times is "        \ | 382     "In strong mode, invoking the super constructor multiple times is "        \ | 
| 380     "deprecated")                                                              \ | 383     "deprecated")                                                              \ | 
| 381   T(StrongSuperCallMisplaced,                                                  \ | 384   T(StrongSuperCallMisplaced,                                                  \ | 
| 382     "In strong mode, the super constructor must be invoked before any "        \ | 385     "In strong mode, the super constructor must be invoked before any "        \ | 
| 383     "assignment to 'this'")                                                    \ | 386     "assignment to 'this'")                                                    \ | 
| 384   T(StrongSwitchFallthrough,                                                   \ | 387   T(StrongSwitchFallthrough,                                                   \ | 
| 385     "In strong mode, switch fall-through is deprecated, terminate each case "  \ | 388     "In strong mode, switch fall-through is deprecated, terminate each case "  \ | 
| 386     "with 'break', 'continue', 'return' or 'throw'")                           \ | 389     "with 'break', 'continue', 'return' or 'throw'")                           \ | 
| 387   T(StrongUndefined,                                                           \ | 390   T(StrongUndefined,                                                           \ | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 452 | 455 | 
| 453   static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 456   static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 
| 454                                    Handle<Object> message_obj); | 457                                    Handle<Object> message_obj); | 
| 455   static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 458   static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 
| 456   static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 459   static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 
| 457                                                      Handle<Object> data); | 460                                                      Handle<Object> data); | 
| 458 }; | 461 }; | 
| 459 } }  // namespace v8::internal | 462 } }  // namespace v8::internal | 
| 460 | 463 | 
| 461 #endif  // V8_MESSAGES_H_ | 464 #endif  // V8_MESSAGES_H_ | 
| OLD | NEW | 
|---|