|
96 | 96 | /* dump objects freed by the garbage collector */ |
97 | 97 | //#define DUMP_GC_FREE |
98 | 98 | /* dump objects leaking when freeing the runtime */ |
99 | | -//#define DUMP_LEAKS 1 |
| 99 | +#define DUMP_LEAKS 0 |
100 | 100 | /* dump memory usage before running the garbage collector */ |
101 | 101 | //#define DUMP_MEM |
102 | 102 | //#define DUMP_OBJECTS /* dump objects in JS_FreeContext */ |
@@ -1291,7 +1291,6 @@ static JSValue JS_ToNumber(JSContext *ctx, JSValueConst val); |
1291 | 1291 | static int JS_SetPropertyValue(JSContext *ctx, JSValueConst this_obj, |
1292 | 1292 | JSValue prop, JSValue val, int flags); |
1293 | 1293 | static int JS_NumberIsInteger(JSContext *ctx, JSValueConst val); |
1294 | | -static BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val); |
1295 | 1294 | static JSValue JS_ToNumberFree(JSContext *ctx, JSValue val); |
1296 | 1295 | static int JS_GetOwnPropertyInternal(JSContext *ctx, JSPropertyDescriptor *desc, |
1297 | 1296 | JSObject *p, JSAtom prop); |
@@ -4612,7 +4611,7 @@ static JSValue js_rebalancee_string_rope(JSContext *ctx, JSValueConst rope) |
4612 | 4611 |
|
4613 | 4612 | /* op1 and op2 are converted to strings. For convenience, op1 or op2 = |
4614 | 4613 | JS_EXCEPTION are accepted and return JS_EXCEPTION. */ |
4615 | | -static JSValue JS_ConcatString(JSContext *ctx, JSValue op1, JSValue op2) |
| 4614 | +JSValue JS_ConcatString(JSContext *ctx, JSValue op1, JSValue op2) |
4616 | 4615 | { |
4617 | 4616 | JSString *p1, *p2; |
4618 | 4617 |
|
@@ -13103,7 +13102,7 @@ static int JS_NumberIsInteger(JSContext *ctx, JSValueConst val) |
13103 | 13102 | return isfinite(d) && floor(d) == d; |
13104 | 13103 | } |
13105 | 13104 |
|
13106 | | -static BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val) |
| 13105 | +BOOL JS_NumberIsNegativeOrMinusZero(JSContext *ctx, JSValueConst val) |
13107 | 13106 | { |
13108 | 13107 | uint32_t tag; |
13109 | 13108 |
|
@@ -55650,7 +55649,6 @@ int JS_AddIntrinsicBaseObjects(JSContext *ctx) |
55650 | 55649 | return -1; |
55651 | 55650 | return 0; |
55652 | 55651 | } |
55653 | | - |
55654 | 55652 | /* Typed Arrays */ |
55655 | 55653 |
|
55656 | 55654 | static uint8_t const typed_array_size_log2[JS_TYPED_ARRAY_COUNT] = { |
|
0 commit comments