Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: src/messages.h

Issue 2570433005: Disallow passing a SharedArrayBuffer in the transfer list. (Closed)
Patch Set: TransferSharedArrayBuffer -> GetSharedArrayBufferId Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | src/value-serializer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 related */ \ 672 /* Asm.js validation related */ \
673 T(AsmJsInvalid, "Invalid asm.js: %") \ 673 T(AsmJsInvalid, "Invalid asm.js: %") \
674 T(AsmJsCompiled, "Converted asm.js to WebAssembly: %") \ 674 T(AsmJsCompiled, "Converted asm.js to WebAssembly: %") \
675 T(AsmJsInstantiated, "Instantiated asm.js: %") \ 675 T(AsmJsInstantiated, "Instantiated asm.js: %") \
676 /* DataCloneError messages */ \ 676 /* DataCloneError messages */ \
677 T(DataCloneError, "% could not be cloned.") \ 677 T(DataCloneError, "% could not be cloned.") \
678 T(DataCloneErrorNeuteredArrayBuffer, \ 678 T(DataCloneErrorNeuteredArrayBuffer, \
679 "An ArrayBuffer is neutered and could not be cloned.") \ 679 "An ArrayBuffer is neutered and could not be cloned.") \
680 T(DataCloneErrorSharedArrayBufferNotTransferred, \ 680 T(DataCloneErrorSharedArrayBufferTransferred, \
681 "A SharedArrayBuffer could not be cloned. SharedArrayBuffer must be " \ 681 "A SharedArrayBuffer could not be cloned. SharedArrayBuffer must not be " \
682 "transferred.") \ 682 "transferred.") \
683 T(DataCloneDeserializationError, "Unable to deserialize cloned data.") \ 683 T(DataCloneDeserializationError, "Unable to deserialize cloned data.") \
684 T(DataCloneDeserializationVersionError, \ 684 T(DataCloneDeserializationVersionError, \
685 "Unable to deserialize cloned data due to invalid or unsupported " \ 685 "Unable to deserialize cloned data due to invalid or unsupported " \
686 "version.") 686 "version.")
687 687
688 class MessageTemplate { 688 class MessageTemplate {
689 public: 689 public:
690 enum Template { 690 enum Template {
691 #define TEMPLATE(NAME, STRING) k##NAME, 691 #define TEMPLATE(NAME, STRING) k##NAME,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 const MessageLocation* loc, 731 const MessageLocation* loc,
732 Handle<Object> message_obj, 732 Handle<Object> message_obj,
733 v8::Local<v8::Value> api_exception_obj); 733 v8::Local<v8::Value> api_exception_obj);
734 }; 734 };
735 735
736 736
737 } // namespace internal 737 } // namespace internal
738 } // namespace v8 738 } // namespace v8
739 739
740 #endif // V8_MESSAGES_H_ 740 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/value-serializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698