Robert Fancsik
badfdf4dba
Replace vera++ with clang-format ( #4518 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
2021-11-05 14:15:47 +01:00
Robert Fancsik
bc091e1742
Optimize ecma_op_function_call ( #4817 )
...
Remove redundant isCallable checks
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
2021-11-04 17:26:28 +01:00
Zsolt Borbély
6a995e2887
Fix typos in the documentation and related files ( #4809 )
...
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2021-11-02 11:37:05 +01:00
Zoltan Herczeg
89e367bbfd
Optimize typed array access ( #4806 )
...
Use uint32 indexes instead of double indexes.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-11-02 11:07:56 +01:00
Zoltan Herczeg
a024eb2118
Add allocate/free callbacks to ArrayBuffers ( #4801 )
...
Larger buffer allocations will throw error instead of calling jerry_fatal.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-10-28 13:51:34 +02:00
Robert Fancsik
d2388e907f
Implement CreateAsyncFromSyncIterator ( #4802 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
2021-10-28 12:45:47 +02:00
Robert Fancsik
24c1a93d91
Remove block result ( #4799 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
2021-10-27 10:59:00 +02:00
Gergo Csizi
74f98ec4d7
Add Atomics support ( #4721 )
...
Creating atomics interface
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi csgergo92@gmail.com
2021-10-20 15:50:12 +02:00
Péter Gál
4e8d6344a8
Force value conversion in case of TypedArray filter method ( #4794 )
...
During the execution of the TypedArray filter method it is possible
to have a different sized output TypedArray than the input one.
When copying the data to the output array the values must be
correctly converted to the output TypedArray's value range.
Fixes : #4793
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2021-10-20 15:40:52 +02:00
Péter Gál
dae234f416
Correctly convert data in case of TypedArray slice ( #4796 )
...
When executin the TypedArray's slice method it is possible to have
the a different element sized output TypedArray. In such case
the data must be converted to the desired element type/size.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2021-10-20 15:40:33 +02:00
Péter Gál
4912e3b739
Avoid buffer-overflow in Array.slice when using fast arrays ( #4797 )
...
In the Array.slice method when the engine uses fast arrays the "end" value
was not updated if the input array's length changed. This can occur when the start/end
index normalization executes a method and the length is changed forcefully.
This leads to a buffer-overflow as the element copy reads too much data from the input
array.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2021-10-20 15:40:19 +02:00
Csaba Osztrogonác
54b1a3c739
Date.prototype.setTime should invalidate local TZA cache ( #4786 )
...
Fixes #4749 .
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
2021-10-01 12:59:38 +02:00
Zoltan Herczeg
14ff5bfb52
Add property key filters for built-in functions ( #4776 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-09-23 14:21:47 +02:00
Zoltan Herczeg
430289b27d
Fix built-in types ( #4772 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-09-17 08:18:28 +02:00
Zoltan Herczeg
77c2602205
Implement import.meta object ( #4766 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-09-15 17:44:16 +02:00
Zoltan Herczeg
d08b5be57f
Remove built-in flag from object type ( #4763 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-09-13 19:25:22 +02:00
Zoltan Herczeg
723b26392d
Fix property enumeration order of built-in properties ( #4761 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-09-13 15:32:14 +02:00
Zoltan Herczeg
6649940ea6
Implement function.toString operation ( #4752 )
...
May increase the memory consumtpion heavily.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-08-31 13:37:25 +02:00
batizdaniel
bf049fbe2d
Remove redundant checks from builtin-dispatchers ( #4741 )
...
We don't need to check arguments length inside the custom dispatchers,
because we have already checked within ecma_bultin_dispatch_routine.
JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz batizjob@gmail.com
2021-08-30 14:13:31 +02:00
batizdaniel
3bcd48f72d
Improve parse_identifier ( #4691 )
...
Ascii string length is no longer computed during string allocation.
JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz batizjob@gmail.com
2021-08-17 12:16:58 +02:00
Zoltan Herczeg
3ed93cfb51
Support parsing of scripts / functions stored in string values ( #4728 )
...
Function arguments must be passed as string values.
Snapshots are generated from compiled code rather than source code.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-08-11 17:37:12 +02:00
Gergo Csizi
b7dead7b05
Add guards for SharedArrayBuffer ( #4723 )
...
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi csgergo92@gmail.com
2021-08-10 17:21:06 +02:00
batizdaniel
a25b824509
Implement {Array, %TypedArray%, String}.prototype.at method ( #4681 )
...
The following methods were implemented:
- Array.prototype.at based on ECMA-262 Stage 3 Draft Relative Indexing Method proposal
- String.prototype.at based on ECMA-262 Stage 3 Draft Relative Indexing Method proposal
- TypedArray.prototype.at based on ECMA-262 Stage 3 Draft Relative Indexing Method proposal
https://tc39.es/proposal-relative-indexing-method/
JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz batizjob@gmail.com
2021-08-10 17:19:25 +02:00
Virag Orkenyi
b6ec9275aa
Add custom dispatcher to error-prototype ( #4692 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-08-03 11:09:33 +02:00
Zoltan Herczeg
c438d5fa92
Support string iterator for strings longer than 64K ( #4727 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-08-03 10:44:19 +02:00
Tóth Béla
f71a4a6975
Merge Promise Guard with ESNEXT ( #4725 )
...
JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2021-08-02 17:35:32 +02:00
Gergo Csizi
d9360f51d0
Add SharedArrayBuffer support ( #4689 )
...
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi csgergo92@gmail.com
2021-07-23 17:29:06 +02:00
Virag Orkenyi
bbf1c0105b
Add custom dispatcher to builtin-json. ( #4679 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-07-20 11:32:20 +02:00
Virag Orkenyi
b25b640ff5
Add custom dispatcher to array-iterator-prototype ( #4693 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-07-20 11:31:25 +02:00
Virag Orkenyi
298228abdd
Add custom dispatcher to map-iterator-prototype ( #4694 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-07-20 11:30:55 +02:00
Virag Orkenyi
57a09cbc9d
Add custom dispatcher to async-iterator-prototype ( #4714 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-07-20 11:30:13 +02:00
Virag Orkenyi
d65d035a36
Add custom dispatcher to builtin-string-iterator-prototype ( #4715 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-07-20 11:29:38 +02:00
Virag Orkenyi
6296a8251c
Add custom dispatcher to builtin-iterator-prototype ( #4716 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-07-20 11:29:10 +02:00
Virag Orkenyi
7de391931a
Add custom dispatcher to set-iterator-prototype ( #4717 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-07-20 11:28:30 +02:00
Tóth Béla
305741a608
Merge Map and Set Guards with Container ( #4709 )
...
Remove JERRY_BUILTIN_MAP/SET/WEAKMAP/WEAKSET
and replace them with JERRY_BUILTIN_CONTAINER.
JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2021-07-12 11:20:38 +02:00
Virag Orkenyi
811fd4c054
Add custom dispatcher to builtin_string ( #4661 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-06-24 15:40:48 +02:00
batizdaniel
6de17b204e
Fix implicit conversion error ( #4684 )
...
This patch fixes the #4682
JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz batizjob@gmail.com
2021-06-24 15:38:56 +02:00
Virag Orkenyi
d97d407eee
Add custom dispatcher to builtin_weakref_prototype. ( #4686 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-06-24 15:36:47 +02:00
Virag Orkenyi
dddd37d38f
Add custom dispatcher to builtin-proxy ( #4687 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
2021-06-24 15:36:25 +02:00
Zoltan Herczeg
5729dd8cec
Object.assign should copy undefined values ( #4688 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-06-10 10:59:54 +02:00
kisbg
a58884c169
Update TypedArray internals methods ( #4653 )
...
releated test262 test-cases has been removed from the skip list.
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
2021-04-27 09:45:26 +02:00
Tóth Béla
cc1a263657
Continue replacing duplicate ecma definitions ( #4644 )
...
JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2021-04-19 13:44:01 +02:00
Zoltan Herczeg
7b6743403f
Support native modules ( #4649 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-04-13 16:26:38 +02:00
kisbg
60cbc93cd7
Update TypedArray Builtin function ( #4633 )
...
Also create TypedArray object with object method has been added.
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
2021-04-13 13:37:04 +02:00
Zoltan Herczeg
b3ec217b50
Create namespace with references for modules ( #4646 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-04-12 15:58:56 +02:00
Zoltan Herczeg
ef35c0329c
Remove class id storing for class objects ( #4645 )
...
The two bytes which stored the id is free to use. Currently the only exception is containers.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-04-08 14:46:16 +02:00
kisbg
2381078e80
Add constant error messages ( #4640 )
...
added two new file ecma-errors.h and ecma-erros.c
it contains the most used errors messages.
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
2021-04-07 12:46:12 +02:00
Zoltan Herczeg
d85020f709
Remove pseudo array object type from the project ( #4643 )
...
A new class type enum is introduced to describe the class of objects.
This enum is organized to improve property resolve and GC performance.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-04-06 18:46:48 +02:00
Tóth Béla
6677fa0a12
Replace duplicate ecma definitions ( #4637 )
...
JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2021-03-31 11:52:33 +02:00
kisbg
22ebb00a4c
Implement Promise.any and AggregateError Object ( #4623 )
...
JerryScript-DCO-1.0-Signed-off-by: Bence Gabor Kis kisbg@inf.u-szeged.hu
2021-03-22 12:42:20 +01:00