Changeset 223002 in webkit for trunk/Source/JavaScriptCore/jit/AssemblyHelpers.cpp
- Timestamp:
- Oct 6, 2017, 3:12:41 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/AssemblyHelpers.cpp
r222791 r223002 583 583 #endif 584 584 585 void AssemblyHelpers::restoreCalleeSavesFrom EntryFrameCalleeSavesBuffer(EntryFrame*& topEntryFrame)585 void AssemblyHelpers::restoreCalleeSavesFromVMEntryFrameCalleeSavesBuffer(VM& vm) 586 586 { 587 587 #if NUMBER_OF_CALLEE_SAVES_REGISTERS > 0 … … 606 606 ASSERT(scratch != InvalidGPRReg); 607 607 608 loadPtr(& topEntryFrame, scratch);609 addPtr(TrustedImm32( EntryFrame::calleeSaveRegistersBufferOffset()), scratch);608 loadPtr(&vm.topVMEntryFrame, scratch); 609 addPtr(TrustedImm32(VMEntryFrame::calleeSaveRegistersBufferOffset()), scratch); 610 610 611 611 // Restore all callee saves except for the scratch. … … 628 628 loadPtr(Address(scratch, entry.offset()), scratch); 629 629 #else 630 UNUSED_PARAM( topEntryFrame);630 UNUSED_PARAM(vm); 631 631 #endif 632 632 } … … 779 779 780 780 #if ENABLE(WEBASSEMBLY) 781 void AssemblyHelpers::loadWasmContext Instance(GPRReg dst)781 void AssemblyHelpers::loadWasmContext(GPRReg dst) 782 782 { 783 783 #if ENABLE(FAST_TLS_JIT) 784 if (Wasm:: Context::useFastTLS()) {784 if (Wasm::useFastTLSForContext()) { 785 785 loadFromTLSPtr(fastTLSOffsetForKey(WTF_WASM_CONTEXT_KEY), dst); 786 786 return; 787 787 } 788 788 #endif 789 move(Wasm::PinnedRegisterInfo::get().wasmContext InstancePointer, dst);790 } 791 792 void AssemblyHelpers::storeWasmContext Instance(GPRReg src)789 move(Wasm::PinnedRegisterInfo::get().wasmContextPointer, dst); 790 } 791 792 void AssemblyHelpers::storeWasmContext(GPRReg src) 793 793 { 794 794 #if ENABLE(FAST_TLS_JIT) 795 if (Wasm:: Context::useFastTLS()) {795 if (Wasm::useFastTLSForContext()) { 796 796 storeToTLSPtr(src, fastTLSOffsetForKey(WTF_WASM_CONTEXT_KEY)); 797 797 return; 798 798 } 799 799 #endif 800 move(src, Wasm::PinnedRegisterInfo::get().wasmContext InstancePointer);801 } 802 803 bool AssemblyHelpers::loadWasmContext InstanceNeedsMacroScratchRegister()800 move(src, Wasm::PinnedRegisterInfo::get().wasmContextPointer); 801 } 802 803 bool AssemblyHelpers::loadWasmContextNeedsMacroScratchRegister() 804 804 { 805 805 #if ENABLE(FAST_TLS_JIT) 806 if (Wasm:: Context::useFastTLS())806 if (Wasm::useFastTLSForContext()) 807 807 return loadFromTLSPtrNeedsMacroScratchRegister(); 808 808 #endif … … 810 810 } 811 811 812 bool AssemblyHelpers::storeWasmContext InstanceNeedsMacroScratchRegister()812 bool AssemblyHelpers::storeWasmContextNeedsMacroScratchRegister() 813 813 { 814 814 #if ENABLE(FAST_TLS_JIT) 815 if (Wasm:: Context::useFastTLS())815 if (Wasm::useFastTLSForContext()) 816 816 return storeToTLSPtrNeedsMacroScratchRegister(); 817 817 #endif … … 876 876 } 877 877 878 void AssemblyHelpers::copyCalleeSavesTo EntryFrameCalleeSavesBufferImpl(GPRReg calleeSavesBuffer)878 void AssemblyHelpers::copyCalleeSavesToVMEntryFrameCalleeSavesBufferImpl(GPRReg calleeSavesBuffer) 879 879 { 880 880 #if NUMBER_OF_CALLEE_SAVES_REGISTERS > 0 881 addPtr(TrustedImm32( EntryFrame::calleeSaveRegistersBufferOffset()), calleeSavesBuffer);881 addPtr(TrustedImm32(VMEntryFrame::calleeSaveRegistersBufferOffset()), calleeSavesBuffer); 882 882 883 883 RegisterAtOffsetList* allCalleeSaves = VM::getAllCalleeSaveRegisterOffsets();
Note:
See TracChangeset
for help on using the changeset viewer.