From b898f1a632696fd562b527bf72fad8fcd6d03ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=93=E5=8D=8E?= Date: Fri, 27 Jun 2025 07:51:31 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E2=80=9Carkts-bytecode-file-?= =?UTF-8?q?format=E2=80=9D=E5=9B=9B=E7=BA=A7=E9=93=BE=E6=8E=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82=20Signed-off-by:=20=E5=88=98=E6=99=93?= =?UTF-8?q?=E5=8D=8E=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application-dev/arkts-utils/arkts-bytecode-file-format.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/arkts-utils/arkts-bytecode-file-format.md b/zh-cn/application-dev/arkts-utils/arkts-bytecode-file-format.md index 1359a02e84b..505cb7c6c24 100644 --- a/zh-cn/application-dev/arkts-utils/arkts-bytecode-file-format.md +++ b/zh-cn/application-dev/arkts-utils/arkts-bytecode-file-format.md @@ -228,7 +228,7 @@ MethodIndexData是一个无符号32位整数,划分为3个部分。 | **位** | **名称** | **格式** | **说明** | | ------------ | -------------- | -------------- | ------------------------------------------------------------ | | 0 - 15 | `header_index` | `uint16_t` | 指向一个在[IndexSection](#indexsection)中的位置,该位置的值是[IndexHeader](#indexheader)。通过IndexHeader可以找到该方法引用的所有方法([Method](#method))、[字符串](#字符串)或字面量数组([LiteralArray](#literalarray))的偏移量。 | -| 16 - 23 | `function_kind` | `uint8_t` | 表示方法的函数类型([FunctionKind](#functionkind))。 | +| 16 - 23 | `function_kind` | `uint8_t` | 表示方法的函数类型(FunctionKind)。 | | 24 - 31 | `reserved` | `uint8_t` | 方舟字节码文件内部使用的保留字段。 | @@ -375,7 +375,7 @@ MethodIndexData是一个无符号32位整数,划分为3个部分。 ### DebugInfo -调试信息(DebugInfo)包含方法的程序计数器与源代码中的行列号之间的映射以及有关局部变量的信息。调试信息的格式由[DWARF调试信息格式第3版](https://dwarfstd.org/dwarf3std.html)(见第6.2项)的内容演变形成。基于状态机([State machine](#state-machine))的执行模型对行号程序([Line number program](#line-number-program))进行解释,可得到映射和局部变量信息编码。为对不同方法的相同行号程序进行去重,程序中引用的所有常量都被移动到了常量池([Constant pool](#constant-pool))中。 +调试信息(DebugInfo)包含方法的程序计数器与源代码中的行列号之间的映射以及有关局部变量的信息。调试信息的格式由[DWARF调试信息格式第3版](https://dwarfstd.org/dwarf3std.html)(见第6.2项)的内容演变形成。基于状态机(State machine)的执行模型对行号程序(Line number program)进行解释,可得到映射和局部变量信息编码。为对不同方法的相同行号程序进行去重,程序中引用的所有常量都被移动到了常量池(Constant pool)中。 - 对齐方式:单字节对齐。 - 格式: -- Gitee