Changeset 187677 in webkit for trunk/Source/JavaScriptCore/parser/SourceProvider.h
- Timestamp:
- Jul 31, 2015, 1:34:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/SourceProvider.h
r187560 r187677 95 95 }; 96 96 97 #if ENABLE(WEBASSEMBLY) 98 class WebAssemblySourceProvider : public SourceProvider { 99 public: 100 static Ref<WebAssemblySourceProvider> create(const Vector<uint8_t>& data, const String& url) 101 { 102 return adoptRef(*new WebAssemblySourceProvider(data, url)); 103 } 104 105 virtual const String& source() const override 106 { 107 return m_source; 108 } 109 110 const Vector<uint8_t>& data() const 111 { 112 return m_data; 113 } 114 115 private: 116 WebAssemblySourceProvider(const Vector<uint8_t>& data, const String& url) 117 : SourceProvider(url, TextPosition::minimumPosition()) 118 , m_source("[WebAssembly source]") 119 , m_data(data) 120 { 121 } 122 123 String m_source; 124 Vector<uint8_t> m_data; 125 }; 126 #endif 127 97 128 } // namespace JSC 98 129
Note:
See TracChangeset
for help on using the changeset viewer.