Commit Graph

1547 Commits

Author SHA1 Message Date
guobingbing
1f9cc2e2cd check if thread have exception before GetJSError
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: If0e26e1cf25a2b25339020cdcc3ec081daa25b3e
2022-04-22 14:28:09 +08:00
Gongyuhang
3aa690af86 Add TypedArrayRefs for ArrayBufferRef, and add references to the
elements of the TypedArrayRef at JSBackend for the TypedArrayRef.

Issue:https://gitee.com/maimaity/ark_js_runtime/issues/I53VO3

Changes:
    modified:   ecmascript/tooling/agent/js_backend.cpp
    modified:   ecmascript/tooling/agent/js_backend.h

Signed-off-by: Gongyuhang <gongyuhang5@huawei.com>
2022-04-22 13:48:09 +08:00
Riachel
ef10ee7e7c add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-22 12:09:04 +08:00
openharmony_ci
f03b62f5fe
!1084 add copyright for test file.
Merge pull request !1084 from guobingbing/adapter-asm
2022-04-22 03:41:47 +00:00
Riachel
579d7df3c5 add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-22 11:05:59 +08:00
guobingbing
c17cbca166 add copyright for test file.
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I76f92afb097516f78b505d3d2a349f38cd9d4d20
2022-04-22 10:58:23 +08:00
Riachel
621cbfb83e add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-22 10:57:29 +08:00
Riachel
ef93259ec9 add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-22 10:42:00 +08:00
yingguofeng@huawei.com
50972c9580 Bitmap Refactor
Refactor the markbitmap used to mark objects and the rememberset used to record cross generational references

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

Change-Id: Icc4ac21219b5b7514b77291e436f79cf286515b2
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-04-22 10:28:36 +08:00
hjzhangcm
297e669763 Rectify template problems
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
Change-Id: I3c156fc6d4b84ec14ec568c1ba36dda9aea34748
2022-04-22 09:44:50 +08:00
openharmony_ci
01aa603c92
!1089 support bigint RemoteObject return to IDE
Merge pull request !1089 from Gymee/debugger
2022-04-22 01:24:11 +00:00
yingguofeng@huawei.com
915bb70933 Memory map allocator implementation
Two memory blocks can be allocated: default region size and huge object size

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

Change-Id: I734213cfe43fc04638d4fd97d4cf4c04f7485875
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-04-21 22:32:21 +08:00
openharmony_ci
990e89858d
!1080 Refactor Circuiut Builder Operation Interface
Merge pull request !1080 from songzhengchao/refactor0421
2022-04-21 14:00:39 +00:00
openharmony_ci
d65af5cf49
!1024 check return use pc instead of FrameType
Merge pull request !1024 from guobingbing/master
2022-04-21 13:32:40 +00:00
Gymee
6abfe43dc3 support bigint RemoteObject return to IDE
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I9426613c27a82641552bf3c146073a0e60fb911b
2022-04-21 21:30:43 +08:00
openharmony_ci
ea4e262546
!1083 fix CI
Merge pull request !1083 from fanshengli/fix_bug
2022-04-21 12:42:12 +00:00
wwx1083752
d918002cde add getHeapusage
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-21 20:17:38 +08:00
songzhengchao
1eec1ab8fc Refactor Logical shift operation
the logical shift does't care signed/unsigned.sometime using UINTxx/Intxx, which is very confusing.

logical operation don't distinguish with int/uint and remove Archxx function

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

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Idaf71b46227917d2cb08c35118e71c2a66b79fd3
2022-04-21 20:08:23 +08:00
lifansheng
b3f8dbdf6e modify CI fail
Change-Id: I1ef18da0aa27ecfa6da69c45ab6790beba82cdf6
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-04-21 20:00:37 +08:00
openharmony_ci
2333fd6cb5
!1076 Add testcase for ICRuntimeStub
Merge pull request !1076 from hjzhangcm/master
2022-04-21 11:17:43 +00:00
openharmony_ci
032646ee78
!1070 Bug fix of testUT
Merge pull request !1070 from DaiHN/obj_literal
2022-04-21 11:14:08 +00:00
openharmony_ci
326f6a1e71
!1027 refactor JSmethod
Merge pull request !1027 from xiongluo/refactor_jsmethod
2022-04-21 10:21:24 +00:00
xiongluo
727b20b57e refactor jsMethod
1. Move necessary fileds in jsMethod
2. Make jsMethod inherit aligned struct
3. Change some function names for easy reading

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-20 23:17:00 -10:00
openharmony_ci
4978eb99a4
!1036 Runtime architecture adjustment
Merge pull request !1036 from xliu/modif_runtime_core
2022-04-21 09:13:49 +00:00
guobingbing
2aa8816a83 check return use pc instead of FrameType
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I628701d6ad08b7a6dbbf762383f198b25c403930
2022-04-21 16:21:35 +08:00
openharmony_ci
54e6b7f06a
!1068 Refactor redundant code
Merge pull request !1068 from Gargoyle.h/wzfmaster-dev
2022-04-21 08:08:52 +00:00
DaiH
eaee6e1c5c Bug fix of testUT
Signed-off-by: DaiH <daihuina1@huawei.com>
https: //gitee.com/openharmony/ark_js_runtime/issues/I53Q97?from=project-issue
Bug fix of testUT
Change-Id: I8d4805eab4a4614dc880b85065982371418de17f
2022-04-21 15:11:38 +08:00
openharmony_ci
1c5ffba92a
!1054 delete c-interpreter call common stub
Merge pull request !1054 from songzhengchao/code0419
2022-04-21 07:05:37 +00:00
lifansheng
c9d2334593 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
openharmony_ci
2647bb74ed
!1057 Fix asm entry frame bug
Merge pull request !1057 from 李晨帅/master
2022-04-21 06:28:11 +00:00
hjzhangcm
1d6c17759f add test case for icRuntimeStub
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
Change-Id: Ib0815b08176f6fea072a1e7c0ef7b2faba5e4aa0
2022-04-21 13:36:11 +08:00
lichenshuai
8b9fa810c5 Fix asm entry frame bug
Set leave frame to nullptr before Execute() and restore it after that to avoid endless loop.

Issue: #I53HAD

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib9504519c33932d4e0c7b0ad4a5a599a5564cbe0
2022-04-21 11:22:50 +08:00
openharmony_ci
0012430625
!1069 Optimze some runtime stub for asm interpreter
Merge pull request !1069 from 孙哲/master
2022-04-21 02:22:52 +00:00
openharmony_ci
8fb40c9374
!1063 AOT Test Framework
Merge pull request !1063 from Hailiang/aot_lowering
2022-04-21 02:14:57 +00:00
Hailiang Hu
22714d7c0c AOT Test Framework, for quickly debugging and developer self test
1. Use makefile to gather command frequently knocke,
   easy to execute with one key.
2. Write shell script to run all of the cases, and judge the
   result with expected output, print test report.

Issue: #I53KBJ

Signed-off-by: Hailiang Hu <allenpas@huawei.com>
Change-Id: Ib999cb639986b936baaa6ffed0d33cf8e3b249fa
2022-04-20 20:02:42 +08:00
openharmony_ci
61486757ca
!1051 repair gn file
Merge pull request !1051 from hjzhangcm/master
2022-04-20 10:42:23 +00:00
sunzhe23
9c3e2e6aed Optimize some runtime stub for asm interpreter
1 Set FindElementWithCache and Float as no GC runtime
2 Add SavePC for RuntimeCall if needed

issue: #I53PT7

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-04-20 03:10:30 -07:00
openharmony_ci
9892e07bee
!1010 CDP协议heapprofiler接口实现
Merge pull request !1010 from wwx1083752/master
2022-04-20 09:58:47 +00:00
openharmony_ci
3901aae217
!1060 fix EcmaString::FastSubString
Merge pull request !1060 from xliu/fix_substring
2022-04-20 09:20:14 +00:00
hjzhangcm
8046084328 simplify gn file
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-20 17:13:49 +08:00
openharmony_ci
22ab3011ee
!1064 多线程报错时打印thread id协助定位
Merge pull request !1064 from 李俊峰/thread_log
2022-04-20 08:30:39 +00:00
wuzhefeng
bf59add3d3 [Refactor] refactor the code
There are some redundant code, such as runtime_api.h/cpp, which only
contains a method. Therefore, we can merge it to corresponding class and
remove these two files.

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

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: Ie4ae7c23fbedf15b53e8856d7455aa7c37afd1b3
2022-04-20 01:17:00 -07:00
zcdqs
1e8f67ee19 print thread id in multi-thread error
Signed-off-by: zcdqs <junfeng.lijunfeng@huawei.com>
Change-Id: I4750e33edf98a9fc989e10dc3f1e277924ab1c34
2022-04-20 15:18:25 +08:00
openharmony_ci
d56503f58e
!1021 在OAT.xml中增加en-us图片的filter
Merge pull request !1021 from wusongqing/master
2022-04-20 06:29:18 +00:00
openharmony_ci
8de776d057
!1058 Stringify support TypedArray
Merge pull request !1058 from 苏重威/master
2022-04-20 04:31:22 +00:00
chenqi
4358253556 Fix Container TreeMap Interface
Description
  Add Interface isEmpty on TreeMap.prototype.
Related issue
  #I53M3X:Fix Container

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-04-20 11:31:42 +08:00
xliu
d364f99e52 fix EcmaString::FastSubString
Description
  In the FastSubString interface of EcmaString, which is a fast path,
  there is a logical error in judging whether characters are compressible
Issue:
  #I53HR7:fix EcmaString::FastSubString

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: If8d93fadbae5805bb2c8a674f3fc7725a562c032
2022-04-20 10:08:40 +08:00
openharmony_ci
d618f22fb6
!1035 add DoStackOverflowCheck for app crash after reboot many times
Merge pull request !1035 from guobingbing/adapter-asm
2022-04-19 12:21:19 +00:00
scw
e339c93829 Stringify support TypedArray
Support Stringify a TypedArray object

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

Signed-off-by: scw <suchongwei@huawei.com>
2022-04-19 20:16:09 +08:00
guobingbing
c9b5d658c5 add DoStackOverflowCheck for app crash after reboot many times
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I6b144c0b86b5c2b48bae8cf513d67e5e537eaf7b
2022-04-19 17:44:54 +08:00