66 Commits

Author SHA1 Message Date
DaiHN e5342c59e0 Rename Commonjs's Objects
-------------------------------
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5G29Y?from=project-issue
1. "JSCjsModule" -> "CjsModule"
   "JSCjsRequire" -> "CjsRequire"
   "JSCjsExports" -> "CjsExports"
2. builtin_cjs_exports.h -> builtins_cjs_exports.h
   builtin_cjs_exports.cpp -> builtins_cjs_exports.cpp
   builtin_cjs_require.h -> builtins_cjs_require.h
   ...

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I582467ef8421e03b7eb123d388d66287a79ce97b
2022-07-07 21:09:56 +08:00
lifansheng b975283659 issue:I5F5ZK
add module resolvePath

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I46ff3e6e7a10a14731f3db15b5b674bb7e1d902d
2022-07-05 09:20:21 +08:00
openharmony_ci 29f2c9a309 !1636 string.replaceAll and regexp groupname
Merge pull request !1636 from zhangyouyou/master
2022-06-29 08:33:54 +00:00
zhangyouyou 2f0c89fffe https://gitee.com/openharmony/ark_js_runtime/issues/I5DDMT
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-06-29 11:31:55 +08:00
openharmony_ci 7b228bc69e !1657 ECMA2021 Object values interface implementation
Merge pull request !1657 from shisan_forwork/master
2022-06-29 02:47:53 +00:00
shisan_forwork c6c0ddc422 ECMA2020 Object values interface implementation
Description
	ECMA chapter 20.1.2.22 Object.values(O)
Related issues
	#I5DQ38:ECMA2021 Object values interface implementation

Signed-off-by: shisan_forwork <chengjunxiong@huawei.com>
2022-06-28 19:53:39 +08:00
ding c80c97bdfa Resolve Compatibility Issues between TSAOT and ECMA spec
1.Add typelowering framework.
2.Add newobjdynrange in typelowering which brings static TS type
  info to runtime phase.
3.Serialize and deserialize hclass table with snapshot, fix minor bugs
  in snapshot by the way.
4.Add IsFormTSTypeBit in HClass to distinguish hclasses which come from
  compile phase.
5.Fix compatibility issues in property operations api and some builints
  api.
6.Add 3 compatibility issues test cases.

Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5E2N9

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I98626e6eea01f4455ec818ba0ad872b3be98b729
2022-06-28 14:43:16 +08:00
openharmony_ci b01688101e !1576 Upload finally, any and allsettled codes of promise module
Merge pull request !1576 from 史凯/master
2022-06-20 03:09:24 +00:00
shikai-123 aa6490370f Upload promise code
Upload finally/any/allSettled module of promise code

issues: https://gitee.com/openharmony/ark_js_runtime/issues/I5BFGU

Signed-off-by: shikai-123 <shikai25@huawei.com>
2022-06-20 09:24:17 +08:00
openharmony_ci 5b1d54a4df !1611 Prefer constexpr in builtins.cpp
Merge pull request !1611 from ljk321-0182/liu/constexpr-1
2022-06-19 14:27:38 +00:00
Xiao Liu 2dc5f922f5 Prefer constexpr in builtins.cpp
Signed-off-by: Xiao Liu <ljk321_0@hotmail.com>
Change-Id: I8ca3fcc68ade5df66107fca16de8e83626c1332d
2022-06-17 11:28:26 +08:00
openharmony_ci 37f2cdbfcd !1587 modify newobjDynrange to remove the flag "IsBuiltinsConstructor"
Merge pull request !1587 from fanshengli/newObj
2022-06-16 04:08:06 +00:00
lifansheng b62679e3d9 issue:I5C5EG
modify newobjDynrange to remove the flag "IsBuiltinsConstructor"

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ic94b8ba77a0ebaf121f2942238435a9da5917287
2022-06-15 14:54:18 +08:00
yingguofeng@huawei.com 1dd62cf68f Description:Native Memory Leak or error
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5C883?from=project-issue
Change-Id: I3cdf41f9292fccb9a7e1164babc30cf77e6ac163
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-06-15 10:59:47 +08:00
openharmony_ci 40324cf89b !1552 string.padStart/padEnd/trimLeft/trimRight/matchAll
Merge pull request !1552 from zhangyouyou/master
2022-06-13 08:43:48 +00:00
zhangyouyou 7f5f5fd3db https://gitee.com/openharmony/ark_js_runtime/issues/I5BKUG?from=project-issue
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-06-10 17:33:03 +08:00
dingwen 53808f9634 Snapshot support serialize builtins object independently
description:Add SerializeBuiltins interface, support create EcmaVM by deserializing builtins.snapshot file
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5B3QM
Signed-off-by: dingwen <dingwen6@huawei.com>

Change-Id: I0d19efe34826bdb58366df9eed571285afbcccca
2022-06-09 21:21:44 +08:00
DaiH eee606c334 Support CommonJS's module export function
------------------------------------------
    1. Support CommonJS's module export function
    2. Related test cases
    issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5590V

Signed-off-by: DaiH <daihuina1@huawei.com>
Change-Id: I18968f6a6b971fbe833d91ef98813964cc8292c9
2022-06-08 10:59:06 +08:00
openharmony_ci f63f7b5b2e !1454 Support transfer custom native object
Merge pull request !1454 from wangzhaoyong/master
2022-06-07 11:51:17 +00:00
wangzhaoyong 99688fd766 ==-------------------------------------------==
Support transfer custom native object
1. add create object interface for napi
2. support serialize custom native object
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I59GXI
==-------------------------------------------==

Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
Change-Id: I8c033761f0503698e20241407db47bebb533ee43
2022-06-07 14:13:15 +08:00
jiangkai43 99f06bae64 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-06-02 11:17:00 +00:00
jiangkai43 d50c83dc69 Add atomics project and modify code errors
Signed-off-by: jiangkai43 <jiangkai43@huawei.com>
https://gitee.com/openharmony/ark_js_runtime/issues/I599WU
2022-06-02 19:09:01 +08:00
xdmal a4062881d1 Add WeakRef and FinalizationRegistry interfaces
Add WeakRef and FinalizationRegistry interfaces

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I57W11

Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-06-01 20:59:20 +08:00
gongjunsong 9160d8bc68 delete repeate set class code
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I59AEN?from=project-issue

Signed-off-by: gongjunsong <gongjunsong@huawei.com>
Change-Id: I6b06c4410734a44b8f64f3235d991e99b7903203
2022-05-26 09:05:54 +08:00
openharmony_ci f5596f01bd !1405 fix mem leak problem from jsmethod
Merge pull request !1405 from xiongluo/mem_leak_from_method
2022-05-25 07:20:21 +00:00
xiongluo 2c14680bc6 Fix the mem leak from js method
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-05-25 10:53:36 +08:00
Zhenyu Pan e5a40fd7f6 fix register bug when initialize Intl object
description: JSObject::SIZE -> JSInlt::SIZE

related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I59068

Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: I50a12427f41cf1d448998294fd452391ee73ca1c
2022-05-24 15:28:23 +08:00
openharmony_ci f9dd9521e5 !1372 fix fromEntries and Symbol.prototype.description bug
Merge pull request !1372 from 王犇/master
2022-05-23 03:13:45 +00:00
wangben a60104380b fix fromEntries property changed from object.prototype to object, the bug that this in Symbol.prototype.description is encapsulated by object
Signed-off-by: wangben <wangben15@huawei.com>
2022-05-23 09:48:41 +08:00
wupengyong 7c650ba015 reason:performance optimization
description:optimize taggedvalue encode
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55ZVP?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I747a60f5ea7348d3b0cfc041a3b010c52b1517c0
2022-05-21 09:33:44 +08:00
wangben 0ae45e4df7 Add regExp.matchAll interface and symbol.matchAll and regExp iterator related functions
Signed-off-by: wangben <wangben15@huawei.com>
2022-05-18 18:02:39 +08:00
Yuqiang Xian d9d281af16 Merge remote-tracking branch 'oh/master' 2022-05-10 19:04:40 +08:00
ZhenyuPan 78f27c883f for ark_js_vm on mac
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55GYU
Change-Id: I3faad1171ed2ef08660c62f0ff6c88b34c5cbcfa
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-05-09 09:06:58 +08:00
Yuqiang Xian adecfbd30b Merge remote-tracking branch 'oh/master' 2022-05-06 21:25:57 +08:00
wangben 792f6b18a0 Add object object fromEntries interface
Signed-off-by: wangben <wangben15@huawei.com>
2022-05-05 14:14:56 +08:00
Yuqiang Xian 9e88572f35 Add descriptions to concurrent marking status check.
Don't use IS_STANDARD_SYSTEM config to switch off concurrent marking.
Fix typos and grammar issues.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55HWI

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
2022-04-30 20:02:19 +08:00
liu-qiang12 474420fba7 According to the 2021 internationalization specification add international specification module listformat class code
Signed-off-by: liu-qiang12 <liuqiang187@huawei.com>
https://gitee.com/openharmony/ark_js_runtime/issues/I54WWJ
2022-04-27 10:24:14 +08:00
panzhenyu1 a0fb802750 Fix compile problem caused by rebase
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I543ZG

Change-Id: Ibf11fee9ddb8433ad53a67baccaf40ef1802c5b8
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-04-25 09:28:39 +08:00
DaiH ae9f49022f Bug fix of testUT
Signed-off-by: DaiH <daihuina1@huawei.com>
https: //gitee.com/openharmony/ark_js_runtime/issues/I53Q97?from=project-issue
Bug fix of testUT
Change-Id: I8d4805eab4a4614dc880b85065982371418de17f
2022-04-21 15:11:38 +08:00
DaiH 99f7f4bd0a Get Object Literal's Hclass From Cache
Signed-off-by: DaiH <daihuina1@huawei.com>

https://gitee.com/openharmony/ark_js_runtime/issues/I4XVBQ

Sovle the problem that generate object without sharing Hclass, when object's Hclass have same shape.

Get Object Literal's Hclass From Cache

Change-Id: Ia17d056e32acd3356be138051f273c0cf50d82ee
2022-04-11 21:57:35 +08:00
openharmony_ci b420d9d3df !951 Add DataView bigint related interfaces
Merge pull request !951 from zhangyouyou/master
2022-04-11 10:27:47 +00:00
xliu 4fb9fcc443 ObjectFactory New Ecmastring Rectification
Description
  1. There are many kinds of interfaces to construct ecmastring from objectfactory
     in the virtual machine, and the name is not clear, so it is complex to use;
  2. Some of the unchecked interfaces are prone to errors during use. If there is
     no compression where compression is required, unpredictable errors will occur.
Issue:
  #I4ZL7X: ObjectFactory New Ecmastring Rectification

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I856f4e2e1df62823d928d738fa35affa97dbd3ed
2022-04-09 10:34:11 +08:00
zhangyouyou a157dab3bb add DataView.prototype.setBigUint64 DataView.prototype.setBigInt64 DataView.prototype.getBigUint64
and DataView.prototype.getBigInt64
https://gitee.com/openharmony/ark_js_runtime/issues/I51KPJ

Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-04-08 16:17:00 +08:00
openharmony_ci 78c38d9a2b !918 add SharedArrayBuffer
Merge pull request !918 from 赵杜炜/master
2022-04-02 11:58:42 +00:00
zhaoduwei fb0eaa03da Added SharedArrayBuffer module code
Added SharedArrayBuffer module code to support ECMA function

Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4XGSJ

Signed-off-by: zhaoduwei <zhaoduwei1@huawei.com>
2022-04-02 18:46:20 +08:00
openharmony_ci f8b36e6882 !738 Add Container Deque And Container Stack
Merge pull request !738 from zhangjixing/deque_and_stack
2022-03-30 02:13:32 +00:00
zhangjixing 219dd0bd8d Add Container Deque And Stack
Description
  To ensure the high performance of container classes, Deque and Stack
  is provided in ark.
Related issue
  #I4X8GV:Add Container Deque And Stack

Signed-off-by: zhangjixing <zhangjixing4@huawei.com>
2022-03-29 18:13:38 +08:00
liu-qiang12 91649cfe9e Add international specification module displaynames class code
Signed-off-by: liu-qiang12 <liuqiang187@huawei.com>

https://gitee.com/openharmony/ark_js_runtime/issues/I4ZYTA
2022-03-28 17:29:53 +08:00
openharmony_ci 250b779450 !788 Add typedArray and array extensions
Merge pull request !788 from 王犇/master
2022-03-24 08:26:01 +00:00
wangben 69645a86eb Add typedArray and array extensions
Signed-off-by: wangben <wangben15@huawei.com>
2022-03-24 10:24:32 +08:00