Skip to content

Commit b47f1c1

Browse files
author
qiang101.wang
committed
kbc1 does not contain inline cache
1 parent 349387c commit b47f1c1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

deps/quickjs/src/core/bytecode.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -581,22 +581,22 @@ static int JS_WriteFunctionTag(BCWriterState* s, JSValueConst obj) {
581581
bc_put_leb128(s, b->debug.line_num);
582582
bc_put_leb128(s, b->debug.pc2line_len);
583583
dbuf_put(&s->dbuf, b->debug.pc2line_buf, b->debug.pc2line_len);
584-
/**
584+
/**
585585
* purely for compatibility with WebF/Kraken V1 quickjs compiler (kbc1 file format).
586-
* determination of whether a column number is available by
586+
* determination of whether a column number is available by
587587
* adding a special sequence of characters.
588588
*/
589-
dbuf_putc(&s->dbuf, 255);
589+
/*dbuf_putc(&s->dbuf, 255);
590590
dbuf_putc(&s->dbuf, 67); // 'C'
591591
dbuf_putc(&s->dbuf, 79); // 'O'
592592
dbuf_putc(&s->dbuf, 76); // 'L'
593593
bc_put_leb128(s, b->debug.column_num);
594594
bc_put_leb128(s, b->debug.pc2column_len);
595-
dbuf_put(&s->dbuf, b->debug.pc2column_buf, b->debug.pc2column_len);
595+
dbuf_put(&s->dbuf, b->debug.pc2column_buf, b->debug.pc2column_len);*/
596596

597-
/**
597+
/**
598598
* purely for compatibility with WebF/Kraken V1 quickjs compiler (kbc1 file format).
599-
* determination of whether a Self PolyIC is available by
599+
* determination of whether a Self PolyIC is available by
600600
* adding a special sequence of characters.
601601
*/
602602
dbuf_putc(&s->dbuf, 255);
@@ -2173,4 +2173,4 @@ JSValue JS_ReadObject(JSContext* ctx, const uint8_t* buf, size_t buf_len, int fl
21732173
}
21742174
bc_reader_free(s);
21752175
return obj;
2176-
}
2176+
}

0 commit comments

Comments
 (0)