Changeset 215522 in webkit for trunk/Source/JavaScriptCore/runtime/VMTraps.cpp
- Timestamp:
- Apr 19, 2017, 11:25:43 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/VMTraps.cpp
r215265 r215522 89 89 } 90 90 91 static Expected<std::pair<VM*, StackBounds>, VMTraps::Error> findActiveVMAndStackBounds(SignalContext& context) 91 struct VMAndStackBounds { 92 VM* vm; 93 StackBounds stackBounds; 94 }; 95 96 static Expected<VMAndStackBounds, VMTraps::Error> findActiveVMAndStackBounds(SignalContext& context) 92 97 { 93 98 VMInspector& inspector = VMInspector::instance(); … … 125 130 if (!activeVM && unableToAcquireMachineThreadsLock) 126 131 return makeUnexpected(VMTraps::Error::LockUnavailable); 127 return std::make_pair(activeVM, stackBounds);132 return VMAndStackBounds { activeVM, stackBounds }; 128 133 } 129 134 … … 133 138 auto activeVMAndStackBounds = findActiveVMAndStackBounds(context); 134 139 if (activeVMAndStackBounds) { 135 VM* vm = activeVMAndStackBounds.value(). first;140 VM* vm = activeVMAndStackBounds.value().vm; 136 141 if (vm) { 137 StackBounds stackBounds = activeVMAndStackBounds.value().s econd;142 StackBounds stackBounds = activeVMAndStackBounds.value().stackBounds; 138 143 VMTraps& traps = vm->traps(); 139 144 if (traps.needTrapHandling()) … … 154 159 return; // Let the SignalSender try again later. 155 160 156 VM* vm = activeVMAndStackBounds.value(). first;161 VM* vm = activeVMAndStackBounds.value().vm; 157 162 if (vm) { 158 163 VMTraps& traps = vm->traps();
Note:
See TracChangeset
for help on using the changeset viewer.