Commit Graph

21 Commits

Author SHA1 Message Date
zhaoduwei 4ebbc8ef6d Add sharedArrayBuffer Test
Add sharedArrayBufferTests that test the public functions of sharedArrayBuffer class

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

Signed-off-by: zhaoduwei <zhaoduwei1@huawei.com>
2022-05-16 14:28:14 +08:00
hjzhangcm a760638caa fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-06 17:52:55 +08:00
zhaozhibo 4b279c9d79 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-30 10:31:33 +08:00
openharmony_ci 267f1415ec !1091 move the definition to the declare head file, and delete inl.h file
Merge pull request !1091 from hjzhangcm/master
2022-04-22 13:41:27 +00:00
hjzhangcm 8e768bf429 Rectify template problems
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
Change-Id: I3c156fc6d4b84ec14ec568c1ba36dda9aea34748
2022-04-22 09:44:50 +08:00
lifansheng a725676a6c Runtime architecture adjustment
Description
  Cut out most of the initialization logic in Runtime::Create and disconnect the
  inheritance relationship of most classes such as JSThread.
Issue:
  #I53418: Runtime architecture adjustment

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ib9c1a40354f77d32e515e23334e7f4b4a4fa3259
2022-04-21 14:37:31 +08: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
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 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
panzhenyu1 d950ddc406 Fix bug when Serializing JSObject contains chinese text
Add case for UTF16 encoded EcmaString

related isssue: https://gitee.com/openharmony/ark_js_runtime/issues/I4Z0WB

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
Change-Id: I00d7dfae602247549894459258c662916cbe28a5
2022-03-23 11:27:04 +08:00
panzhenyu1 03079ffc34 Add objectId++ for special case that deserialize empty EcmaString
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4V59S

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
Change-Id: I60860352eb37fe43d5a0aceb3c7f47eaf4db3a3f
2022-02-24 17:27:27 +08:00
panzhenyu1 465d842cf1 Make WriteInt() ReadInt() consistent, fix bug imported in recent PR
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4TNBG

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
Change-Id: Idb19a24b0b059d8904d44c182098fd97c6d7c27e
2022-02-14 19:24:43 +08:00
panzhenyu1 ecf0dc2c40 Add special case for empty string in JSSerializer
Add special case for empty EcmaString and testcase at same condition for JSSerialzer Unit Test

Relevant issue:https://e.gitee.com/open_harmony/dashboard?issue=I4SDCF

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-01-28 10:00:17 +08:00
wengchangcheng 9a2b7d04e8 optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-25 18:05:12 +08:00
wuzhefeng 5720a01a3a Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: Ic990c5f11caeb3075033719a13e759baaf6dfefb
2022-01-13 00:26:00 -08:00
panzhenyu1 8b86eabd0f Fix JsSerializerTest allocate buffer bug
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2021-12-30 18:56:48 +08:00
zhangyukun a97747fe18 Description:sync from code from wgr_master to ohos
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ic66a9e649de8c0ce530483296fe323b8f50621fb
2021-12-21 09:36:03 +08:00
xliu f4a2f13790 add arkTools.print
Signed-off-by: xliu <liuxin259@huawei.com>
2021-10-19 14:17:15 +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