Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 45) sorted by relevance

12

/sqlite-3.40.0/ext/wasm/api/
H A Dextern-post-js.js18 const originalInit = self.sqlite3InitModule;
34 moduleScript: self?.document?.currentScript,
36 location: self.location,
37 urlParams: new URL(self.location.href).searchParams
52 self.sqlite3InitModule = (...args)=>{
55 if(self.window!==self &&
59 || self.location.pathname.endsWith('.worker.js')
78 self.sqlite3InitModule.ready = originalInit.ready;
80 if(self.sqlite3InitModuleState.moduleScript){
81 const sim = self.sqlite3InitModuleState;
[all …]
H A Dsqlite3-api-cleanup.js30 self.sqlite3ApiConfig || Object.create(null)
44 self.sqlite3ApiConfig = SABC;
47 sqlite3 = self.sqlite3ApiBootstrap();
52 delete self.sqlite3ApiBootstrap;
53 delete self.sqlite3ApiConfig;
56 if(self.location && +self.location.port > 1024){
58 self.S = sqlite3;
H A Dsqlite3-api-prologue.js142 self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(
143 apiConfig = (self.sqlite3ApiConfig || sqlite3ApiBootstrap.defaultConfig)
159 return !!self.BigInt64Array;
1215 || !self.FileSystemHandle
1216 || !self.FileSystemDirectoryHandle
1217 || !self.FileSystemFileHandle){
1382 if('local'===which || ""===which) rc.stores.push(self.localStorage);
1561 self.sqlite3ApiBootstrap.initializers = [];
1583 self.sqlite3ApiBootstrap.initializersAsync = [];
1593 self.sqlite3ApiBootstrap.defaultConfig = Object.create(null);
[all …]
H A Dsqlite3-api-worker1.js325 self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
332 const self = this.self;
394 self.postMessage( msg, Array.from(xferList) );
397 self.postMessage(msg);
604 self.onmessage = async function(ev){
652 self.postMessage({type:'sqlite3-api',result:'worker1-ready'});
653 }.bind({self, sqlite3}); field
H A Dsqlite3-worker1-promiser.js126 self.sqlite3Worker1Promiser = function callee(config = callee.defaultConfig){
239 self.sqlite3Worker1Promiser.defaultConfig = {
249 const urlParams = new URL(self.location.href).searchParams;
254 return new Worker(theJs + self.location.search);
256 currentScript: self?.document?.currentScript
H A Dsqlite3-api-opfs.js21 self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
79 if(!self.SharedArrayBuffer ||
80 !self.Atomics ||
81 !self.FileSystemHandle ||
82 !self.FileSystemDirectoryHandle ||
83 !self.FileSystemFileHandle ||
84 !self.FileSystemFileHandle.prototype.createSyncAccessHandle ||
93 const urlParams = new URL(self.location.href).searchParams;
145 console.log(self.location.href,
146 "metrics for",self.location.href,":",metrics,
[all …]
H A Dpre-js.js9 const sqlite3InitModuleState = self.sqlite3InitModuleState || Object.create(null);
10 delete self.sqlite3InitModuleState;
11 sqlite3InitModuleState.debugModule('self.location =',self.location);
H A Dsqlite3-api-glue.js19 self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
24 self.WhWasmUtilInstaller(wasm);
25 delete self.WhWasmUtilInstaller;
30 sqlite3.StructBinder = self.Jaccwabyt({
38 delete self.Jaccwabyt;
H A Dsqlite3-opfs-async-proxy.js35 if(self.window === self){
91 console.log(self.location.href,
92 "metrics for",self.location.href,":\n",
787 self.onmessage = function({data}){
/sqlite-3.40.0/ext/wasm/common/
H A DSqliteTestUtil.js17 (function(self){ argument
32 self.SqliteTestUtil = {
164 self.sqlite3TestModule = {
232 self.sqlite3ApiConfig = this.sqlite3ApiConfig;
233 return self.sqlite3InitModule(this).finally(()=>delete self.sqlite3ApiConfig);
236 })(self/*window or worker*/);
H A Dwhwasmutil.js174 self.WhWasmUtilInstaller = function(target){
177 target.bigIntEnabled = !!self['BigInt64Array'];
341 if(n===self['BigUint64Array']) return c.HEAP64U;
342 else if(n===self['BigInt64Array']) return c.HEAP64;
1660 self.WhWasmUtilInstaller.yawl = function(config){
1706 }.bind(self.WhWasmUtilInstaller)/*yawl()*/;
/sqlite-3.40.0/ext/wasm/
H A Dspeedtest1-worker.js4 const urlParams = new URL(self.location.href).searchParams;
17 if( !self.FileSystemHandle
18 || !self.FileSystemDirectoryHandle
19 || !self.FileSystemFileHandle){
71 self.onmessage = function(msg){
86 self.sqlite3InitModule(EmscriptenModule).then((sqlite3)=>{
H A Ddemo-123.js23 if(self.window === self /* UI thread */){
253 if(self.window!==self) /*worker thread*/{
269 const urlParams = new URL(self.location.href).searchParams;
275 self.sqlite3InitModule({
H A Ddemo-worker1-promiser.js18 const T = self.SqliteTestUtil;
52 self.sqlite3TestModule.setStatus(null)/*hide the HTML-side is-loading spinner*/;
59 const workerPromise = self.sqlite3Worker1Promiser(promiserConfig);
60 delete self.sqlite3Worker1Promiser;
H A Dbatch-runner.js21 const urlParams = new URL(self.location.href).searchParams;
484 d.handle = self.openDatabase('batch-runner', '0.1', 'foo', 1024 * 1024 * 50);
529 if('function' === typeof self.openDatabase){
583 self.sqlite3TestModule.initSqlite3().then(function(sqlite3_){
585 self.App = App /* only to facilitate dev console access */;
H A Ddemo-worker1.js21 const T = self.SqliteTestUtil;
323 self.sqlite3TestModule.setStatus(null);
344 self.SW = SW;
H A Dtest-opfs-vfs.js38 const urlArgs = new URL(self.location.href).searchParams;
81 self.sqlite3InitModule()
H A Ddemo-jsstorage.js19 const T = self.SqliteTestUtil;
111 sqlite3InitModule(self.sqlite3TestModule).then((sqlite3)=>{
/sqlite-3.40.0/src/
H A Dmutex_unix.c266 pthread_t self = pthread_self(); in pthreadMutexEnter() local
267 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexEnter()
272 p->owner = self; in pthreadMutexEnter()
309 pthread_t self = pthread_self(); in pthreadMutexTry() local
310 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexTry()
315 p->owner = self; in pthreadMutexTry()
/sqlite-3.40.0/test/
H A Dbc_common.tcl10 set self [info nameofexec]
11 set pattern "$self?*"
58 if {$bintag == ""} {set bintag self}
H A DvtabK.test49 VALUES('We hold these truths to be self-evident...');
51 } {{We hold these truths to be self-evident...}}
H A Dwithout_rowid3.test1366 1 { CREATE TABLE self(a INTEGER PRIMARY KEY, b REFERENCES self(a))
1368 2 { CREATE TABLE self(a PRIMARY KEY, b REFERENCES self(a)) WITHOUT rowid }
1369 3 { CREATE TABLE self(a UNIQUE, b INT PRIMARY KEY REFERENCES self(a))
1375 execsql { INSERT INTO self VALUES(13, 13) }
1378 execsql { UPDATE self SET a = 14, b = 14 }
1382 catchsql { UPDATE self SET b = 15 }
1386 catchsql { UPDATE self SET a = 15 }
1390 catchsql { UPDATE self SET a = 15, b = 16 }
1394 catchsql { UPDATE self SET a = 17, b = 17 }
1398 execsql { DELETE FROM self }
[all …]
/sqlite-3.40.0/ext/wasm/fiddle/
H A Dfiddle-worker.js108 self.onerror = function(/*message, source, lineno, colno, error*/) {
225 self.onmessage = function f(ev){
364 importScripts('fiddle-module.js'+self.location.search);
H A Dfiddle.js329 SF.worker = new Worker('fiddle-worker.js'+self.location.search);
391 self.onSFLoaded();
399 self.onSFLoaded = function(){
810 const urlParams = new URL(self.location.href).searchParams;
/sqlite-3.40.0/ext/wasm/jaccwabyt/
H A Djaccwabyt.js19 self.Jaccwabyt = function StructBinderFactory(config){
60 ? !!self['BigInt64Array'] : !!config.bigIntEnabled),
61 BigInt = self['BigInt'],
62 BigInt64Array = self['BigInt64Array'],

12