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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 T(StrongEllision, \ | 368 T(StrongEllision, \ |
369 "In strong mode, arrays with holes are deprecated, use maps instead") \ | 369 "In strong mode, arrays with holes are deprecated, use maps instead") \ |
370 T(StrongEmpty, \ | 370 T(StrongEmpty, \ |
371 "In strong mode, empty sub-statements are deprecated, make them explicit " \ | 371 "In strong mode, empty sub-statements are deprecated, make them explicit " \ |
372 "with '{}' instead") \ | 372 "with '{}' instead") \ |
373 T(StrongEqual, \ | 373 T(StrongEqual, \ |
374 "In strong mode, '==' and '!=' are deprecated, use '===' and '!==' " \ | 374 "In strong mode, '==' and '!=' are deprecated, use '===' and '!==' " \ |
375 "instead") \ | 375 "instead") \ |
376 T(StrongForIn, \ | 376 T(StrongForIn, \ |
377 "In strong mode, 'for'-'in' loops are deprecated, use 'for'-'of' instead") \ | 377 "In strong mode, 'for'-'in' loops are deprecated, use 'for'-'of' instead") \ |
378 T(StrongPropertyAccess, \ | |
379 "In strong mode, accessing missing property '%' of % is deprecated") \ | |
380 T(StrongSuperCallDuplicate, \ | 378 T(StrongSuperCallDuplicate, \ |
381 "In strong mode, invoking the super constructor multiple times is " \ | 379 "In strong mode, invoking the super constructor multiple times is " \ |
382 "deprecated") \ | 380 "deprecated") \ |
383 T(StrongSuperCallMisplaced, \ | 381 T(StrongSuperCallMisplaced, \ |
384 "In strong mode, the super constructor must be invoked before any " \ | 382 "In strong mode, the super constructor must be invoked before any " \ |
385 "assignment to 'this'") \ | 383 "assignment to 'this'") \ |
386 T(StrongSwitchFallthrough, \ | 384 T(StrongSwitchFallthrough, \ |
387 "In strong mode, switch fall-through is deprecated, terminate each case " \ | 385 "In strong mode, switch fall-through is deprecated, terminate each case " \ |
388 "with 'break', 'continue', 'return' or 'throw'") \ | 386 "with 'break', 'continue', 'return' or 'throw'") \ |
389 T(StrongUndefined, \ | 387 T(StrongUndefined, \ |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 452 |
455 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 453 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
456 Handle<Object> message_obj); | 454 Handle<Object> message_obj); |
457 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 455 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
458 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 456 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
459 Handle<Object> data); | 457 Handle<Object> data); |
460 }; | 458 }; |
461 } } // namespace v8::internal | 459 } } // namespace v8::internal |
462 | 460 |
463 #endif // V8_MESSAGES_H_ | 461 #endif // V8_MESSAGES_H_ |
OLD | NEW |