Skip to content

Commit 7de6d46

Browse files
authored
Remove inline caches (#884)
Inline caches are supposed to improve performance but benchmarks show it's currently a mixed bag: sometimes faster, sometimes slower, always more memory hungry. After due consideration, I think it's better to remove the current implementation and start afresh. Refs: #876
1 parent e1b5978 commit 7de6d46

File tree

2 files changed

+18
-486
lines changed

2 files changed

+18
-486
lines changed

quickjs-opcode.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,6 @@ DEF( is_null, 1, 1, 1, none)
365365
DEF(typeof_is_undefined, 1, 1, 1, none)
366366
DEF( typeof_is_function, 1, 1, 1, none)
367367

368-
// order matters, see non-IC counterparts
369-
DEF( get_field_ic, 5, 1, 1, none)
370-
DEF( get_field2_ic, 5, 1, 2, none)
371-
DEF( put_field_ic, 5, 2, 0, none)
372-
373368
#undef DEF
374369
#undef def
375370
#endif /* DEF */

0 commit comments

Comments
 (0)