Comments (7)
我在v2ex上面看到一个人头像和名字都和你一样,是你吗?
from quickjs.
@moqi2011 Yes....
from quickjs.
refer this repo (support msvc 2017 or 2019): https://github.com/c-smile/quickjs/
from quickjs.
refer this repo (support msvc 2017 or 2019): https://github.com/c-smile/quickjs/
another official repo?
from quickjs.
This eval
s a 1.4MB string in such a way that QuickJS generates an enormous number of OP_with_get_var
opcodes when compiling that source string. When compiling a function (or eval
'd string), QuickJS must determine how much space it needs for its evaluation stack. Since OP_with_get_var
does a conditional forward jump, compute_stack_size_rec
recurses to check what the maximum required evaluation stack size is both when the conditional jump is taken, and when it is not taken.
Generate a function with lots and lots of OP_with_get_var
opcodes, and the recursion tree for compute_stack_size_rec
will be enormous.
This is unfortunate, since the recursive code for compute_stack_size_rec
is quite simple and straightforward. From a cursory examination, it looks like any fix will make the function significantly less readable.
from quickjs.
fixed
from quickjs.
OK, so explicit recursion is no longer used to explore different paths through a function and calculate the required stack size. Instead, paths which still need to be searched are pushed onto a queue.
I must say that the fix is simpler and less intrusive than what I had imagined. Nice!
from quickjs.
Related Issues (20)
- [repl] Cannot interrupt executions with Ctrl-C on Windows
- [module] Crash on importing a non-existent module HOT 2
- libpthread related errors when cross-compiling for Windows on Ubuntu HOT 5
- `JS_Eval` UBSAN Error: Null pointer passed to `memcpy` HOT 4
- [syntax] Incorrect parsing for code that lacks a semicolon HOT 6
- [Windows + cosmopolitan] AltGr characters cannot be typed in shell HOT 1
- Make quickjs version available for C code. HOT 1
- Is there a reason for not installing quickjs-atom.h in make install? HOT 2
- [build] make install does not work properly on Windows+MingW64 HOT 1
- Implicit await in repl for Promises? HOT 1
- Can't catch exceptions when I upgrade version from 2023-12-09 to 2024-01-13 HOT 3
- Minimum Common Web Platform API for Non-Browser EcmaScript-based runtimes HOT 8
- Support import attributes HOT 1
- Structured stack trace access HOT 2
- An exception escapes try/catch block in an async function
- Web Assembly output HOT 2
- NULL dereference in win32 if getTimezoneOffset() is given pre-1970
- examples/hello_module is broken, produces "TypeError: not a function" HOT 1
- Undefined symbol `_bfdec_normalize_and_round`, when compiling without `CONFIG_BIGNUM`, since 94010ed HOT 1
- shebang support for qjs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickjs.