| 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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 T(WasmTrapFuncInvalid, "invalid function") \ | 668 T(WasmTrapFuncInvalid, "invalid function") \ |
| 669 T(WasmTrapFuncSigMismatch, "function signature mismatch") \ | 669 T(WasmTrapFuncSigMismatch, "function signature mismatch") \ |
| 670 T(WasmTrapInvalidIndex, "invalid index into function table") \ | 670 T(WasmTrapInvalidIndex, "invalid index into function table") \ |
| 671 T(WasmTrapTypeError, "invalid type") \ | 671 T(WasmTrapTypeError, "invalid type") \ |
| 672 /* Asm.js validation warnings */ \ | 672 /* Asm.js validation warnings */ \ |
| 673 T(AsmJsInvalid, "Invalid asm.js: %") \ | 673 T(AsmJsInvalid, "Invalid asm.js: %") \ |
| 674 /* DataCloneError messages */ \ | 674 /* DataCloneError messages */ \ |
| 675 T(DataCloneError, "% could not be cloned.") \ | 675 T(DataCloneError, "% could not be cloned.") \ |
| 676 T(DataCloneErrorNeuteredArrayBuffer, \ | 676 T(DataCloneErrorNeuteredArrayBuffer, \ |
| 677 "An ArrayBuffer is neutered and could not be cloned.") \ | 677 "An ArrayBuffer is neutered and could not be cloned.") \ |
| 678 T(DataCloneErrorSharedArrayBufferNotTransferred, \ | 678 T(DataCloneErrorSharedArrayBufferTransferred, \ |
| 679 "A SharedArrayBuffer could not be cloned. SharedArrayBuffer must be " \ | 679 "A SharedArrayBuffer could not be cloned. SharedArrayBuffer must not be " \ |
| 680 "transferred.") \ | 680 "transferred.") \ |
| 681 T(DataCloneDeserializationError, "Unable to deserialize cloned data.") \ | 681 T(DataCloneDeserializationError, "Unable to deserialize cloned data.") \ |
| 682 T(DataCloneDeserializationVersionError, \ | 682 T(DataCloneDeserializationVersionError, \ |
| 683 "Unable to deserialize cloned data due to invalid or unsupported " \ | 683 "Unable to deserialize cloned data due to invalid or unsupported " \ |
| 684 "version.") | 684 "version.") |
| 685 | 685 |
| 686 class MessageTemplate { | 686 class MessageTemplate { |
| 687 public: | 687 public: |
| 688 enum Template { | 688 enum Template { |
| 689 #define TEMPLATE(NAME, STRING) k##NAME, | 689 #define TEMPLATE(NAME, STRING) k##NAME, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 const MessageLocation* loc, | 729 const MessageLocation* loc, |
| 730 Handle<Object> message_obj, | 730 Handle<Object> message_obj, |
| 731 v8::Local<v8::Value> api_exception_obj); | 731 v8::Local<v8::Value> api_exception_obj); |
| 732 }; | 732 }; |
| 733 | 733 |
| 734 | 734 |
| 735 } // namespace internal | 735 } // namespace internal |
| 736 } // namespace v8 | 736 } // namespace v8 |
| 737 | 737 |
| 738 #endif // V8_MESSAGES_H_ | 738 #endif // V8_MESSAGES_H_ |
| OLD | NEW |