Commit Graph

119 Commits

Author SHA1 Message Date
wengchangcheng
cc184ba66c Descriptor: delete some internal unused code
details: delete unused code
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5COHE

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5fe62c58353839d4aac1144fc99e2cf87f4374eb
2022-06-17 23:03:42 +08:00
luochuhao
172f5642c7 Modify enable logic of certain runtime options.
Change condtion for File execution branch to whether file is AOT compiled or not.

Fix bug of setting bc debug handler entry while loading stub file.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BBFH
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: I5b6d47a1587631849f6c1e746473cb14b1d727a8
2022-06-13 12:15:03 +08:00
openharmony_ci
e1b1e12b8b
!1503 modify EcmaModule to support CjsModule
Merge pull request !1503 from fanshengli/ECMA_CJS
2022-06-09 13:32:37 +00:00
lifansheng
05ad98a98b modify ecmaModule to support CjsModule
Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I45e23bfa131ff9eb044d9b0c1f7908f7763bebb7
2022-06-08 17:27:48 +08:00
DaiH
b41df503a1 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
8f8a7890fd
!1474 Modify static vulnerability alarm and code warning
Merge pull request !1474 from hjzhangcm/master
2022-06-07 03:28:54 +00:00
hjzhangcm
6f90738f64 describe:Modify static alarm
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5AA9J

Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-06 11:34:06 +08:00
lifansheng
536211f346 issue:I5A4L3
Enable EcmaModule

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I45039d0b80fe156aa2de86b15b141f0bcfd231b5
2022-06-01 16:48:53 +08:00
ZhenyuPan
ba7849273d 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
guobingbing
9bef6eef18 refactor class FrameHandler
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I9f3ff0c04d34a31a34f21da637689eb61d4166f1
2022-05-04 10:36:44 +08:00
ding
b5c4b724f7 Distinguish Whether Pandafile with TypeInfo
Add ESTypeInfoRecord to judge whether pandafile with typeinfo and acquire
typeSummaryIndex.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I485c743ad17601d206b20283cfc8e1c5ef443581
2022-04-18 15:28:19 +08:00
zhaozhibo
cc222126ad fix codeDex warning.
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-14 10:56:51 +08:00
openharmony_ci
ec918cd9f0
!969 [part-1] support watch expression
Merge pull request !969 from changcheng/call_entry_and_return
2022-04-09 17:06:23 +00:00
wengchangcheng
a8ad8ca60f [part-1] support watch expression
1. delete unused execute arguments
2. support select execute entry
3. support get execute return value

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I40139e2f4afa36ad7d169d7f6c367a62a40bf476
2022-04-09 22:53:42 +08:00
xliu
bddb55c976 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
wengchangcheng
cdfab120f0 refactor stl container
1. using runtime container instead of stl container
2. change debugger line amd column type to int32_t

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I0eb4651f17c6f6894f11de1ba904bcbe83a57db7
2022-04-06 16:05:22 +08:00
wengchangcheng
99934b9037 add Wextra and Werror in gn args
1. add -Wextra and -Werror to check code format error
2. modify all compiler error

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If5fdd1980494269b4c06bf1bb38a8eba7952adea
2022-03-24 21:45:19 +08:00
wengchangcheng
43f23f8eb3 share constpool, and modify some code refactor
1. cache constpool in ecma vm
2. use JSPandaFile instead of panda_file::File
3. make GenerateProgram as a static function
4. add a singleton of JSPandaFileManager::GetInstance()

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic7ccd66764c3a020e575d4046e1792475d45be6b
2022-03-21 21:46:25 +08:00
y00576111
6dc6688270 EcmaScript Standard Module Implementation
Delete the existing module implementation and
re implement the module function according to the ECMA 2018 specification

issue: #I4NZQT [https://gitee.com/openharmony/ark_ts2abc/issues/I4NZQT]

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I8d381db7f8bf2f3d6b2a5c21cbc3cbab1aef0b9b
2022-03-10 19:10:42 +08:00