Zoltan Herczeg
e7ffb70ae0
Rework external string free operation ( #4690 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-08-17 08:31:30 +02:00
Gergo Csizi
fc29019165
Simplify jerry_get_resource_name ( #4730 )
...
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
2021-08-12 17:21:37 +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 [email protected]
2021-08-11 17:37:12 +02:00
Zoltan Herczeg
444806d78a
Implement vm_throw callback ( #4726 )
...
Slightly improve the description of vm_exec_stop callback.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-08-10 15:50:26 +02:00
Zoltan Herczeg
951044c036
Change resource name to a string. ( #4724 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-27 13:40:19 +02:00
Tóth Béla and bence gabor kis
d99905aca6
Implement container operators API function ( #4697 )
...
Basically re-opening and updating #4275
Co-authored-by: bence gabor kis <[email protected] >
JerryScript-DCO-1.0-Signed-off-by: Bela Toth [email protected]
Co-authored-by: bence gabor kis <[email protected] >
2021-07-27 12:25:52 +02:00
Zoltan Herczeg
d69fe41085
Improve garbage collection of scripts and modules ( #4722 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-26 14:03:43 +02:00
Zoltan Herczeg
d4178ae386
Support dynamic import calls ( #4652 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-24 09:26:46 +02:00
Zoltan Herczeg
713d90b5a0
Support shared user data for scripts ( #4710 )
...
The same data is returned for the script and all of its functions,
including those which are created by an eval call.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-20 10:33:23 +02:00
Zoltan Herczeg
9ff25dbc12
Replace jerry_load_function_snapshot function with a flag ( #4719 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-16 16:09:51 +02:00
Zoltan Herczeg
252d68936f
Improve line info construction ( #4718 )
...
- Simplify small encoding
- Better line info for some corner cases
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-16 16:08:38 +02:00
Zoltan Herczeg
998e49a969
Rework storing the line/column/bytecode info ( #4707 )
...
This information is stored in a separate memory block instead
of being part of the byte code. Snapshot does not supported.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-15 13:45:10 +02:00
Zoltan Herczeg
d1204ab1c9
Rework resolving references and namespace creation in modules ( #4695 )
...
- Properties of namespace objects are ordered in lexical order
- The namespace object is created and imports are bound during linking phase
- Namespace imports are changed to read-only
- Reduced memory consumption
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-06 14:50:19 +02:00
Tóth Béla
ccc152594a
Fix failing container unit-test ( #4696 )
...
JerryScript-DCO-1.0-Signed-off-by: Bela Toth [email protected]
2021-06-28 15:46:03 +02:00
Gergo Csizi
8f71871a39
Remove jerry_get_boolean_value ( #4685 )
...
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
2021-06-24 15:40:14 +02:00
Tóth Béla
9471515dae
Add container related API function ( #4666 )
...
The new function returns with an array, containing the
elements of the given Container or Container iterator.
JerryScript-DCO-1.0-Signed-off-by: Bela Toth [email protected]
2021-06-16 07:41:13 +02:00
Gergo Csizi
e8ed543677
Add test_dataview ( #4677 )
...
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
2021-05-31 14:24:38 +02:00
Gergo Csizi
ce5e4d49b1
Fix documentation and add back some tests ( #4673 )
...
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
2021-05-26 12:28:32 +02:00
Gergo Csizi
800031c62b
Change jerry_get_own_property_descriptor return type ( #4675 )
...
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
2021-05-26 06:54:26 +02:00
Zoltan Herczeg
431a28b902
Fix native error check ( #4674 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-05-21 12:36:07 +02:00
Zoltan Herczeg
3c512d937b
Add getter for Proxy handler objects ( #4676 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-05-21 12:35:53 +02:00
Zoltan Herczeg
67a61bc211
Support this binding retrieval for backtrace frames ( #4669 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-05-17 11:41:29 +02:00
Zoltan Herczeg
5180680030
Support line info for class fields ( #4670 )
...
Furthermore fix function info for call frames.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-05-17 11:15:02 +02:00
Zoltan Herczeg
e042998f02
Support function object retrieval for async functions ( #4668 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-05-11 12:22:37 +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 [email protected]
2021-04-27 09:45:26 +02:00
Zoltan Herczeg
823a8b128d
Fix error throw in jerry_define_own_property ( #4662 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-27 09:42:20 +02:00
Zoltan Herczeg
8aaabd8b01
Do not mark the unused items of a WeakMap ( #4663 )
...
The new method is slower, but correctly release unused objects.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-27 09:42:03 +02:00
Zoltan Herczeg
10002aef60
Throw ReferenceError when a property of a native module is not found ( #4659 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-20 11:04:26 +02:00
Zoltan Herczeg
ec3ed65b56
Add reference support for native pointers. ( #4615 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-19 14:47:17 +02:00
Zoltan Herczeg
1f2a8d4ac1
Add notification callback for module state changes ( #4656 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-16 17:50:57 +02:00
Zoltan Herczeg
a7a4cb29e4
Native modules should be unlinked state after creation ( #4655 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-16 15:55:12 +02:00
Zoltan Herczeg
7b6743403f
Support native modules ( #4649 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-13 16:26:38 +02:00
Zoltan Herczeg
05a4e45ece
Fix uninitialized data in create native property ( #4650 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-13 15:17:25 +02:00
Zoltan Herczeg
053389de80
Add info to external pointer free callback. ( #4642 )
...
Furthermore reduce memory consumption when only
one external pointer is assigned to an object.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-13 09:51:39 +02:00
Zoltan Herczeg
4377ef684d
Add module C API functions ( #4636 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-31 19:40:58 +02:00
Zoltan Herczeg
6c484f3529
Rework module linking ( #4632 )
...
The module linking process from jerry_parse is moved out into
a new jerry_module_link function, and jerry_parse is limited to
create unlinked modules.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-30 15:40:09 +02:00
Zoltan Herczeg
874a6a49d5
Extract type defintions from jerryscript-core.h into jerryscript-types.h ( #4634 )
...
The function declarations in jerryscript-core.h should not be visible
internally, only the type declarations in jerryscript-types.h
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-24 05:51:59 +01:00
Zoltan Herczeg
546422161e
Add custom configuration to jerry_parse and its variants ( #4620 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-10 09:56:48 +01:00
Zoltan Herczeg
7a2665621b
Reorganize property descriptor flags ( #4622 )
...
Furthermore rename JERRY_PROP_IS_THROW to JERRY_PROP_SHOULD_THROW
and add more invalid descriptor checks.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-10 08:17:20 +01:00
Peter Marki
96cd542bf5
Refactor jerry_property_descriptor_t to use status flags ( #4594 )
...
JerryScript-DCO-1.0-Signed-off-by: Peter Marki [email protected]
2021-03-08 09:08:24 +01:00
Zoltan Herczeg
29b7c8f8ff
Implement jerry_get_own_property API function ( #4612 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-03 18:02:40 +01:00
Zoltan Herczeg
a95e3e37e1
Add more skip check options for Proxy objects ( #4614 )
...
Reorganize the flags to follow the list in ES2020 section 9.5
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-03 17:12:36 +01:00
kisbg
129ca4946c
Implement WeakRef Object ( #4546 )
...
Related test262 test-cases has been removed from skip list.
Execpt two test-case since they need other feature to work (Finalization registry and async GC)
JerryScript-DCO-1.0-Signed-off-by: Bence Gabor Kis [email protected]
2021-03-01 13:46:54 +01:00
Péter Gál
9556701742
Add size checks before using JERRY_VLA in unittests ( #4601 )
...
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2021-02-26 10:53:54 +01:00
Zoltan Herczeg
17ed855df5
Default handlers should count as resolvers ( #4611 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-25 12:27:21 +01:00
Zoltan Herczeg
c27047da03
Add filters and more events to Promise callback. ( #4605 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-24 10:31:08 +01:00
Zoltan Herczeg
5c35370327
Create special objects for scripts instead of functions ( #4610 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-23 15:34:09 +01:00
Zoltan Herczeg
01e0388d77
Add notification callback for Promise operations ( #4595 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-18 11:29:52 +01:00
Zoltan Herczeg
112ad83aaa
Rework external function handlers ( #4599 )
...
Instead of a fixed number of arguments, a call info structure is passed
to the handlers, which can be extended in the future without breaknig the
API. This structure holds new.target value, so its getter function is removed.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-17 17:52:19 +01:00
Robert Fancsik
488a0bf7e8
Improve date internals ( #4593 )
...
- Optimize year from time calculation
- Force arithmetic operations to int32_t/int64_t whenever possible
- Optimize number conversion in date parse
- Cache local TZA of the date object
- Fix a bug in Date.parse timezone parsing
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-02-17 16:07:54 +01:00