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 "a location, got %") \ | 368 "a location, got %") \ |
369 T(InvalidArrayBufferLength, "Invalid array buffer length") \ | 369 T(InvalidArrayBufferLength, "Invalid array buffer length") \ |
370 T(ArrayBufferAllocationFailed, "Array buffer allocation failed") \ | 370 T(ArrayBufferAllocationFailed, "Array buffer allocation failed") \ |
371 T(InvalidArrayLength, "Invalid array length") \ | 371 T(InvalidArrayLength, "Invalid array length") \ |
372 T(InvalidAtomicAccessIndex, "Invalid atomic access index") \ | 372 T(InvalidAtomicAccessIndex, "Invalid atomic access index") \ |
373 T(InvalidCodePoint, "Invalid code point %") \ | 373 T(InvalidCodePoint, "Invalid code point %") \ |
374 T(InvalidCountValue, "Invalid count value") \ | 374 T(InvalidCountValue, "Invalid count value") \ |
375 T(InvalidCurrencyCode, "Invalid currency code: %") \ | 375 T(InvalidCurrencyCode, "Invalid currency code: %") \ |
376 T(InvalidDataViewAccessorOffset, \ | 376 T(InvalidDataViewAccessorOffset, \ |
377 "Offset is outside the bounds of the DataView") \ | 377 "Offset is outside the bounds of the DataView") \ |
378 T(InvalidDataViewLength, "Invalid data view length") \ | 378 T(InvalidDataViewLength, "Invalid DataView length %") \ |
379 T(InvalidDataViewOffset, "Start offset is outside the bounds of the buffer") \ | 379 T(InvalidDataViewOffset, \ |
| 380 "Start offset % is outside the bounds of the buffer") \ |
380 T(InvalidHint, "Invalid hint: %") \ | 381 T(InvalidHint, "Invalid hint: %") \ |
381 T(InvalidLanguageTag, "Invalid language tag: %") \ | 382 T(InvalidLanguageTag, "Invalid language tag: %") \ |
382 T(InvalidWeakMapKey, "Invalid value used as weak map key") \ | 383 T(InvalidWeakMapKey, "Invalid value used as weak map key") \ |
383 T(InvalidWeakSetValue, "Invalid value used in weak set") \ | 384 T(InvalidWeakSetValue, "Invalid value used in weak set") \ |
384 T(InvalidStringLength, "Invalid string length") \ | 385 T(InvalidStringLength, "Invalid string length") \ |
385 T(InvalidTimeValue, "Invalid time value") \ | 386 T(InvalidTimeValue, "Invalid time value") \ |
386 T(InvalidTypedArrayAlignment, "% of % should be a multiple of %") \ | 387 T(InvalidTypedArrayAlignment, "% of % should be a multiple of %") \ |
387 T(InvalidTypedArrayLength, "Invalid typed array length") \ | 388 T(InvalidTypedArrayLength, "Invalid typed array length") \ |
388 T(InvalidTypedArrayOffset, "Start offset is too large:") \ | 389 T(InvalidTypedArrayOffset, "Start offset is too large:") \ |
389 T(InvalidSimdIndex, "Index out of bounds for SIMD operation") \ | 390 T(InvalidSimdIndex, "Index out of bounds for SIMD operation") \ |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 581 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
581 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 582 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
582 Handle<Object> data); | 583 Handle<Object> data); |
583 }; | 584 }; |
584 | 585 |
585 | 586 |
586 } // namespace internal | 587 } // namespace internal |
587 } // namespace v8 | 588 } // namespace v8 |
588 | 589 |
589 #endif // V8_MESSAGES_H_ | 590 #endif // V8_MESSAGES_H_ |
OLD | NEW |