Changeset 165203 in webkit for trunk/Source/JavaScriptCore/jit/AssemblyHelpers.h
- Timestamp:
- Mar 6, 2014, 12:00:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/AssemblyHelpers.h
r165135 r165203 388 388 #endif 389 389 390 Jump checkMarkByte(GPRReg owner)391 {392 return branchTest8(NonZero, Address(owner, JSCell::gcDataOffset()));393 }394 395 390 // These methods convert between doubles, and doubles boxed and JSValues. 396 391 #if USE(JSVALUE64) … … 621 616 } 622 617 623 void writeBarrier(GPRReg owner, GPRReg scratch1, GPRReg scratch2, WriteBarrierUseKind useKind) 624 { 625 UNUSED_PARAM(owner); 626 UNUSED_PARAM(scratch1); 627 UNUSED_PARAM(scratch2); 628 UNUSED_PARAM(useKind); 629 ASSERT(owner != scratch1); 630 ASSERT(owner != scratch2); 631 ASSERT(scratch1 != scratch2); 632 633 #if ENABLE(WRITE_BARRIER_PROFILING) 634 emitCount(WriteBarrierCounters::jitCounterFor(useKind)); 635 #endif 618 Jump checkMarkByte(GPRReg cell) 619 { 620 return branchTest8(MacroAssembler::NonZero, MacroAssembler::Address(cell, JSCell::gcDataOffset())); 621 } 622 623 Jump checkMarkByte(JSCell* cell) 624 { 625 uint8_t* address = reinterpret_cast<uint8_t*>(cell) + JSCell::gcDataOffset(); 626 return branchTest8(MacroAssembler::NonZero, MacroAssembler::AbsoluteAddress(address)); 636 627 } 637 628
Note:
See TracChangeset
for help on using the changeset viewer.