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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
496 T(InvalidDataViewLength, "Invalid DataView length %") \ | 496 T(InvalidDataViewLength, "Invalid DataView length %") \ |
497 T(InvalidDataViewOffset, \ | 497 T(InvalidDataViewOffset, \ |
498 "Start offset % is outside the bounds of the buffer") \ | 498 "Start offset % is outside the bounds of the buffer") \ |
499 T(InvalidHint, "Invalid hint: %") \ | 499 T(InvalidHint, "Invalid hint: %") \ |
500 T(InvalidLanguageTag, "Invalid language tag: %") \ | 500 T(InvalidLanguageTag, "Invalid language tag: %") \ |
501 T(InvalidWeakMapKey, "Invalid value used as weak map key") \ | 501 T(InvalidWeakMapKey, "Invalid value used as weak map key") \ |
502 T(InvalidWeakSetValue, "Invalid value used in weak set") \ | 502 T(InvalidWeakSetValue, "Invalid value used in weak set") \ |
503 T(InvalidStringLength, "Invalid string length") \ | 503 T(InvalidStringLength, "Invalid string length") \ |
504 T(InvalidTimeValue, "Invalid time value") \ | 504 T(InvalidTimeValue, "Invalid time value") \ |
505 T(InvalidTypedArrayAlignment, "% of % should be a multiple of %") \ | 505 T(InvalidTypedArrayAlignment, "% of % should be a multiple of %") \ |
506 T(InvalidTypedArrayIndex, "Invalid typed array index") \ | |
506 T(InvalidTypedArrayLength, "Invalid typed array length") \ | 507 T(InvalidTypedArrayLength, "Invalid typed array length") \ |
507 T(InvalidTypedArrayOffset, "Start offset is too large:") \ | |
Henrique Ferreiro
2016/10/27 11:56:51
it isn't used anywhere
| |
508 T(InvalidSimdIndex, "Index out of bounds for SIMD operation") \ | 508 T(InvalidSimdIndex, "Index out of bounds for SIMD operation") \ |
509 T(InvalidSimdLaneValue, "Lane value out of bounds for SIMD operation") \ | 509 T(InvalidSimdLaneValue, "Lane value out of bounds for SIMD operation") \ |
510 T(LetInLexicalBinding, "let is disallowed as a lexically bound name") \ | 510 T(LetInLexicalBinding, "let is disallowed as a lexically bound name") \ |
511 T(LocaleMatcher, "Illegal value for localeMatcher:%") \ | 511 T(LocaleMatcher, "Illegal value for localeMatcher:%") \ |
512 T(NormalizationForm, "The normalization form should be one of %.") \ | 512 T(NormalizationForm, "The normalization form should be one of %.") \ |
513 T(NumberFormatRange, "% argument must be between 0 and 20") \ | 513 T(NumberFormatRange, "% argument must be between 0 and 20") \ |
514 T(PropertyValueOutOfRange, "% value is out of range.") \ | 514 T(PropertyValueOutOfRange, "% value is out of range.") \ |
515 T(StackOverflow, "Maximum call stack size exceeded") \ | 515 T(StackOverflow, "Maximum call stack size exceeded") \ |
516 T(ToPrecisionFormatRange, "toPrecision() argument must be between 1 and 21") \ | 516 T(ToPrecisionFormatRange, "toPrecision() argument must be between 1 and 21") \ |
517 T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \ | 517 T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \ |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
702 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 702 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
703 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 703 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
704 Handle<Object> data); | 704 Handle<Object> data); |
705 }; | 705 }; |
706 | 706 |
707 | 707 |
708 } // namespace internal | 708 } // namespace internal |
709 } // namespace v8 | 709 } // namespace v8 |
710 | 710 |
711 #endif // V8_MESSAGES_H_ | 711 #endif // V8_MESSAGES_H_ |
OLD | NEW |