Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
顯示
檢視
拆分
統一
即時編輯器
隱藏空白變更
摺疊未變更行
關閉換行
比對精度
智能
語法
無
變更外觀
處理
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
Untitled diff
建立於
3 年前
差異永不過期
清除
匯出
分享
解釋
4 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
195 行
全部複製
67 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
227 行
全部複製
複製
已複製
複製
已複製
LEAF_ENTRY JIT_ByRefWriteBarrier
, _TEXT
LEAF_ENTRY JIT_ByRefWriteBarrier
Batch
, _TEXT
LOCAL_LABEL(NextByref_ByRefWriteBarrierBatch):
mov rcx, [rsi]
mov rcx, [rsi]
// If !WRITE_BARRIER_CHECK do the write first, otherwise we might have to do some ShadowGC stuff
// If !WRITE_BARRIER_CHECK do the write first, otherwise we might have to do some ShadowGC stuff
#ifndef WRITE_BARRIER_CHECK
#ifndef WRITE_BARRIER_CHECK
// rcx is [rsi]
// rcx is [rsi]
mov [rdi], rcx
mov [rdi], rcx
#endif
#endif
// When WRITE_BARRIER_CHECK is defined _NotInHeap will write the reference
// When WRITE_BARRIER_CHECK is defined _NotInHeap will write the reference
// but if it isn't then it will just return.
// but if it isn't then it will just return.
//
//
// See if this is in GCHeap
// See if this is in GCHeap
PREPARE_EXTERNAL_VAR g_lowest_address, rax
PREPARE_EXTERNAL_VAR g_lowest_address, rax
cmp rdi, [rax]
cmp rdi, [rax]
複製
已複製
複製
已複製
jb LOCAL_LABEL(NotInHeap_ByRefWriteBarrier
)
jb LOCAL_LABEL(NotInHeap_ByRefWriteBarrier
Batch
)
PREPARE_EXTERNAL_VAR g_highest_address, rax
PREPARE_EXTERNAL_VAR g_highest_address, rax
cmp rdi, [rax]
cmp rdi, [rax]
複製
已複製
複製
已複製
jnb LOCAL_LABEL(NotInHeap_ByRefWriteBarrier
)
jnb LOCAL_LABEL(NotInHeap_ByRefWriteBarrier
Batch
)
#ifdef WRITE_BARRIER_CHECK
#ifdef WRITE_BARRIER_CHECK
// **ALSO update the shadow GC heap if that is enabled**
// **ALSO update the shadow GC heap if that is enabled**
// Do not perform the work if g_GCShadow is 0
// Do not perform the work if g_GCShadow is 0
PREPARE_EXTERNAL_VAR g_GCShadow, rax
PREPARE_EXTERNAL_VAR g_GCShadow, rax
cmp qword ptr [rax], 0
cmp qword ptr [rax], 0
複製
已複製
複製
已複製
je LOCAL_LABEL(NoShadow_ByRefWriteBarrier
)
je LOCAL_LABEL(NoShadow_ByRefWriteBarrier
Batch
)
// If we end up outside of the heap don't corrupt random memory
// If we end up outside of the heap don't corrupt random memory
mov r10, rdi
mov r10, rdi
PREPARE_EXTERNAL_VAR g_lowest_address, rax
PREPARE_EXTERNAL_VAR g_lowest_address, rax
sub r10, [rax]
sub r10, [rax]
複製
已複製
複製
已複製
jb LOCAL_LABEL(NoShadow_ByRefWriteBarrier
)
jb LOCAL_LABEL(NoShadow_ByRefWriteBarrier
Batch
)
// Check that our adjusted destination is somewhere in the shadow gc
// Check that our adjusted destination is somewhere in the shadow gc
PREPARE_EXTERNAL_VAR g_GCShadow, rax
PREPARE_EXTERNAL_VAR g_GCShadow, rax
add r10, [rax]
add r10, [rax]
PREPARE_EXTERNAL_VAR g_GCShadowEnd, rax
PREPARE_EXTERNAL_VAR g_GCShadowEnd, rax
cmp r10, [rax]
cmp r10, [rax]
複製
已複製
複製
已複製
jnb LOCAL_LABEL(NoShadow_ByRefWriteBarrier
)
jnb LOCAL_LABEL(NoShadow_ByRefWriteBarrier
Batch
)
// Write ref into real GC
// Write ref into real GC
mov [rdi], rcx
mov [rdi], rcx
// Write ref into shadow GC
// Write ref into shadow GC
mov [r10], rcx
mov [r10], rcx
// Ensure that the write to the shadow heap occurs before the read from
// Ensure that the write to the shadow heap occurs before the read from
// the GC heap so that race conditions are caught by INVALIDGCVALUE
// the GC heap so that race conditions are caught by INVALIDGCVALUE
mfence
mfence
// Check that GC/ShadowGC values match
// Check that GC/ShadowGC values match
mov r11, [rdi]
mov r11, [rdi]
mov rax, [r10]
mov rax, [r10]
cmp rax, r11
cmp rax, r11
複製
已複製
複製
已複製
je LOCAL_LABEL(DoneShadow_ByRefWriteBarrier
)
je LOCAL_LABEL(DoneShadow_ByRefWriteBarrier
Batch
)
movabs r11, INVALIDGCVALUE
movabs r11, INVALIDGCVALUE
mov [r10], r11
mov [r10], r11
複製
已複製
複製
已複製
jmp LOCAL_LABEL(DoneShadow_ByRefWriteBarrier
)
jmp LOCAL_LABEL(DoneShadow_ByRefWriteBarrier
Batch
)
// If we don't have a shadow GC we won't have done the write yet
// If we don't have a shadow GC we won't have done the write yet
複製
已複製
複製
已複製
LOCAL_LABEL(NoShadow_ByRefWriteBarrier
):
LOCAL_LABEL(NoShadow_ByRefWriteBarrier
Batch
):
mov [rdi], rcx
mov [rdi], rcx
// If we had a shadow GC then we already wrote to the real GC at the same time
// If we had a shadow GC then we already wrote to the real GC at the same time
// as the shadow GC so we want to jump over the real write immediately above.
// as the shadow GC so we want to jump over the real write immediately above.
// Additionally we know for sure that we are inside the heap and therefore don't
// Additionally we know for sure that we are inside the heap and therefore don't
// need to replicate the above checks.
// need to replicate the above checks.
複製
已複製
複製
已複製
LOCAL_LABEL(DoneShadow_ByRefWriteBarrier
):
LOCAL_LABEL(DoneShadow_ByRefWriteBarrier
Batch
):
#endif
#endif
#ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP
#ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP
// Update the write watch table if necessary
// Update the write watch table if necessary
PREPARE_EXTERNAL_VAR g_sw_ww_enabled_for_gc_heap, rax
PREPARE_EXTERNAL_VAR g_sw_ww_enabled_for_gc_heap, rax
cmp byte ptr [rax], 0x0
cmp byte ptr [rax], 0x0
複製
已複製
複製
已複製
je LOCAL_LABEL(CheckCardTable_ByRefWriteBarrier
)
je LOCAL_LABEL(CheckCardTable_ByRefWriteBarrier
Batch
)
mov rax, rdi
mov rax, rdi
shr rax, 0xC // SoftwareWriteWatch::AddressToTableByteIndexShift
shr rax, 0xC // SoftwareWriteWatch::AddressToTableByteIndexShift
PREPARE_EXTERNAL_VAR g_sw_ww_table, r10
PREPARE_EXTERNAL_VAR g_sw_ww_table, r10
add rax, qword ptr [r10]
add rax, qword ptr [r10]
cmp byte ptr [rax], 0x0
cmp byte ptr [rax], 0x0
複製
已複製
複製
已複製
jne LOCAL_LABEL(CheckCardTable_ByRefWriteBarrier
)
jne LOCAL_LABEL(CheckCardTable_ByRefWriteBarrier
Batch
)
mov byte ptr [rax], 0xFF
mov byte ptr [rax], 0xFF
#endif
#endif
複製
已複製
複製
已複製
LOCAL_LABEL(CheckCardTable_ByRefWriteBarrier
):
LOCAL_LABEL(CheckCardTable_ByRefWriteBarrier
Batch
):
// See if we can just quick out
// See if we can just quick out
PREPARE_EXTERNAL_VAR g_ephemeral_low, rax
PREPARE_EXTERNAL_VAR g_ephemeral_low, rax
cmp rcx, [rax]
cmp rcx, [rax]
複製
已複製
複製
已複製
jb LOCAL_LABEL(Exit_ByRefWriteBarrier
)
jb LOCAL_LABEL(Exit_ByRefWriteBarrier
Batch
)
PREPARE_EXTERNAL_VAR g_ephemeral_high, rax
PREPARE_EXTERNAL_VAR g_ephemeral_high, rax
cmp rcx, [rax]
cmp rcx, [rax]
複製
已複製
複製
已複製
jnb LOCAL_LABEL(Exit_ByRefWriteBarrier
)
jnb LOCAL_LABEL(Exit_ByRefWriteBarrier
Batch
)
mov rax, rcx
mov rax, rcx
PREPARE_EXTERNAL_VAR g_region_shr, rcx
PREPARE_EXTERNAL_VAR g_region_shr, rcx
mov cl, [rcx]
mov cl, [rcx]
test cl, cl
test cl, cl
複製
已複製
複製
已複製
je LOCAL_LABEL(SkipCheck_ByRefWriteBarrier
)
je LOCAL_LABEL(SkipCheck_ByRefWriteBarrier
Batch
)
已保存差異
原始文本
開啟檔案
LEAF_ENTRY JIT_ByRefWriteBarrier, _TEXT mov rcx, [rsi] // If !WRITE_BARRIER_CHECK do the write first, otherwise we might have to do some ShadowGC stuff #ifndef WRITE_BARRIER_CHECK // rcx is [rsi] mov [rdi], rcx #endif // When WRITE_BARRIER_CHECK is defined _NotInHeap will write the reference // but if it isn't then it will just return. // // See if this is in GCHeap PREPARE_EXTERNAL_VAR g_lowest_address, rax cmp rdi, [rax] jb LOCAL_LABEL(NotInHeap_ByRefWriteBarrier) PREPARE_EXTERNAL_VAR g_highest_address, rax cmp rdi, [rax] jnb LOCAL_LABEL(NotInHeap_ByRefWriteBarrier) #ifdef WRITE_BARRIER_CHECK // **ALSO update the shadow GC heap if that is enabled** // Do not perform the work if g_GCShadow is 0 PREPARE_EXTERNAL_VAR g_GCShadow, rax cmp qword ptr [rax], 0 je LOCAL_LABEL(NoShadow_ByRefWriteBarrier) // If we end up outside of the heap don't corrupt random memory mov r10, rdi PREPARE_EXTERNAL_VAR g_lowest_address, rax sub r10, [rax] jb LOCAL_LABEL(NoShadow_ByRefWriteBarrier) // Check that our adjusted destination is somewhere in the shadow gc PREPARE_EXTERNAL_VAR g_GCShadow, rax add r10, [rax] PREPARE_EXTERNAL_VAR g_GCShadowEnd, rax cmp r10, [rax] jnb LOCAL_LABEL(NoShadow_ByRefWriteBarrier) // Write ref into real GC mov [rdi], rcx // Write ref into shadow GC mov [r10], rcx // Ensure that the write to the shadow heap occurs before the read from // the GC heap so that race conditions are caught by INVALIDGCVALUE mfence // Check that GC/ShadowGC values match mov r11, [rdi] mov rax, [r10] cmp rax, r11 je LOCAL_LABEL(DoneShadow_ByRefWriteBarrier) movabs r11, INVALIDGCVALUE mov [r10], r11 jmp LOCAL_LABEL(DoneShadow_ByRefWriteBarrier) // If we don't have a shadow GC we won't have done the write yet LOCAL_LABEL(NoShadow_ByRefWriteBarrier): mov [rdi], rcx // If we had a shadow GC then we already wrote to the real GC at the same time // as the shadow GC so we want to jump over the real write immediately above. // Additionally we know for sure that we are inside the heap and therefore don't // need to replicate the above checks. LOCAL_LABEL(DoneShadow_ByRefWriteBarrier): #endif #ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP // Update the write watch table if necessary PREPARE_EXTERNAL_VAR g_sw_ww_enabled_for_gc_heap, rax cmp byte ptr [rax], 0x0 je LOCAL_LABEL(CheckCardTable_ByRefWriteBarrier) mov rax, rdi shr rax, 0xC // SoftwareWriteWatch::AddressToTableByteIndexShift PREPARE_EXTERNAL_VAR g_sw_ww_table, r10 add rax, qword ptr [r10] cmp byte ptr [rax], 0x0 jne LOCAL_LABEL(CheckCardTable_ByRefWriteBarrier) mov byte ptr [rax], 0xFF #endif LOCAL_LABEL(CheckCardTable_ByRefWriteBarrier): // See if we can just quick out PREPARE_EXTERNAL_VAR g_ephemeral_low, rax cmp rcx, [rax] jb LOCAL_LABEL(Exit_ByRefWriteBarrier) PREPARE_EXTERNAL_VAR g_ephemeral_high, rax cmp rcx, [rax] jnb LOCAL_LABEL(Exit_ByRefWriteBarrier) mov rax, rcx PREPARE_EXTERNAL_VAR g_region_shr, rcx mov cl, [rcx] test cl, cl je LOCAL_LABEL(SkipCheck_ByRefWriteBarrier) // check if the source is in gen 2 - then it's not an ephemeral pointer shr rax, cl PREPARE_EXTERNAL_VAR g_region_to_generation_table, r10 mov r10, [r10] cmp byte ptr [rax + r10], 0x82 je LOCAL_LABEL(Exit_ByRefWriteBarrier) // check if the destination happens to be in gen 0 mov rax, rdi shr rax, cl cmp byte ptr [rax + r10], 0 je LOCAL_LABEL(Exit_ByRefWriteBarrier) LOCAL_LABEL(SkipCheck_ByRefWriteBarrier): PREPARE_EXTERNAL_VAR g_card_table, r10 mov r10, [r10] PREPARE_EXTERNAL_VAR g_region_use_bitwise_write_barrier, rax cmp byte ptr [rax], 0 je LOCAL_LABEL(CheckCardTableByte_ByRefWriteBarrier) // compute card table bit mov ecx, edi mov al, 1 shr ecx, 8 and cl, 7 shl al, cl // move current rdi value into rcx and then increment the pointers mov rcx, rdi add rsi, 0x8 add rdi, 0x8 // Check if we need to update the card table // Calc pCardByte shr rcx, 0xB // Check if this card table bit is already set test byte ptr [rcx + r10], al je LOCAL_LABEL(SetCardTableBit_ByRefWriteBarrier) REPRET LOCAL_LABEL(SetCardTableBit_ByRefWriteBarrier): lock or byte ptr [rcx + r10], al jmp LOCAL_LABEL(CheckCardBundle_ByRefWriteBarrier) LOCAL_LABEL(CheckCardTableByte_ByRefWriteBarrier): // move current rdi value into rcx and then increment the pointers mov rcx, rdi add rsi, 0x8 add rdi, 0x8 shr rcx, 0xB cmp byte ptr [rcx + r10], 0xFF jne LOCAL_LABEL(SetCardTableByte_ByRefWriteBarrier) REPRET LOCAL_LABEL(SetCardTableByte_ByRefWriteBarrier): mov byte ptr [rcx + r10], 0xFF LOCAL_LABEL(CheckCardBundle_ByRefWriteBarrier): #ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES // Shift rcx by 0x0A more to get the card bundle byte (we shifted by 0x0B already) shr rcx, 0x0A PREPARE_EXTERNAL_VAR g_card_bundle_table, rax add rcx, [rax] // Check if this bundle byte is dirty cmp byte ptr [rcx], 0xFF jne LOCAL_LABEL(UpdateCardBundle_ByRefWriteBarrier) REPRET LOCAL_LABEL(UpdateCardBundle_ByRefWriteBarrier): mov byte ptr [rcx], 0xFF #endif ret .balign 16 LOCAL_LABEL(NotInHeap_ByRefWriteBarrier): // If WRITE_BARRIER_CHECK then we won't have already done the mov and should do it here // If !WRITE_BARRIER_CHECK we want _NotInHeap and _Leave to be the same and have both // 16 byte aligned. #ifdef WRITE_BARRIER_CHECK // rcx is [rsi] mov [rdi], rcx #endif LOCAL_LABEL(Exit_ByRefWriteBarrier): // Increment the pointers before leaving add rdi, 0x8 add rsi, 0x8 ret LEAF_END_MARKED JIT_ByRefWriteBarrier, _TEXT
更改後文本
開啟檔案
LEAF_ENTRY JIT_ByRefWriteBarrierBatch, _TEXT LOCAL_LABEL(NextByref_ByRefWriteBarrierBatch): mov rcx, [rsi] // If !WRITE_BARRIER_CHECK do the write first, otherwise we might have to do some ShadowGC stuff #ifndef WRITE_BARRIER_CHECK // rcx is [rsi] mov [rdi], rcx #endif // When WRITE_BARRIER_CHECK is defined _NotInHeap will write the reference // but if it isn't then it will just return. // // See if this is in GCHeap PREPARE_EXTERNAL_VAR g_lowest_address, rax cmp rdi, [rax] jb LOCAL_LABEL(NotInHeap_ByRefWriteBarrierBatch) PREPARE_EXTERNAL_VAR g_highest_address, rax cmp rdi, [rax] jnb LOCAL_LABEL(NotInHeap_ByRefWriteBarrierBatch) #ifdef WRITE_BARRIER_CHECK // **ALSO update the shadow GC heap if that is enabled** // Do not perform the work if g_GCShadow is 0 PREPARE_EXTERNAL_VAR g_GCShadow, rax cmp qword ptr [rax], 0 je LOCAL_LABEL(NoShadow_ByRefWriteBarrierBatch) // If we end up outside of the heap don't corrupt random memory mov r10, rdi PREPARE_EXTERNAL_VAR g_lowest_address, rax sub r10, [rax] jb LOCAL_LABEL(NoShadow_ByRefWriteBarrierBatch) // Check that our adjusted destination is somewhere in the shadow gc PREPARE_EXTERNAL_VAR g_GCShadow, rax add r10, [rax] PREPARE_EXTERNAL_VAR g_GCShadowEnd, rax cmp r10, [rax] jnb LOCAL_LABEL(NoShadow_ByRefWriteBarrierBatch) // Write ref into real GC mov [rdi], rcx // Write ref into shadow GC mov [r10], rcx // Ensure that the write to the shadow heap occurs before the read from // the GC heap so that race conditions are caught by INVALIDGCVALUE mfence // Check that GC/ShadowGC values match mov r11, [rdi] mov rax, [r10] cmp rax, r11 je LOCAL_LABEL(DoneShadow_ByRefWriteBarrierBatch) movabs r11, INVALIDGCVALUE mov [r10], r11 jmp LOCAL_LABEL(DoneShadow_ByRefWriteBarrierBatch) // If we don't have a shadow GC we won't have done the write yet LOCAL_LABEL(NoShadow_ByRefWriteBarrierBatch): mov [rdi], rcx // If we had a shadow GC then we already wrote to the real GC at the same time // as the shadow GC so we want to jump over the real write immediately above. // Additionally we know for sure that we are inside the heap and therefore don't // need to replicate the above checks. LOCAL_LABEL(DoneShadow_ByRefWriteBarrierBatch): #endif #ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP // Update the write watch table if necessary PREPARE_EXTERNAL_VAR g_sw_ww_enabled_for_gc_heap, rax cmp byte ptr [rax], 0x0 je LOCAL_LABEL(CheckCardTable_ByRefWriteBarrierBatch) mov rax, rdi shr rax, 0xC // SoftwareWriteWatch::AddressToTableByteIndexShift PREPARE_EXTERNAL_VAR g_sw_ww_table, r10 add rax, qword ptr [r10] cmp byte ptr [rax], 0x0 jne LOCAL_LABEL(CheckCardTable_ByRefWriteBarrierBatch) mov byte ptr [rax], 0xFF #endif LOCAL_LABEL(CheckCardTable_ByRefWriteBarrierBatch): // See if we can just quick out PREPARE_EXTERNAL_VAR g_ephemeral_low, rax cmp rcx, [rax] jb LOCAL_LABEL(Exit_ByRefWriteBarrierBatch) PREPARE_EXTERNAL_VAR g_ephemeral_high, rax cmp rcx, [rax] jnb LOCAL_LABEL(Exit_ByRefWriteBarrierBatch) mov rax, rcx PREPARE_EXTERNAL_VAR g_region_shr, rcx mov cl, [rcx] test cl, cl je LOCAL_LABEL(SkipCheck_ByRefWriteBarrierBatch) // check if the source is in gen 2 - then it's not an ephemeral pointer shr rax, cl PREPARE_EXTERNAL_VAR g_region_to_generation_table, r10 mov r10, [r10] cmp byte ptr [rax + r10], 0x82 je LOCAL_LABEL(Exit_ByRefWriteBarrierBatch) // check if the destination happens to be in gen 0 mov rax, rdi shr rax, cl cmp byte ptr [rax + r10], 0 je LOCAL_LABEL(Exit_ByRefWriteBarrierBatch) LOCAL_LABEL(SkipCheck_ByRefWriteBarrierBatch): PREPARE_EXTERNAL_VAR g_card_table, r10 mov r10, [r10] PREPARE_EXTERNAL_VAR g_region_use_bitwise_write_barrier, rax cmp byte ptr [rax], 0 je LOCAL_LABEL(CheckCardTableByte_ByRefWriteBarrierBatch) // compute card table bit mov ecx, edi mov al, 1 shr ecx, 8 and cl, 7 shl al, cl // move current rdi value into rcx and then increment the pointers mov rcx, rdi add rsi, 0x8 add rdi, 0x8 // Check if we need to update the card table // Calc pCardByte shr rcx, 0xB // Check if this card table bit is already set test byte ptr [rcx + r10], al je LOCAL_LABEL(SetCardTableBit_ByRefWriteBarrierBatch) // Check if we have more in the batch and run again dec r8d jne LOCAL_LABEL(NextByref_ByRefWriteBarrierBatch) REPRET LOCAL_LABEL(SetCardTableBit_ByRefWriteBarrierBatch): lock or byte ptr [rcx + r10], al jmp LOCAL_LABEL(CheckCardBundle_ByRefWriteBarrierBatch) LOCAL_LABEL(CheckCardTableByte_ByRefWriteBarrierBatch): // move current rdi value into rcx and then increment the pointers mov rcx, rdi add rsi, 0x8 add rdi, 0x8 shr rcx, 0xB cmp byte ptr [rcx + r10], 0xFF jne LOCAL_LABEL(SetCardTableByte_ByRefWriteBarrierBatch) // Check if we have more in the batch and run again dec r8d jne LOCAL_LABEL(NextByref_ByRefWriteBarrierBatch) REPRET LOCAL_LABEL(SetCardTableByte_ByRefWriteBarrierBatch): mov byte ptr [rcx + r10], 0xFF LOCAL_LABEL(CheckCardBundle_ByRefWriteBarrierBatch): #ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES // Shift rcx by 0x0A more to get the card bundle byte (we shifted by 0x0B already) shr rcx, 0x0A PREPARE_EXTERNAL_VAR g_card_bundle_table, rax add rcx, [rax] // Check if this bundle byte is dirty cmp byte ptr [rcx], 0xFF jne LOCAL_LABEL(UpdateCardBundle_ByRefWriteBarrierBatch) // Check if we have more in the batch and run again dec r8d jne LOCAL_LABEL(NextByref_ByRefWriteBarrierBatch) REPRET LOCAL_LABEL(UpdateCardBundle_ByRefWriteBarrierBatch): mov byte ptr [rcx], 0xFF #endif // Check if we have more in the batch and run again dec r8d jne LOCAL_LABEL(NextByref_ByRefWriteBarrierBatch) ret .balign 16 LOCAL_LABEL(NotInHeap_ByRefWriteBarrierBatch): // If WRITE_BARRIER_CHECK then we won't have already done the mov and should do it here // If !WRITE_BARRIER_CHECK we want _NotInHeap and _Leave to be the same and have both // 16 byte aligned. #ifdef WRITE_BARRIER_CHECK // rcx is [rsi] mov [rdi], rcx #endif // At least one write is already done, increment the pointers add rdi, 0x8 add rsi, 0x8 dec r8d je LOCAL_LABEL(NotInHeapExit) // Now we can do the rest of the writes without checking the heap LOCAL_LABEL(NextByrefUnchecked): mov rcx, [rsi] mov [rdi], rcx add rdi, 0x8 add rsi, 0x8 dec r8d jne LOCAL_LABEL(NextByrefUnchecked) LOCAL_LABEL(NotInHeapExit): ret LOCAL_LABEL(Exit_ByRefWriteBarrierBatch): // Increment the pointers before leaving add rdi, 0x8 add rsi, 0x8 // Check if we have more in the batch and run again dec r8d jne LOCAL_LABEL(NextByref_ByRefWriteBarrierBatch) ret LEAF_END_MARKED JIT_ByRefWriteBarrierBatch, _TEXT
尋找差異