1344477 - Part 2: Optimize Array.prototype.splice with JSOP_NORVCALL.

This commit is contained in:
Gaming4JC 2019-07-14 19:04:52 -04:00 committed by Roy Tam
commit 4f51cc381d
16 changed files with 28 additions and 149 deletions

View file

@ -146,9 +146,6 @@ array_push(JSContext* cx, unsigned argc, js::Value* vp);
extern bool
array_pop(JSContext* cx, unsigned argc, js::Value* vp);
extern bool
array_splice_impl(JSContext* cx, unsigned argc, js::Value* vp, bool pop);
extern bool
array_join(JSContext* cx, unsigned argc, js::Value* vp);
@ -173,6 +170,8 @@ array_reverse(JSContext* cx, unsigned argc, js::Value* vp);
extern bool
array_splice(JSContext* cx, unsigned argc, js::Value* vp);
extern const JSJitInfo array_splice_info;
/*
* Append the given (non-hole) value to the end of an array. The array must be
* a newborn array -- that is, one which has not been exposed to script for