Commit Graph

43 Commits

Author SHA1 Message Date
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
sunzhe23
38acdc0239 Fix updateHotnessCounter performance bug
1 remove some useless code
2 add param this Func for UpdateHotnessCounter
3 fix default hotnessCounter from 512 to int16_t max

issue: I5LGCS

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-08-10 12:07:46 +08:00
wuzhefeng
ecba145381 Rename the incorrect variables
There are some variables with incorrect names, for instance, the `end`
should be exclusive rather than inclusive for an interval. The PR
renames some such kind of variables in order to improve the readability
of code.

Testing: pass all CI/TDD

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

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: I0e4e51c6e1df5876bfbff9b761a0d5022f2096b6
2022-07-31 16:39:57 -07:00
linxiang
1d9edc9885 refactory: move js_api file to js_api catalogue
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: Id5bba5fa97c4cbfe4fee9f557cc92b020ddb3be4
2022-07-23 15:52:48 +08:00
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
chenqi
3bc6dcb731 Add Containers List And LinkedList
Description
    1.To ensure the high performance of container classes, List and LinkedList is provided in ark.
    2.modify Copyright 2021->2022.
    3.fix containers.
Related issue
    #I58XA9:Add Containers List And LinkedList.

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-06-02 17:02:40 +08:00
shisan_forwork
63d3929b97 Add Container Vector
Description
   To ensure the high performance of container classes, vector is
   provided in ark.
Related issue
   #I4XCD9:add container vector

Signed-off-by: shisan_forwork <chengjunxiong@huawei.com>
2022-05-23 20:40:25 +08:00
xliu
3669288c00 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
wupengyong
faf92259ac 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
zhaozhibo
2573042319 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-25 14:33:01 +08:00
zhaozhibo
4c106a7632 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-17 07:24:50 +00:00
zhaozhibo
c239b44d80 fix codeDex warning(3)
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-17 15:23:43 +08:00
openharmony_ci
6bcf45865a
!972 Add Container Plainarray
Merge pull request !972 from zhangjixing/container_plainarray
2022-04-15 06:54:59 +00:00
zhangjixing
eafc261ff6 Add Container Plainarray
Description
  To ensure the high performance of container classes, Plainarray is
   provided in ark.
Related issue
   #I4XXYA:Add Container Plainarray

Signed-off-by: zhangjixing <zhangjixing4@huawei.com>
2022-04-15 13:11:55 +08:00
zhaozhibo
cc222126ad fix codeDex warning.
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-14 10:56:51 +08:00
guobingbing
96190e252b FFI optimization for call params
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I61b820e91b85364e4f41d35ca0172ad059a1b916
2022-04-07 21:13:46 +08:00
lichenshuai
2dd61d1d0d Enable Call Stub
Fixed Call Stub bug, Enable Call Stub and synchronize new stackless to interpreter_assembly.

Issue: #I51E2F

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I2116850e55bc651acc71bc1baa99aa2c4e1b578c
2022-04-06 20:00:22 +08:00
zhangjixing
c6be465406 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
luochuhao
905d0496dc Refactor ID definition and callSignature initialization mechanism of stubs
Refactor ID definition and callSignature initialization mechanism of runtime stub,
optimizer stub and bytecode handler stub,
reduce amount and complexity of macro used in calling those stubs.

Add stubDes struct to classify stubs both in AOT file generation phase
and AOT file loading phase.

Fix some circular dependency problems in including header files.

Fix certain inline function declaration and definition format problems, which could lead to
compiling errors.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4VMLD?from=project-issue
Test: stubTest(unit test), richards with asm interpreter enabled
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: Ibd5fcd963347b97f8dec227f3245d2064463b0b0
2022-03-18 22:01:52 +08:00
zhangyouyou
b744a006be Add bigint type, add related instructions and Napi
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-10 21:25:06 +08:00
chenqi
20726efef7 Add Container Queue
Description
  To ensure the high performance of container classes, Queue is provided in ark.
Related issue
  #I4TKAU:Add Container Queue

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-03-05 16:55:38 +08:00
openharmony_ci
5df4c81591
!640 fix problems concerning lexicalEnv
Merge pull request !640 from huangfeijie/master
2022-03-01 15:37:57 +00:00
ding
96b342e46e Stackless optimalize new operation, including BuiltinsConstructor new and the most common new with callType is HAVE_THIS
Signed-off-by: ding <dingding5@huawei.com>
2022-03-01 20:10:20 +08:00
h00611971
b97fd87841 issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4VE0E
fix problems concerning lexicalEnv

Signed-off-by: h00611971 <huangfeijie@huawei.com>
2022-03-01 11:16:43 +08:00
openharmony_ci
74d4f0e409
!526 Add Container ArrayList
Merge pull request !526 from 刘甘霖/container_arraylist
2022-02-18 09:53:09 +00:00
liuganlin
3f93f046c1 Add container ArrayList
Description
  To ensure the high performance of container classes, ArrayList is provided in ark.
Related issue
  #I4T65T:Add Container ArrayList

Signed-off-by: liuganlin <liuganlin@huawei.com>
2022-02-18 10:37:31 +08:00
xliu
1bce193604 fix TryLdGlobalByName and LookupPropertyInlinedProps
Description
  fix bugs of TryLdGlobalByName and LookupPropertyInlinedProps
  Add test cases for global aeecssor.
Related issue
  #I4TZT1: fix TryLdGlobalByName and LookupPropertyInlinedProps

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: If4b78a136ed2299a1ae1848d8c248f5265996905
2022-02-17 13:00:20 +08:00
zhangyukun
39d782c946 Merge new runtimetrapolines from c_asm into master
Bug: #I4TRQP

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I55b49c3ec9f6c5f91272668ff43ef4147b9ed6c2
2022-02-16 16:49:53 +08:00
yingguofeng@huawei.com
095021b081 GC performance optimization
1、Delete strategy no gc for start up
2、Adapter performance tools: runtime stat
3、Modify freeObjectKind to freeObjectSet

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4SASV?from=project-issue

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I01643755057b6146d1f6b67032256e687873cd07
2022-02-15 14:24:21 +08:00
wengchangcheng
839f39e500 modify ACCESSOR for EcmaString and TaggedArray
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2995dc75ed34e8eb2bf249f2cced62ec9d91250e
2022-01-17 11:51:50 +08:00
xliu
9849598f97 1.add arraylist and ArkPrivate. 2.add special container in stub. 3.fix Switch
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I4082326fa075bce0c5c7bf8e6873282086fe5d6e
2022-01-04 19:30:40 +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
getingke
f0a82545a7 fixed for review comment by luochuhao
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I74946948bdf127b88a032b16abf49ea890a80bf2
2021-10-27 16:23:48 +08:00
getingke
27a544bf56 fixed for review comment by wuzhefeng
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Ie4b779dd73db792c4d8315ad3a051fb9692d0623
2021-10-27 16:22:43 +08:00
getingke
136e3f7b08 fixed 262 test case fail for getpropertybyvalue
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I33b9d68efeb2d8ed19848699c98dedb984174296
2021-10-27 16:09:49 +08:00
getingke
b35952f22a fixed for Set/GetPropertyByValue & test262 case verify
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I06214f39ebff93754edb3d275be4d4d76c1dba0c
2021-10-27 16:09:49 +08:00
wengchangcheng
dafdd642a6 copy all testcase resources and fix codestyle
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-10-21 20:55:46 +08:00
wengchangcheng
9a7fcb6e3c fix container using error and gc bug
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-10-20 18:00:44 +08:00
wupengyong
52a2b0f777 add runtime stat
Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Id40e77ef79c6dd1882d0f7c2c68f7c0fba402333
2021-09-16 12:44:01 +08:00
xujie
fa3ad69451 resolve issue of taking 2 seconds to response after clicking mediaquery
Signed-off-by: xujie <xujie101@huawei.com>
2021-09-11 11:07:11 +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