Commit Graph

19 Commits

Author SHA1 Message Date
hlm2001
712e73bcee Fix code security issues
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAK0JM

Signed-off-by: hlm2001 <huanglimin10@huawei.com>
Change-Id: I69e8c0f44157c2c5d31f7bc1781227a7901bc135
2024-08-15 17:05:47 +08:00
fangting
902e4ff2c0 optimize compiler
optimize compiler

Issue:#IAJ541
Signed-off-by: fangting <fangting12@huawei.com>
2024-08-13 10:17:04 +08:00
Onlynagesha
180e0a3f87 Fixes circular header dependency
Eliminates circular header dependency in some fundamental headers like
js_thread.h, js_tagged_value.h, etc.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7ZPL4

Signed-off-by: Onlynagesha <orina_zju@163.com>
Change-Id: I5a78073992b77643718abdc1e0813485c0e439bb
2023-09-08 19:05:41 +08:00
openharmony_ci
14a8c96338
!3146 Encapsulate some interface in PandaFile
Merge pull request !3146 from weng-changcheng/refactor_file
2023-01-05 07:14:36 +00:00
wengchangcheng
2cdbecaeb9 Descriptor: Encapsulate some interface in PandaFile
Details: Encapsulate GetStringData and use JSPandafile instead of File

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I64H64

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ied940326ea2913337db013e1ab1bf57b6f56162b
2023-01-03 15:16:51 +08:00
Gymee
c021124935 Tweaks code
Issue: #I682CT
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Id4f55f67403e6256ca5a95505e8d0888c0544172
2022-12-29 18:09:35 +08:00
g00416891
8508007f22 Optimize TranslateClasses and ParseConstpool
Change-Id: I0eae0cfc1b7df4ad4da053449eeab03a15d39bff
Signed-off-by: g00416891 <guobingbing3@huawei.com>
2022-11-16 09:06:28 +08:00
wengchangcheng
1d90b0c429 Revert "Revert "Descriptor: Delete new instruction define""
This reverts commit 2963992612.

Change-Id: Iae9d557a2fa6e4c9f88397a41f2901e0e5a2a30b
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-09-28 00:14:20 +08:00
yuan-yao14
18b1f75efa Optimize NewLexicalEnvWithName
Description:
   Map.insert copies values, using .emplace instead

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5SKCP

Signed-off-by: yuan-yao14 <yuanyao14@huawei.com>
Change-Id: Icae138b7006f89a58cfc0eca5c5a3dd76a263a66
2022-09-22 16:14:08 +08:00
wengchangcheng
a91655dd03 Descriptor: Support new version bytecode
Details: Adapter new instruction for c-interpreter

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5LPNL

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Iddd93beef786f9453474329e424941a14ad64f9d
2022-08-29 15:56:26 +08:00
g00416891
e7e344e150 Modify JSMethod to Method
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I2f18e1cd8c163a2839bbf2b3da4e40d385f5094a
2022-08-23 15:23:06 +08:00
g00416891
9f8cbcc303 Move ConstantPool from JSFunction to JSMethod
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I40dda1e44a831be6682f7fdacac21337af1bcd2d
2022-08-17 18:58:42 +08:00
openharmony_ci
c29332c1d9 !1833 fix fuzztest errro and add new fuzztest
Merge pull request !1833 from zhaozhibo/master

Change-Id: I1e83c46e25d0a7c342e5c8e7ca5ff61c745b7582
2022-07-25 08:49:51 +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
zhaozhibo
cc222126ad fix codeDex warning.
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-14 10:56:51 +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
5119c012f8 refactor debugger extractor
1. rename js_pt_extractor
2. move debug_info_extractor to js_runtime
3. use map to store MethodDebug info and LocalVariable info
4. refactor ScopeInfo extractor

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Id64d718aa9360afd53398ee729714c859bd61768
2022-03-30 17:49:11 +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