Skip to content

Commit 1ce252f

Browse files
committed
Убрано лишнее логирование из реализации строк
1 parent 7a85e3f commit 1ce252f

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

v8api/string.v

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,12 @@
8888
---
8989
void dtor()
9090
{
91-
if (obj.len == inplaceStringSize) {
92-
uint32 refs = mem::dword[obj.data];
93-
doLog("Str dtor data=" + formatInt(obj.data, "0x", 2 * sizeof_ptr) + ", refs=" + refs + " str=" + stringFromAddress(obj.data + 4));
94-
if (0 == mem::interlockedDecr(obj.data)) {
95-
//if (refs == 1) {
96-
#if ver < 8.3.11
97-
free(obj.data);
98-
#else
99-
v8free(obj.data, obj.pEnd - obj.data + 2);
100-
#endif
101-
}
102-
//} else
103-
// mem::dword[obj.data] = refs - 1;
91+
if (obj.len == inplaceStringSize && 0 == mem::interlockedDecr(obj.data)) {
92+
#if ver < 8.3.11
93+
free(obj.data);
94+
#else
95+
v8free(obj.data, obj.pEnd - obj.data + 2);
96+
#endif
10497
}
10598
}
10699
---
@@ -229,7 +222,6 @@
229222
:meths
230223
v8string opImplConv()const|int_ptr string__opImplConv(string& obj, v8string& ret)
231224
{
232-
doLog("Impl conv string " + obj);
233225
v8string__ctor3(ret, obj.cstr, obj.length);
234226
return ret.self;
235227
}

0 commit comments

Comments
 (0)