@@ -81,14 +81,14 @@ LEAF_ENTRY JIT_WriteBarrier, _TEXT
81
81
// Update the write watch table if necessary
82
82
mov rax , rdi
83
83
movabs r10 , 0xF0F0F0F0F0F0F0F0
84
- shr rax , 0Ch // SoftwareWriteWatch::AddressToTableByteIndexShift
84
+ shr rax , 0xC // SoftwareWriteWatch::AddressToTableByteIndexShift
85
85
NOP_2_BYTE // padding for alignment of constant
86
86
movabs r11 , 0xF0F0F0F0F0F0F0F0
87
87
add rax , r10
88
- cmp byte ptr [ rax ], 0h
88
+ cmp byte ptr [ rax ], 0x0
89
89
. byte 0x75 , 0x06
90
90
// jne CheckCardTable
91
- mov byte ptr [ rax ], 0FFh
91
+ mov byte ptr [ rax ], 0xFF
92
92
93
93
NOP_3_BYTE // padding for alignment of constant
94
94
@@ -112,27 +112,27 @@ LEAF_ENTRY JIT_WriteBarrier, _TEXT
112
112
113
113
// Touch the card table entry , if not already dirty.
114
114
shr rdi , 0x0B
115
- cmp byte ptr [ rdi + rax ], 0FFh
115
+ cmp byte ptr [ rdi + rax ], 0xFF
116
116
. byte 0x75 , 0x02
117
117
// jne UpdateCardTable
118
118
REPRET
119
119
120
120
UpdateCardTable:
121
- mov byte ptr [ rdi + rax ], 0FFh
121
+ mov byte ptr [ rdi + rax ], 0xFF
122
122
123
123
#ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES
124
124
NOP_2_BYTE // padding for alignment of constant
125
125
shr rdi , 0x0A
126
126
127
127
movabs rax , 0xF0F0F0F0F0F0F0F0
128
- cmp byte ptr [ rdi + rax ], 0FFh
128
+ cmp byte ptr [ rdi + rax ], 0xFF
129
129
130
130
. byte 0x75 , 0x02
131
131
// jne UpdateCardBundle_WriteWatch_PostGrow64
132
132
REPRET
133
133
134
134
UpdateCardBundle_WriteWatch_PostGrow64:
135
- mov byte ptr [ rdi + rax ], 0FFh
135
+ mov byte ptr [ rdi + rax ], 0xFF
136
136
#endif
137
137
138
138
ret
@@ -312,15 +312,15 @@ LEAF_ENTRY JIT_ByRefWriteBarrier, _TEXT
312
312
#ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP
313
313
// Update the write watch table if necessary
314
314
PREPARE_EXTERNAL_VAR g_sw_ww_enabled_for_gc_heap , rax
315
- cmp byte ptr [ rax ], 0h
315
+ cmp byte ptr [ rax ], 0x0
316
316
je CheckCardTable_ByRefWriteBarrier
317
317
mov rax , rdi
318
- shr rax , 0Ch // SoftwareWriteWatch::AddressToTableByteIndexShift
318
+ shr rax , 0xC // SoftwareWriteWatch::AddressToTableByteIndexShift
319
319
PREPARE_EXTERNAL_VAR g_sw_ww_table , r10
320
320
add rax , qword ptr [ r10 ]
321
- cmp byte ptr [ rax ], 0h
321
+ cmp byte ptr [ rax ], 0x0
322
322
jne CheckCardTable_ByRefWriteBarrier
323
- mov byte ptr [ rax ], 0FFh
323
+ mov byte ptr [ rax ], 0xFF
324
324
#endif
325
325
326
326
CheckCardTable_ByRefWriteBarrier:
@@ -334,8 +334,8 @@ LEAF_ENTRY JIT_ByRefWriteBarrier, _TEXT
334
334
335
335
// move current rdi value into rcx and then increment the pointers
336
336
mov rcx , rdi
337
- add rsi , 8h
338
- add rdi , 8h
337
+ add rsi , 0x8
338
+ add rdi , 0x8
339
339
340
340
// Check if we need to update the card table
341
341
// Calc pCardByte
@@ -345,13 +345,13 @@ LEAF_ENTRY JIT_ByRefWriteBarrier, _TEXT
345
345
mov rax , [ rax ]
346
346
347
347
// Check if this card is dirty
348
- cmp byte ptr [ rcx + rax ], 0FFh
348
+ cmp byte ptr [ rcx + rax ], 0xFF
349
349
350
350
jne UpdateCardTable_ByRefWriteBarrier
351
351
REPRET
352
352
353
353
UpdateCardTable_ByRefWriteBarrier:
354
- mov byte ptr [ rcx + rax ], 0FFh
354
+ mov byte ptr [ rcx + rax ], 0xFF
355
355
356
356
#ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES
357
357
// Shift rcx by 0x0A more to get the card bundle byte (we shifted by 0x0B already)
@@ -361,13 +361,13 @@ LEAF_ENTRY JIT_ByRefWriteBarrier, _TEXT
361
361
add rcx , [ rax ]
362
362
363
363
// Check if this bundle byte is dirty
364
- cmp byte ptr [ rcx ], 0FFh
364
+ cmp byte ptr [ rcx ], 0xFF
365
365
366
366
jne UpdateCardBundle_ByRefWriteBarrier
367
367
REPRET
368
368
369
369
UpdateCardBundle_ByRefWriteBarrier:
370
- mov byte ptr [ rcx ], 0FFh
370
+ mov byte ptr [ rcx ], 0xFF
371
371
#endif
372
372
373
373
ret
@@ -383,8 +383,8 @@ LEAF_ENTRY JIT_ByRefWriteBarrier, _TEXT
383
383
#endif
384
384
Exit_ByRefWriteBarrier:
385
385
// Increment the pointers before leaving
386
- add rdi , 8h
387
- add rsi , 8h
386
+ add rdi , 0x8
387
+ add rsi , 0x8
388
388
ret
389
389
LEAF_END JIT_ByRefWriteBarrier , _TEXT
390
390
0 commit comments