Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 2 files). Show all
Unified · Split
| @@ -97,11 +97,15 @@ ScriptEngine::ScriptEngine(const QString& scriptContents, const QString& fileNam · 96 unmodified lines | |||
| 97 | _arrayBufferClass(NULL) | 97 | _arrayBufferClass(NULL) |
| 98 | { | 98 | { |
| 99 | _arrayBufferClass = new ArrayBufferClass(this); | 99 | _arrayBufferClass = new ArrayBufferClass(this); |
| 100 | qDebug() << "Engine: " << this; | 100 | new DataViewClass(this); |
| 101 | qDebug() << "ArrayBuffer: " <<_arrayBufferClass; | 101 | new Int8ArrayClass(this); |
| 102 | qDebug() << "DataView: " << new DataViewClass(this); | 102 | new Uint8ArrayClass(this); |
| 103 | qDebug() << "Int8Array: " << new Int8ArrayClass(this); | 103 | new Int16ArrayClass(this); |
| 104 | qDebug() << "Initial thread: " << QThread::currentThread() << " " << thread(); | 104 | new Uint16ArrayClass(this); |
| 105 | new Int32ArrayClass(this); | ||
| 106 | new Uint32ArrayClass(this); | ||
| 107 | new Float32ArrayClass(this); | ||
| 108 | new Float64ArrayClass(this); | ||
| 105 | } | 109 | } |
| 106 | 110 | ||
| 107 | ScriptEngine::ScriptEngine(const QUrl& scriptURL, | 111 | ScriptEngine::ScriptEngine(const QUrl& scriptURL, |
| @@ -134,11 +138,15 @@ ScriptEngine::ScriptEngine(const QUrl& scriptURL, · 26 unmodified lines | |||
| 134 | QUrl url(scriptURL); | 138 | QUrl url(scriptURL); |
| 135 | 139 | ||
| 136 | _arrayBufferClass = new ArrayBufferClass(this); | 140 | _arrayBufferClass = new ArrayBufferClass(this); |
| 137 | qDebug() << "Engine: " << this; | 141 | new DataViewClass(this); |
| 138 | qDebug() << "ArrayBuffer: " <<_arrayBufferClass; | 142 | new Int8ArrayClass(this); |
| 139 | qDebug() << "DataView: " << new DataViewClass(this); | 143 | new Uint8ArrayClass(this); |
| 140 | qDebug() << "Int8Array: " << new Int8ArrayClass(this); | 144 | new Int16ArrayClass(this); |
| 141 | qDebug() << "Initial thread: " << QThread::currentThread() << " " << thread(); | 145 | new Uint16ArrayClass(this); |
| 146 | new Int32ArrayClass(this); | ||
| 147 | new Uint32ArrayClass(this); | ||
| 148 | new Float32ArrayClass(this); | ||
| 149 | new Float64ArrayClass(this); | ||
| 142 | 150 | ||
| 143 | // if the scheme length is one or lower, maybe they typed in a file, let's try | 151 | // if the scheme length is one or lower, maybe they typed in a file, let's try |
| 144 | const int WINDOWS_DRIVE_LETTER_SIZE = 1; | 152 | const int WINDOWS_DRIVE_LETTER_SIZE = 1; |