| 631 | } |
| 632 | void __JS_FreeValueRT(JSRuntime* rt, JSValue v); |
| 633 | static inline void JS_FreeValueRT(JSRuntime* rt, JSValue v) { |
| 634 | if (JS_VALUE_HAS_REF_COUNT(v)) { |
| 635 | JSRefCountHeader* p = (JSRefCountHeader*)JS_VALUE_GET_PTR(v); |
| 636 | if (--p->ref_count <= 0) { |
| 637 | __JS_FreeValueRT(rt, v); |
| 638 | } |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | static inline JSValue JS_DupValue(JSContext* ctx, JSValueConst v) { |
| 643 | if (JS_VALUE_HAS_REF_COUNT(v)) { |
no outgoing calls
no test coverage detected