| 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 /* RangeError */ \ | 329 /* RangeError */ \ |
| 330 T(DateRange, "Provided date is not in valid range.") \ | 330 T(DateRange, "Provided date is not in valid range.") \ |
| 331 T(ExpectedTimezoneID, \ | 331 T(ExpectedTimezoneID, \ |
| 332 "Expected Area/Location(/Location)* for time zone, got %") \ | 332 "Expected Area/Location(/Location)* for time zone, got %") \ |
| 333 T(ExpectedLocation, \ | 333 T(ExpectedLocation, \ |
| 334 "Expected letters optionally connected with underscores or hyphens for " \ | 334 "Expected letters optionally connected with underscores or hyphens for " \ |
| 335 "a location, got %") \ | 335 "a location, got %") \ |
| 336 T(InvalidArrayBufferLength, "Invalid array buffer length") \ | 336 T(InvalidArrayBufferLength, "Invalid array buffer length") \ |
| 337 T(ArrayBufferAllocationFailed, "Array buffer allocation failed") \ | 337 T(ArrayBufferAllocationFailed, "Array buffer allocation failed") \ |
| 338 T(InvalidArrayLength, "Invalid array length") \ | 338 T(InvalidArrayLength, "Invalid array length") \ |
| 339 T(InvalidAtomicAccessIndex, "Invalid atomic access index") \ |
| 339 T(InvalidCodePoint, "Invalid code point %") \ | 340 T(InvalidCodePoint, "Invalid code point %") \ |
| 340 T(InvalidCountValue, "Invalid count value") \ | 341 T(InvalidCountValue, "Invalid count value") \ |
| 341 T(InvalidCurrencyCode, "Invalid currency code: %") \ | 342 T(InvalidCurrencyCode, "Invalid currency code: %") \ |
| 342 T(InvalidDataViewAccessorOffset, \ | 343 T(InvalidDataViewAccessorOffset, \ |
| 343 "Offset is outside the bounds of the DataView") \ | 344 "Offset is outside the bounds of the DataView") \ |
| 344 T(InvalidDataViewLength, "Invalid data view length") \ | 345 T(InvalidDataViewLength, "Invalid data view length") \ |
| 345 T(InvalidDataViewOffset, "Start offset is outside the bounds of the buffer") \ | 346 T(InvalidDataViewOffset, "Start offset is outside the bounds of the buffer") \ |
| 346 T(InvalidHint, "Invalid hint: %") \ | 347 T(InvalidHint, "Invalid hint: %") \ |
| 347 T(InvalidLanguageTag, "Invalid language tag: %") \ | 348 T(InvalidLanguageTag, "Invalid language tag: %") \ |
| 348 T(InvalidWeakMapKey, "Invalid value used as weak map key") \ | 349 T(InvalidWeakMapKey, "Invalid value used as weak map key") \ |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 519 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 519 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 520 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 520 Handle<Object> data); | 521 Handle<Object> data); |
| 521 }; | 522 }; |
| 522 | 523 |
| 523 | 524 |
| 524 } // namespace internal | 525 } // namespace internal |
| 525 } // namespace v8 | 526 } // namespace v8 |
| 526 | 527 |
| 527 #endif // V8_MESSAGES_H_ | 528 #endif // V8_MESSAGES_H_ |
| OLD | NEW |