| 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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 T(WasmTrapUnreachable, "unreachable") \ | 645 T(WasmTrapUnreachable, "unreachable") \ |
| 646 T(WasmTrapMemOutOfBounds, "memory access out of bounds") \ | 646 T(WasmTrapMemOutOfBounds, "memory access out of bounds") \ |
| 647 T(WasmTrapDivByZero, "divide by zero") \ | 647 T(WasmTrapDivByZero, "divide by zero") \ |
| 648 T(WasmTrapDivUnrepresentable, "divide result unrepresentable") \ | 648 T(WasmTrapDivUnrepresentable, "divide result unrepresentable") \ |
| 649 T(WasmTrapRemByZero, "remainder by zero") \ | 649 T(WasmTrapRemByZero, "remainder by zero") \ |
| 650 T(WasmTrapFloatUnrepresentable, "integer result unrepresentable") \ | 650 T(WasmTrapFloatUnrepresentable, "integer result unrepresentable") \ |
| 651 T(WasmTrapFuncInvalid, "invalid function") \ | 651 T(WasmTrapFuncInvalid, "invalid function") \ |
| 652 T(WasmTrapFuncSigMismatch, "function signature mismatch") \ | 652 T(WasmTrapFuncSigMismatch, "function signature mismatch") \ |
| 653 T(WasmTrapInvalidIndex, "invalid index into function table") \ | 653 T(WasmTrapInvalidIndex, "invalid index into function table") \ |
| 654 T(WasmTrapTypeError, "invalid type") \ | 654 T(WasmTrapTypeError, "invalid type") \ |
| 655 /* Asm.js validation warnings */ \ |
| 656 T(AsmJsInvalid, "Invalid asm.js: %") \ |
| 655 /* DataCloneError messages */ \ | 657 /* DataCloneError messages */ \ |
| 656 T(DataCloneError, "% could not be cloned.") \ | 658 T(DataCloneError, "% could not be cloned.") \ |
| 657 T(DataCloneErrorNeuteredArrayBuffer, \ | 659 T(DataCloneErrorNeuteredArrayBuffer, \ |
| 658 "An ArrayBuffer is neutered and could not be cloned.") \ | 660 "An ArrayBuffer is neutered and could not be cloned.") \ |
| 659 T(DataCloneErrorSharedArrayBufferNotTransferred, \ | 661 T(DataCloneErrorSharedArrayBufferNotTransferred, \ |
| 660 "A SharedArrayBuffer could not be cloned. SharedArrayBuffer must be " \ | 662 "A SharedArrayBuffer could not be cloned. SharedArrayBuffer must be " \ |
| 661 "transferred.") \ | 663 "transferred.") \ |
| 662 T(DataCloneDeserializationError, "Unable to deserialize cloned data.") \ | 664 T(DataCloneDeserializationError, "Unable to deserialize cloned data.") \ |
| 663 T(DataCloneDeserializationVersionError, \ | 665 T(DataCloneDeserializationVersionError, \ |
| 664 "Unable to deserialize cloned data due to invalid or unsupported " \ | 666 "Unable to deserialize cloned data due to invalid or unsupported " \ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 706 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 705 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 707 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
| 706 Handle<Object> data); | 708 Handle<Object> data); |
| 707 }; | 709 }; |
| 708 | 710 |
| 709 | 711 |
| 710 } // namespace internal | 712 } // namespace internal |
| 711 } // namespace v8 | 713 } // namespace v8 |
| 712 | 714 |
| 713 #endif // V8_MESSAGES_H_ | 715 #endif // V8_MESSAGES_H_ |
| OLD | NEW |