Use custom dispatcher for Global object's routines (#2794)
Binary size gain:
- Intel: ~780B (gcc-7.3)
- Arm: ~450B (arm-linux-gnueabi-gcc-7.3)
The change also contains the renovation of each builtin routine to use early return in case of error to make the code less complicated.
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
committed by
László Langó
parent
e944cdaa8b
commit
c818930cdc
@@ -102,7 +102,7 @@ assert (decodeURIComponent ("%70%71%72%73%74%75%76%77%78%79%7a%7b%7c%7d%7e") ===
|
||||
assert (decodeURI ("%6A%6B%6C%6D%6E%6F") === "jklmno");
|
||||
assert (decodeURI ("%C3%A9") === "\xe9");
|
||||
assert (decodeURI ("%e2%b1%a5") === "\u2c65");
|
||||
/* assert (decodeURI ("%f0%90%90%a8") === "\ud801\udc28"); */
|
||||
assert (decodeURI ("%f0%90%90%a8") === "\ud801\udc28");
|
||||
|
||||
checkDecodeURIParseError ("13%");
|
||||
checkDecodeURIParseError ("%0g");
|
||||
|
||||
Reference in New Issue
Block a user