/AliOS-Things-master/components/amp/jslib/ |
A D | gen_bytecode_macos.sh | 1 ./qjsc_macos -c -m -M GPIO -N jslib_gpio -o bytecode/jslib_gpio.c src/gpio.js 2 ./qjsc_macos -c -m -N jslib_events -o bytecode/jslib_events.c src/events.js 3 ./qjsc_macos -c -m -M events -M CRYPTO -N jslib_crypto -o bytecode/jslib_crypto.c src/crypto.js 8 ./qjsc_macos -c -m -M REPL -M os -M std -N jslib_repl -o bytecode/jslib_repl.c src/repl.js 9 ./qjsc_macos -c -m -M events -M UART -N jslib_uart -o bytecode/jslib_uart.c src/uart.js 10 ./qjsc_macos -c -m -M events -M FS -N jslib_fs -o bytecode/jslib_fs.c src/fs.js 12 ./qjsc_macos -c -m -M kv -N jslib_device -o bytecode/jslib_device.c src/device.js 15 ./qjsc_macos -c -m -M MQTT -M events -N jslib_mqtt -o bytecode/jslib_mqtt.c src/mqtt.js 16 ./qjsc_macos -c -m -M events -M TCP -N jslib_tcp -o bytecode/jslib_tcp.c src/tcp.js 17 ./qjsc_macos -c -m -M events -M UDP -N jslib_udp -o bytecode/jslib_udp.c src/udp.js [all …]
|
A D | gen_bytecode_linux.sh | 1 ./qjsc_linux -c -m src/gpio.js -N jslib_gpio -M GPIO -o bytecode/jslib_gpio.c 2 ./qjsc_linux -c -m src/events.js -N jslib_events -o bytecode/jslib_events.c 3 ./qjsc_linux -c -m src/crypto.js -N jslib_crypto -M events -M CRYPTO -o bytecode/jslib_crypto.c 5 ./qjsc_linux -c -m src/appota.js -N jslib_appota -M events -M APPOTA -o bytecode/jslib_appota.c 8 ./qjsc_linux -c -m src/repl.js -o bytecode/jslib_repl.c -N jslib_repl -M REPL -M os -M std 9 ./qjsc_linux -c -m src/uart.js -o bytecode/jslib_uart.c -N jslib_uart -M events -M UART 10 ./qjsc_linux -c -m src/fs.js -o bytecode/jslib_fs.c -N jslib_fs -M events -M FS 12 ./qjsc_linux -c -m src/device.js -o bytecode/jslib_device.c -N jslib_device -M kv 15 ./qjsc_linux -c -m src/mqtt.js -N jslib_mqtt -M MQTT -M events -o bytecode/jslib_mqtt.c 16 ./qjsc_linux -c -m src/tcp.js -N jslib_tcp -M events -M TCP -o bytecode/jslib_tcp.c [all …]
|
A D | gen_bytecode.bat | 1 .\qjsc.exe -c -m -M GPIO -N jslib_gpio -o bytecode\jslib_gpio.c src\gpio.js 2 .\qjsc.exe -c -m -N jslib_events -o bytecode\jslib_events.c src\events.js 3 .\qjsc.exe -c -m -M events -M CRYPTO -N jslib_crypto -o bytecode\jslib_crypto.c src\crypto.js 5 .\qjsc.exe -c -m -M events -M APPOTA -N jslib_appota -o bytecode\jslib_appota.c src\appota.js 8 .\qjsc.exe -c -m -M REPL -M os -M std -N jslib_repl -o bytecode\jslib_repl.c src\repl.js 9 .\qjsc.exe -c -m -M events -M UART -N jslib_uart -o bytecode\jslib_uart.c src\uart.js 10 .\qjsc.exe -c -m -M events -M FS -N jslib_fs -o bytecode\jslib_fs.c src\fs.js 12 .\qjsc.exe -c -m -M kv -N jslib_device -o bytecode\jslib_device.c src\device.js 13 .\qjsc.exe -c -m -M events -M NETMGR -N jslib_netmgr -o bytecode\jslib_netmgr.c src\netmgr.js 15 .\qjsc.exe -c -m -M events -M MQTT -N jslib_mqtt -o bytecode\jslib_mqtt.c src\mqtt.js [all …]
|
/AliOS-Things-master/components/py_engine/engine/tools/ |
A D | mpy-tool.py | 131 opcode = bytecode[ip] 197 def extract_prelude(bytecode, ip): argument 199 b = bytecode[ip_ref[0]] 241 self.bytecode = bytecode 259 qst = self.bytecode[ip] | self.bytecode[ip + 1] << 8 701 read_byte(f, bytecode) 707 bytecode.append(qst & 0xFF) 708 bytecode.append(qst >> 8) 712 while not bytecode.is_full(): 714 f, sz = mp_opcode_format(bytecode.buf, bytecode.idx - 1, False) [all …]
|
/AliOS-Things-master/components/py_engine/tests/cmdline/ |
A D | cmd_showbc.py.exp | 2 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): 38 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): 316 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): 371 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): 389 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): 413 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): 429 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): 446 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): 470 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): 491 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): [all …]
|
A D | cmd_verbose.py.exp | 1 File cmdline/cmd_verbose.py, code block '<module>' (descriptor: \.\+, bytecode \.\+ bytes) 2 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
A D | cmd_parsetree.py.exp | 32 File cmdline/cmd_parsetree.py, code block '<module>' (descriptor: \.\+, bytecode @\.\+ bytes) 33 Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | objgenerator.c | 58 const uint8_t *ip = self_fun->bytecode; in gen_wrap_call() 95 uintptr_t prelude_offset = ((uintptr_t *)self_fun->bytecode)[0]; in native_gen_wrap_call() 99 prelude_offset = (const byte *)prelude_bytes->data - self_fun->bytecode; in native_gen_wrap_call() 101 const uint8_t *ip = self_fun->bytecode + prelude_offset; in native_gen_wrap_call() 122 uintptr_t start_offset = ((uintptr_t *)self_fun->bytecode)[1]; in native_gen_wrap_call() 123 o->code_state.ip = MICROPY_MAKE_POINTER_CALLABLE((void *)(self_fun->bytecode + start_offset)); in native_gen_wrap_call() 195 …= MICROPY_MAKE_POINTER_CALLABLE((const void *)(self->code_state.fun_bc->bytecode + 2 * sizeof(uint… in mp_obj_gen_resume()
|
A D | objfun.c | 168 const byte *bc = fun->bytecode; in mp_obj_fun_get_name() 198 #define DECODE_CODESTATE_SIZE(bytecode, n_state_out_var, state_size_out_var) \ argument 200 const uint8_t *ip = bytecode; \ 223 DECODE_CODESTATE_SIZE(self->bytecode, n_state, state_size); in mp_obj_fun_bc_prepare_codestate() 261 DECODE_CODESTATE_SIZE(self->bytecode, n_state, state_size); in fun_bc_call() 299 const byte *bytecode_ptr = self->bytecode; in fun_bc_call() 395 o->bytecode = code; in mp_obj_new_fun_bc() 414 mp_call_fun_t fun = MICROPY_MAKE_POINTER_CALLABLE((void *)self->bytecode); in fun_native_call()
|
A D | objfun.h | 34 const byte *bytecode; // bytecode for the function member
|
A D | profile.h | 54 void mp_prof_extract_prelude(const byte *bytecode, mp_bytecode_prelude_t *prelude);
|
A D | bc.c | 120 code_state->ip = self->bytecode + (size_t)code_state->ip; in mp_setup_code_state()
|
A D | profile.c | 40 void mp_prof_extract_prelude(const byte *bytecode, mp_bytecode_prelude_t *prelude) { in mp_prof_extract_prelude() argument 41 const byte *ip = bytecode; in mp_prof_extract_prelude()
|
A D | vm.c | 1466 const byte *ip = code_state->fun_bc->bytecode; in mp_execute_bytecode()
|
A D | emitnative.c | 96 #define OFFSETOF_OBJ_FUN_BC_BYTECODE (offsetof(mp_obj_fun_bc_t, bytecode) / sizeof(uintptr_t))
|
/AliOS-Things-master/components/py_engine/engine/lib/re1.5/ |
A D | re1.5.h | 139 #define HANDLE_ANCHORED(bytecode, is_anchored) ((is_anchored) ? (bytecode) + NON_ANCHORED_PREFIX : … argument
|
/AliOS-Things-master/components/py_engine/tests/micropython/ |
A D | decorator.py.exp | 1 bytecode
|
A D | decorator.py | 4 @micropython.bytecode
|
/AliOS-Things-master/components/py_engine/engine/mpy-cross/ |
A D | README.md | 20 bytecode, and such options can be passed to the cross compiler. For example,
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/doc/ |
A D | quickjs.texi | 157 Only output bytecode in a C file. The default is to output an executable file. 159 Output @code{main()} and bytecode in a C file. The default is to output an 859 If the script or module was compiled to bytecode with @code{qjsc}, it 865 Note: the bytecode format is linked to a given QuickJS 867 execution. Hence the bytecode should not be loaded from untrusted 868 sources. That's why there is no option to output the bytecode to a 925 The compiler generates bytecode directly with no intermediate 927 optimizations passes are done over the generated bytecode. 929 A stack-based bytecode was chosen because it is simple and generates 951 The generated C source contains the bytecode of the compiled functions [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | TODO | 12 - use 2 bytecode DynBufs in JSFunctionDef, one for reading, one for writing
|
A D | quickjs.c | 650 JSString* bytecode; /* also contains the flags */ member 4801 p->u.regexp.bytecode = NULL; in JS_NewObjectFromShape() 6058 compute_jsstring_size(p->u.regexp.bytecode, hp); in JS_ComputeMemoryUsage() 41404 JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_STRING, re->bytecode)); in js_regexp_finalizer() 41500 re->bytecode = JS_VALUE_GET_STRING(bc); in js_regexp_constructor_internal() 41643 JS_FreeValue(ctx, JS_MKPTR(JS_TAG_STRING, re->bytecode)); in js_regexp_compile() 41645 re->bytecode = JS_VALUE_GET_STRING(bc); in js_regexp_compile() 41672 flags = lre_get_flags(re->bytecode->u.str8); 41759 flags = lre_get_flags(re->bytecode->u.str8); in js_regexp_get_flag() 41869 re_bytecode = re->bytecode->u.str8; in js_regexp_exec() [all …]
|
/AliOS-Things-master/components/py_engine/engine/ |
A D | README.md | 26 bytecode, in both cases either from an on-device filesystem or "frozen" into 36 into precompiled bytecode.
|
/AliOS-Things-master/components/amp/ampsim/ |
A D | CMakeLists.txt | 42 aux_source_directory(../jslib/bytecode DIR_JSLIB)
|
/AliOS-Things-master/components/amp/engine/duktape_engine/duktape/ |
A D | duktape.c | 5122 const duk_uint8_t *bytecode; member 7857 #define DUK_HCOMPFUNC_GET_BYTECODE(heap,h) ((h)->bytecode) 7859 (h)->bytecode = (v); \ 7994 duk_instr_t *bytecode; member 61213 res->bytecode = NULL; 96320 (long) (pc - re_ctx->bytecode), 96884 re_ctx.bytecode = (const duk_uint8_t *) DUK_HSTRING_GET_DATA(h_bytecode); 96885 re_ctx.bytecode_end = re_ctx.bytecode + DUK_HSTRING_GET_BYTELEN(h_bytecode); 96891 pc = re_ctx.bytecode; 96894 re_ctx.bytecode = pc; [all …]
|