Diff
checker
文本
文本
图像
文档
Excel
文件夹
Legal
Enterprise
桌面版
定价
登录
下载 Diffchecker 桌面版
比较文本
查找两个文本文件之间的差异
工具
历史
实时编辑器
折叠未更改行
关闭换行
视图
拆分
统一
比对精度
智能
单词
字符
语法高亮
选择语法
忽略
文本转换
转到第一个差异
编辑输入
Diffchecker Desktop
运行Diffchecker最安全的方式。获取Diffchecker桌面应用:您的差异永远不会离开您的电脑!
获取桌面版
Untitled diff
创建于
2年前
差异永不过期
清除
导出
分享
解释
2 删除
行
总计
删除
字符
总计
删除
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
69 行
全部复制
36 添加
行
总计
添加
字符
总计
添加
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
90 行
全部复制
复制
已复制
复制
已复制
LEAF_ENTRY RhpByRefAssignRef
, _TEXT
LEAF_ENTRY RhpByRefAssignRef
Batch
, _TEXT
ALTERNATE_ENTRY RhpByRefAssignRef
AVLocation1
RhpByRefAssignRefBatch_NextByref:
ALTERNATE_ENTRY RhpByRefAssignRef
Batch
AVLocation1
mov rcx, [rsi]
mov rcx, [rsi]
复制
已复制
复制
已复制
ALTERNATE_ENTRY RhpByRefAssignRef
AVLocation2
ALTERNATE_ENTRY RhpByRefAssignRef
Batch
AVLocation2
mov [rdi], rcx
mov [rdi], rcx
;; Check whether the writes were even into the heap. If not there's no card update required.
;; Check whether the writes were even into the heap. If not there's no card update required.
cmp rdi, [g_lowest_address]
cmp rdi, [g_lowest_address]
复制
已复制
复制
已复制
jb RhpByRefAssignRef
_NoBarrierRequired
jb RhpByRefAssignRef
Batch_NotInHeap
cmp rdi, [g_highest_address]
cmp rdi, [g_highest_address]
复制
已复制
复制
已复制
jae RhpByRefAssignRef
_NoBarrierRequired
jae RhpByRefAssignRef
Batch_NotInHeap
;; Update the shadow copy of the heap with the same value just written to the same heap. (A no-op unless
;; Update the shadow copy of the heap with the same value just written to the same heap. (A no-op unless
;; we're in a debug build and write barrier checking has been enabled).
;; we're in a debug build and write barrier checking has been enabled).
UPDATE_GC_SHADOW BASENAME, rcx, rdi
UPDATE_GC_SHADOW BASENAME, rcx, rdi
ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP
ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP
mov r11, [g_write_watch_table]
mov r11, [g_write_watch_table]
cmp r11, 0
cmp r11, 0
复制
已复制
复制
已复制
je RhpByRefAssignRef
_CheckCardTable
je RhpByRefAssignRef
Batch
_CheckCardTable
mov r10, rdi
mov r10, rdi
shr r10, 0Ch ;; SoftwareWriteWatch::AddressToTableByteIndexShift
shr r10, 0Ch ;; SoftwareWriteWatch::AddressToTableByteIndexShift
add r10, r11
add r10, r11
cmp byte ptr [r10], 0
cmp byte ptr [r10], 0
复制
已复制
复制
已复制
jne RhpByRefAssignRef
_CheckCardTable
jne RhpByRefAssignRef
Batch
_CheckCardTable
mov byte ptr [r10], 0FFh
mov byte ptr [r10], 0FFh
endif
endif
复制
已复制
复制
已复制
RhpByRefAssignRef
_CheckCardTable:
RhpByRefAssignRef
Batch
_CheckCardTable:
;; If the reference is to an object that's not in an ephemeral generation we have no need to track it
;; If the reference is to an object that's not in an ephemeral generation we have no need to track it
;; (since the object won't be collected or moved by an ephemeral collection).
;; (since the object won't be collected or moved by an ephemeral collection).
cmp rcx, [g_ephemeral_low]
cmp rcx, [g_ephemeral_low]
复制
已复制
复制
已复制
jb RhpByRefAssignRef
_NoBarrierRequired
jb RhpByRefAssignRef
Batch
_NoBarrierRequired
cmp rcx, [g_ephemeral_high]
cmp rcx, [g_ephemeral_high]
复制
已复制
复制
已复制
jae RhpByRefAssignRef
_NoBarrierRequired
jae RhpByRefAssignRef
Batch
_NoBarrierRequired
;; move current rdi value into rcx, we need to keep rdi and eventually increment by 8
;; move current rdi value into rcx, we need to keep rdi and eventually increment by 8
mov rcx, rdi
mov rcx, rdi
;; We have a location on the GC heap being updated with a reference to an ephemeral object so we must
;; We have a location on the GC heap being updated with a reference to an ephemeral object so we must
;; track this write. The location address is translated into an offset in the card table bitmap. We set
;; track this write. The location address is translated into an offset in the card table bitmap. We set
;; an entire byte in the card table since it's quicker than messing around with bitmasks and we only write
;; an entire byte in the card table since it's quicker than messing around with bitmasks and we only write
;; the byte if it hasn't already been done since writes are expensive and impact scaling.
;; the byte if it hasn't already been done since writes are expensive and impact scaling.
shr rcx, 0Bh
shr rcx, 0Bh
mov r10, [g_card_table]
mov r10, [g_card_table]
cmp byte ptr [rcx + r10], 0FFh
cmp byte ptr [rcx + r10], 0FFh
复制
已复制
复制
已复制
je RhpByRefAssignRef
_NoBarrierRequired
je RhpByRefAssignRef
Batch
_NoBarrierRequired
;; We get here if it's necessary to update the card table.
;; We get here if it's necessary to update the card table.
mov byte ptr [rcx + r10], 0FFh
mov byte ptr [rcx + r10], 0FFh
ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES
ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES
;; Shift rcx by 0Ah more to get the card bundle byte (we shifted by 0Bh already)
;; Shift rcx by 0Ah more to get the card bundle byte (we shifted by 0Bh already)
shr rcx, 0Ah
shr rcx, 0Ah
add rcx, [g_card_bundle_table]
add rcx, [g_card_bundle_table]
cmp byte ptr [rcx], 0FFh
cmp byte ptr [rcx], 0FFh
复制
已复制
复制
已复制
je RhpByRefAssignRef
_NoBarrierRequired
je RhpByRefAssignRef
Batch
_NoBarrierRequired
mov byte ptr [rcx], 0FFh
mov byte ptr [rcx], 0FFh
endif
endif
复制
已复制
复制
已复制
RhpByRefAssignRefBatch_NotInHeap:
;; At least one write is already done, increment the pointers
add rdi, 8h
add rsi, 8h
dec r8d
je RhpByRefAssignRefBatch_NotInHeapExit
;; Now we can do the rest of the writes without checking the heap
RhpByRefAssignRefBatch_NextByrefUnchecked:
mov rcx, [rsi]
mov [rdi], rcx
add rdi, 8h
add rsi, 8h
dec r8d
jne RhpByRefAssignRefBatch_NextByrefUnchecked
RhpByRefAssignRefBatch_NotInHeapExit:
ret
复制
已复制
复制
已复制
RhpByRefAssignRef
_NoBarrierRequired:
RhpByRefAssignRef
Batch
_NoBarrierRequired:
;; Increment the pointers before leaving
;; Increment the pointers before leaving
add rdi, 8h
add rdi, 8h
add rsi, 8h
add rsi, 8h
复制
已复制
复制
已复制
dec r8d
jne RhpByRefAssignRefBatch_NextByref
ret
ret
复制
已复制
复制
已复制
LEAF_END RhpByRefAssignRef
, _TEXT
LEAF_END RhpByRefAssignRef
Batch
, _TEXT
已保存差异
原始文本
打开文件
LEAF_ENTRY RhpByRefAssignRef, _TEXT ALTERNATE_ENTRY RhpByRefAssignRefAVLocation1 mov rcx, [rsi] ALTERNATE_ENTRY RhpByRefAssignRefAVLocation2 mov [rdi], rcx ;; Check whether the writes were even into the heap. If not there's no card update required. cmp rdi, [g_lowest_address] jb RhpByRefAssignRef_NoBarrierRequired cmp rdi, [g_highest_address] jae RhpByRefAssignRef_NoBarrierRequired ;; Update the shadow copy of the heap with the same value just written to the same heap. (A no-op unless ;; we're in a debug build and write barrier checking has been enabled). UPDATE_GC_SHADOW BASENAME, rcx, rdi ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP mov r11, [g_write_watch_table] cmp r11, 0 je RhpByRefAssignRef_CheckCardTable mov r10, rdi shr r10, 0Ch ;; SoftwareWriteWatch::AddressToTableByteIndexShift add r10, r11 cmp byte ptr [r10], 0 jne RhpByRefAssignRef_CheckCardTable mov byte ptr [r10], 0FFh endif RhpByRefAssignRef_CheckCardTable: ;; If the reference is to an object that's not in an ephemeral generation we have no need to track it ;; (since the object won't be collected or moved by an ephemeral collection). cmp rcx, [g_ephemeral_low] jb RhpByRefAssignRef_NoBarrierRequired cmp rcx, [g_ephemeral_high] jae RhpByRefAssignRef_NoBarrierRequired ;; move current rdi value into rcx, we need to keep rdi and eventually increment by 8 mov rcx, rdi ;; We have a location on the GC heap being updated with a reference to an ephemeral object so we must ;; track this write. The location address is translated into an offset in the card table bitmap. We set ;; an entire byte in the card table since it's quicker than messing around with bitmasks and we only write ;; the byte if it hasn't already been done since writes are expensive and impact scaling. shr rcx, 0Bh mov r10, [g_card_table] cmp byte ptr [rcx + r10], 0FFh je RhpByRefAssignRef_NoBarrierRequired ;; We get here if it's necessary to update the card table. mov byte ptr [rcx + r10], 0FFh ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES ;; Shift rcx by 0Ah more to get the card bundle byte (we shifted by 0Bh already) shr rcx, 0Ah add rcx, [g_card_bundle_table] cmp byte ptr [rcx], 0FFh je RhpByRefAssignRef_NoBarrierRequired mov byte ptr [rcx], 0FFh endif RhpByRefAssignRef_NoBarrierRequired: ;; Increment the pointers before leaving add rdi, 8h add rsi, 8h ret LEAF_END RhpByRefAssignRef, _TEXT
更改后文本
打开文件
LEAF_ENTRY RhpByRefAssignRefBatch, _TEXT RhpByRefAssignRefBatch_NextByref: ALTERNATE_ENTRY RhpByRefAssignRefBatchAVLocation1 mov rcx, [rsi] ALTERNATE_ENTRY RhpByRefAssignRefBatchAVLocation2 mov [rdi], rcx ;; Check whether the writes were even into the heap. If not there's no card update required. cmp rdi, [g_lowest_address] jb RhpByRefAssignRefBatch_NotInHeap cmp rdi, [g_highest_address] jae RhpByRefAssignRefBatch_NotInHeap ;; Update the shadow copy of the heap with the same value just written to the same heap. (A no-op unless ;; we're in a debug build and write barrier checking has been enabled). UPDATE_GC_SHADOW BASENAME, rcx, rdi ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP mov r11, [g_write_watch_table] cmp r11, 0 je RhpByRefAssignRefBatch_CheckCardTable mov r10, rdi shr r10, 0Ch ;; SoftwareWriteWatch::AddressToTableByteIndexShift add r10, r11 cmp byte ptr [r10], 0 jne RhpByRefAssignRefBatch_CheckCardTable mov byte ptr [r10], 0FFh endif RhpByRefAssignRefBatch_CheckCardTable: ;; If the reference is to an object that's not in an ephemeral generation we have no need to track it ;; (since the object won't be collected or moved by an ephemeral collection). cmp rcx, [g_ephemeral_low] jb RhpByRefAssignRefBatch_NoBarrierRequired cmp rcx, [g_ephemeral_high] jae RhpByRefAssignRefBatch_NoBarrierRequired ;; move current rdi value into rcx, we need to keep rdi and eventually increment by 8 mov rcx, rdi ;; We have a location on the GC heap being updated with a reference to an ephemeral object so we must ;; track this write. The location address is translated into an offset in the card table bitmap. We set ;; an entire byte in the card table since it's quicker than messing around with bitmasks and we only write ;; the byte if it hasn't already been done since writes are expensive and impact scaling. shr rcx, 0Bh mov r10, [g_card_table] cmp byte ptr [rcx + r10], 0FFh je RhpByRefAssignRefBatch_NoBarrierRequired ;; We get here if it's necessary to update the card table. mov byte ptr [rcx + r10], 0FFh ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES ;; Shift rcx by 0Ah more to get the card bundle byte (we shifted by 0Bh already) shr rcx, 0Ah add rcx, [g_card_bundle_table] cmp byte ptr [rcx], 0FFh je RhpByRefAssignRefBatch_NoBarrierRequired mov byte ptr [rcx], 0FFh endif RhpByRefAssignRefBatch_NotInHeap: ;; At least one write is already done, increment the pointers add rdi, 8h add rsi, 8h dec r8d je RhpByRefAssignRefBatch_NotInHeapExit ;; Now we can do the rest of the writes without checking the heap RhpByRefAssignRefBatch_NextByrefUnchecked: mov rcx, [rsi] mov [rdi], rcx add rdi, 8h add rsi, 8h dec r8d jne RhpByRefAssignRefBatch_NextByrefUnchecked RhpByRefAssignRefBatch_NotInHeapExit: ret RhpByRefAssignRefBatch_NoBarrierRequired: ;; Increment the pointers before leaving add rdi, 8h add rsi, 8h dec r8d jne RhpByRefAssignRefBatch_NextByref ret LEAF_END RhpByRefAssignRefBatch, _TEXT
查找差异