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