Commit Graph

15 Commits

Author SHA1 Message Date
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
openharmony_ci e1c060cd98 !1375 Modify sharedArrayBuffer assertions that affect debug tests
Merge pull request !1375 from 赵杜炜/master
2022-05-23 03:40:29 +00:00
xliu 2b281975ea Js TypeArray optimization
Description
  1. Add number check in CanonicalNumericIndexString;
  2. modif GetProperty, SetProperty, DeleteProperty,
     DefineOwnProperty,GetOwnProperty,HasProperty
  3. Add FastPath in TypeArray.
  4. Refactor TypeArray ArrayLength, ByteOffset, ByteLength
  5. Add test for TypeArray.
Issue:
  #I56S75:Js TypeArray optimization

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I68dd973269eb0bab284e7b97e0b8bf93e5aee1a2
2022-05-21 18:15:02 +08:00
zhaoduwei 3a3d26a813 Modify sharedArrayBuffer assertions that affect debug tests
Modify in the builtins_arraybuffer.cpp file ASSERT

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

Signed-off-by: zhaoduwei <zhaoduwei1@huawei.com>
2022-05-20 16:54:35 +08:00
openharmony_ci 7c000a7499 !973 fix codeDex warning
Merge pull request !973 from zhaozhibo/master
2022-04-12 08:41:37 +00:00
zhaozhibo aaf776aab5 fix code warning for codeDex
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-12 14:27:50 +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
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
guobingbing 589234007e FFI optimization for call params
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I61b820e91b85364e4f41d35ca0172ad059a1b916
2022-04-07 21:13:46 +08:00
wangben 69645a86eb Add typedArray and array extensions
Signed-off-by: wangben <wangben15@huawei.com>
2022-03-24 10:24:32 +08:00
ding 1ca17779cb Fix AllocateArrayBuffer By BoundFunction NewTarget
This is a historical problem:At first, we didn't support the full feature of newTarget in ECMA spec,in order to pass some cases of test262, hack the deleted code in AllocateArrayBuffer. In fact, the object so allocated is not an arrayBuffer.

Now, we support the full feature of newTarget, just delete it and do as ECMA spec.

add allocatearraybuffer unit test case.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I2da7d8ce3dd58a63454ac9ecea4320458323fab9
2022-03-15 11:14:26 +08:00
xliu c4fe630067 Fix GetFloat32 of DataView
Description
  Fix Byte alignment problem of GetFloat32 in DataView
Related issue
  #I4VDZO: Fix GetFloat32 of DataView

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I4478f8a5b6286fad6dc7c1f9c6efcaeac9d2d0e1
2022-02-26 15:47:15 +08:00
wengchangcheng 9a2b7d04e8 optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-25 18:05:12 +08:00
zhangyukun 7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan 86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00