Changeset 215270 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Apr 12, 2017, 10:19:57 AM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r215269 r215270 1 2017-04-12 Yusuke Suzuki <[email protected]> 2 3 Use HAVE(MACHINE_CONTEXT) instead of USE(MACHINE_CONTEXT) 4 https://bugs.webkit.org/show_bug.cgi?id=170770 5 6 Rubber stamped by Mark Lam. 7 8 * heap/MachineStackMarker.cpp: 9 (JSC::MachineThreads::MachineThread::Registers::framePointer): 10 (JSC::MachineThreads::MachineThread::Registers::instructionPointer): 11 (JSC::MachineThreads::MachineThread::Registers::llintPC): 12 * runtime/MachineContext.h: 13 (JSC::MachineContext::stackPointer): 14 (JSC::MachineContext::framePointer): 15 (JSC::MachineContext::instructionPointer): 16 (JSC::MachineContext::argumentPointer<1>): 17 (JSC::MachineContext::llintInstructionPointer): 18 1 19 2017-04-12 Yusuke Suzuki <[email protected]> 2 20 -
trunk/Source/JavaScriptCore/heap/MachineStackMarker.cpp
r215269 r215270 233 233 void* MachineThreads::MachineThread::Registers::framePointer() const 234 234 { 235 #if OS(WINDOWS) || USE(MACHINE_CONTEXT)235 #if OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 236 236 return MachineContext::framePointer(regs); 237 237 #else … … 242 242 void* MachineThreads::MachineThread::Registers::instructionPointer() const 243 243 { 244 #if OS(WINDOWS) || USE(MACHINE_CONTEXT)244 #if OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 245 245 return MachineContext::instructionPointer(regs); 246 246 #else … … 252 252 { 253 253 // LLInt uses regT4 as PC. 254 #if OS(WINDOWS) || USE(MACHINE_CONTEXT)254 #if OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 255 255 return MachineContext::llintInstructionPointer(regs); 256 256 #else -
trunk/Source/JavaScriptCore/runtime/MachineContext.h
r215269 r215270 38 38 void* stackPointer(const PlatformRegisters&); 39 39 40 #if OS(WINDOWS) || USE(MACHINE_CONTEXT)40 #if OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 41 41 void*& framePointer(PlatformRegisters&); 42 42 void* framePointer(const PlatformRegisters&); … … 49 49 void* llintInstructionPointer(const PlatformRegisters&); 50 50 #endif // ENABLE(JIT) 51 #if USE(MACHINE_CONTEXT)51 #if HAVE(MACHINE_CONTEXT) 52 52 void*& stackPointer(mcontext_t&); 53 53 void* stackPointer(const mcontext_t&); … … 62 62 void* llintInstructionPointer(const mcontext_t&); 63 63 #endif // ENABLE(JIT) 64 #endif // USE(MACHINE_CONTEXT)65 #endif // OS(WINDOWS) || USE(MACHINE_CONTEXT)64 #endif // HAVE(MACHINE_CONTEXT) 65 #endif // OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 66 66 67 67 inline void*& stackPointer(PlatformRegisters& regs) … … 110 110 #endif 111 111 112 #elif USE(MACHINE_CONTEXT)112 #elif HAVE(MACHINE_CONTEXT) 113 113 return stackPointer(regs.machineContext); 114 114 #else … … 123 123 124 124 125 #if USE(MACHINE_CONTEXT)125 #if HAVE(MACHINE_CONTEXT) 126 126 inline void*& stackPointer(mcontext_t& machineContext) 127 127 { … … 166 166 return stackPointer(const_cast<mcontext_t&>(machineContext)); 167 167 } 168 #endif // USE(MACHINE_CONTEXT)169 170 171 #if OS(WINDOWS) || USE(MACHINE_CONTEXT)168 #endif // HAVE(MACHINE_CONTEXT) 169 170 171 #if OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 172 172 inline void*& framePointer(PlatformRegisters& regs) 173 173 { … … 216 216 #endif 217 217 218 #elif USE(MACHINE_CONTEXT)218 #elif HAVE(MACHINE_CONTEXT) 219 219 return framePointer(regs.machineContext); 220 220 #endif … … 225 225 return framePointer(const_cast<PlatformRegisters&>(regs)); 226 226 } 227 #endif // OS(WINDOWS) || USE(MACHINE_CONTEXT)228 229 230 #if USE(MACHINE_CONTEXT)227 #endif // OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 228 229 230 #if HAVE(MACHINE_CONTEXT) 231 231 inline void*& framePointer(mcontext_t& machineContext) 232 232 { … … 275 275 return framePointer(const_cast<mcontext_t&>(machineContext)); 276 276 } 277 #endif // USE(MACHINE_CONTEXT)278 279 280 #if OS(WINDOWS) || USE(MACHINE_CONTEXT)277 #endif // HAVE(MACHINE_CONTEXT) 278 279 280 #if OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 281 281 inline void*& instructionPointer(PlatformRegisters& regs) 282 282 { … … 319 319 #endif 320 320 321 #elif USE(MACHINE_CONTEXT)321 #elif HAVE(MACHINE_CONTEXT) 322 322 return instructionPointer(regs.machineContext); 323 323 #endif … … 328 328 return instructionPointer(const_cast<PlatformRegisters&>(regs)); 329 329 } 330 #endif // OS(WINDOWS) || USE(MACHINE_CONTEXT)331 332 333 #if USE(MACHINE_CONTEXT)330 #endif // OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 331 332 333 #if HAVE(MACHINE_CONTEXT) 334 334 inline void*& instructionPointer(mcontext_t& machineContext) 335 335 { … … 378 378 return instructionPointer(const_cast<mcontext_t&>(machineContext)); 379 379 } 380 #endif // USE(MACHINE_CONTEXT)381 382 383 #if OS(WINDOWS) || USE(MACHINE_CONTEXT)384 #if USE(MACHINE_CONTEXT)380 #endif // HAVE(MACHINE_CONTEXT) 381 382 383 #if OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 384 #if HAVE(MACHINE_CONTEXT) 385 385 template<> void*& argumentPointer<1>(mcontext_t&); 386 386 #endif … … 430 430 #endif 431 431 432 #elif USE(MACHINE_CONTEXT)432 #elif HAVE(MACHINE_CONTEXT) 433 433 return argumentPointer<1>(regs.machineContext); 434 434 #endif … … 440 440 return argumentPointer<N>(const_cast<PlatformRegisters&>(regs)); 441 441 } 442 #endif // OS(WINDOWS) || USE(MACHINE_CONTEXT)443 444 #if USE(MACHINE_CONTEXT)442 #endif // OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 443 444 #if HAVE(MACHINE_CONTEXT) 445 445 template<> 446 446 inline void*& argumentPointer<1>(mcontext_t& machineContext) … … 491 491 return argumentPointer<N>(const_cast<mcontext_t&>(machineContext)); 492 492 } 493 #endif // USE(MACHINE_CONTEXT)493 #endif // HAVE(MACHINE_CONTEXT) 494 494 495 495 #if ENABLE(JIT) 496 #if OS(WINDOWS) || USE(MACHINE_CONTEXT)496 #if OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 497 497 inline void*& llintInstructionPointer(PlatformRegisters& regs) 498 498 { … … 547 547 #endif 548 548 549 #elif USE(MACHINE_CONTEXT)549 #elif HAVE(MACHINE_CONTEXT) 550 550 return llintInstructionPointer(regs.machineContext); 551 551 #endif … … 556 556 return llintInstructionPointer(const_cast<PlatformRegisters&>(regs)); 557 557 } 558 #endif // OS(WINDOWS) || USE(MACHINE_CONTEXT)559 560 561 #if USE(MACHINE_CONTEXT)558 #endif // OS(WINDOWS) || HAVE(MACHINE_CONTEXT) 559 560 561 #if HAVE(MACHINE_CONTEXT) 562 562 inline void*& llintInstructionPointer(mcontext_t& machineContext) 563 563 { … … 607 607 return llintInstructionPointer(const_cast<mcontext_t&>(machineContext)); 608 608 } 609 #endif // USE(MACHINE_CONTEXT)609 #endif // HAVE(MACHINE_CONTEXT) 610 610 #endif // ENABLE(JIT) 611 611
Note:
See TracChangeset
for help on using the changeset viewer.