Changeset 212394 in webkit
- Timestamp:
- Feb 15, 2017 2:31:07 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 12 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSRemoteInspector.cpp
r212169 r212394 51 51 } 52 52 53 void JSRemoteInspectorSetParentProcessInformation(pid_t pid, const uint8_t* auditData, size_t auditLength)53 void JSRemoteInspectorSetParentProcessInformation(pid_t pid, const UInt8* auditData, size_t auditLength) 54 54 { 55 #if ENABLE(REMOTE_INSPECTOR) && PLATFORM(COCOA)55 #if ENABLE(REMOTE_INSPECTOR) 56 56 RetainPtr<CFDataRef> auditDataRef = adoptCF(CFDataCreate(kCFAllocatorDefault, auditData, auditLength)); 57 57 RemoteInspector::singleton().setParentProcessInformation(pid, auditDataRef); -
trunk/Source/JavaScriptCore/ChangeLog
r212378 r212394 1 2017-02-15 Alex Christensen <achristensen@webkit.org> 2 3 Unreviewed, rolling out r212169. 4 5 Broke iOS WebInspector 6 7 Reverted changeset: 8 9 "WebInspector: refactor RemoteInspector to move cocoa specific 10 code to their own files" 11 https://bugs.webkit.org/show_bug.cgi?id=166681 12 http://trac.webkit.org/changeset/212169 13 1 14 2017-02-15 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r212169 r212394 1604 1604 9928FF3C18AC4AEC00B8CF12 /* JSReplayInputs.h in Headers */ = {isa = PBXBuildFile; fileRef = 9928FF3A18AC4AEC00B8CF12 /* JSReplayInputs.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1605 1605 992ABCF91BEA9BD2006403A0 /* RemoteAutomationTarget.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 992ABCF51BEA94CA006403A0 /* RemoteAutomationTarget.cpp */; }; 1606 992F56B41E4E84A40035953B /* RemoteConnectionToTargetCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 992F56B31E4E847D0035953B /* RemoteConnectionToTargetCocoa.mm */; };1607 992F56B51E4E84A80035953B /* RemoteInspectorCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 992F56B01E4E84790035953B /* RemoteInspectorCocoa.mm */; };1608 992F56B61E4E84AB0035953B /* RemoteInspectorXPCConnection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 992F56B21E4E84790035953B /* RemoteInspectorXPCConnection.mm */; };1609 992F56B71E4E84B20035953B /* RemoteInspectorXPCConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 992F56B11E4E84790035953B /* RemoteInspectorXPCConnection.h */; settings = {ATTRIBUTES = (Private, ); }; };1610 995566861E4E8B0F00AAE13C /* RemoteInspector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 995566851E4E8B0700AAE13C /* RemoteInspector.cpp */; };1611 1606 9959E92B1BD17FA4001AA413 /* cssmin.py in Headers */ = {isa = PBXBuildFile; fileRef = 9959E9271BD17FA0001AA413 /* cssmin.py */; settings = {ATTRIBUTES = (Private, ); }; }; 1612 1607 9959E92D1BD17FA4001AA413 /* jsmin.py in Headers */ = {isa = PBXBuildFile; fileRef = 9959E9291BD17FA0001AA413 /* jsmin.py */; settings = {ATTRIBUTES = (Private, ); }; }; … … 1785 1780 A5B6A74D18C6DBA600F11E91 /* ConsoleClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5B6A74C18C6DBA600F11E91 /* ConsoleClient.cpp */; }; 1786 1781 A5BA15E8182340B300A82E69 /* RemoteInspector.h in Headers */ = {isa = PBXBuildFile; fileRef = A5BA15E1182340B300A82E69 /* RemoteInspector.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1782 A5BA15E9182340B300A82E69 /* RemoteInspector.mm in Sources */ = {isa = PBXBuildFile; fileRef = A5BA15E2182340B300A82E69 /* RemoteInspector.mm */; }; 1787 1783 A5BA15EA182340B400A82E69 /* RemoteInspectorConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = A5BA15E3182340B300A82E69 /* RemoteInspectorConstants.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1788 1784 A5BA15EB182340B400A82E69 /* RemoteConnectionToTarget.h in Headers */ = {isa = PBXBuildFile; fileRef = A5BA15E4182340B300A82E69 /* RemoteConnectionToTarget.h */; }; 1785 A5BA15EC182340B400A82E69 /* RemoteConnectionToTarget.mm in Sources */ = {isa = PBXBuildFile; fileRef = A5BA15E5182340B300A82E69 /* RemoteConnectionToTarget.mm */; }; 1786 A5BA15ED182340B400A82E69 /* RemoteInspectorXPCConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = A5BA15E6182340B300A82E69 /* RemoteInspectorXPCConnection.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1787 A5BA15EE182340B400A82E69 /* RemoteInspectorXPCConnection.mm in Sources */ = {isa = PBXBuildFile; fileRef = A5BA15E7182340B300A82E69 /* RemoteInspectorXPCConnection.mm */; }; 1789 1788 A5BA15F0182345AF00A82E69 /* RemoteInspectionTarget.h in Headers */ = {isa = PBXBuildFile; fileRef = A5BA15EF182345AF00A82E69 /* RemoteInspectionTarget.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1790 1789 A5C3A1A518C0490200C9593A /* JSGlobalObjectConsoleClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5C3A1A318C0490200C9593A /* JSGlobalObjectConsoleClient.cpp */; }; … … 4122 4121 992ABCF51BEA94CA006403A0 /* RemoteAutomationTarget.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RemoteAutomationTarget.cpp; sourceTree = "<group>"; }; 4123 4122 992ABCF61BEA94CA006403A0 /* RemoteAutomationTarget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteAutomationTarget.h; sourceTree = "<group>"; }; 4124 992F56B01E4E84790035953B /* RemoteInspectorCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteInspectorCocoa.mm; sourceTree = "<group>"; };4125 992F56B11E4E84790035953B /* RemoteInspectorXPCConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteInspectorXPCConnection.h; sourceTree = "<group>"; };4126 992F56B21E4E84790035953B /* RemoteInspectorXPCConnection.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteInspectorXPCConnection.mm; sourceTree = "<group>"; };4127 992F56B31E4E847D0035953B /* RemoteConnectionToTargetCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteConnectionToTargetCocoa.mm; sourceTree = "<group>"; };4128 995566851E4E8B0700AAE13C /* RemoteInspector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RemoteInspector.cpp; sourceTree = "<group>"; };4129 4123 9959E9271BD17FA0001AA413 /* cssmin.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = cssmin.py; sourceTree = "<group>"; }; 4130 4124 9959E9291BD17FA0001AA413 /* jsmin.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = jsmin.py; sourceTree = "<group>"; }; … … 4304 4298 A5B6A74C18C6DBA600F11E91 /* ConsoleClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ConsoleClient.cpp; sourceTree = "<group>"; }; 4305 4299 A5BA15E1182340B300A82E69 /* RemoteInspector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteInspector.h; sourceTree = "<group>"; }; 4300 A5BA15E2182340B300A82E69 /* RemoteInspector.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteInspector.mm; sourceTree = "<group>"; }; 4306 4301 A5BA15E3182340B300A82E69 /* RemoteInspectorConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteInspectorConstants.h; sourceTree = "<group>"; }; 4307 4302 A5BA15E4182340B300A82E69 /* RemoteConnectionToTarget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteConnectionToTarget.h; sourceTree = "<group>"; }; 4303 A5BA15E5182340B300A82E69 /* RemoteConnectionToTarget.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteConnectionToTarget.mm; sourceTree = "<group>"; }; 4304 A5BA15E6182340B300A82E69 /* RemoteInspectorXPCConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteInspectorXPCConnection.h; sourceTree = "<group>"; }; 4305 A5BA15E7182340B300A82E69 /* RemoteInspectorXPCConnection.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteInspectorXPCConnection.mm; sourceTree = "<group>"; }; 4308 4306 A5BA15EF182345AF00A82E69 /* RemoteInspectionTarget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteInspectionTarget.h; sourceTree = "<group>"; }; 4309 4307 A5C3A1A318C0490200C9593A /* JSGlobalObjectConsoleClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSGlobalObjectConsoleClient.cpp; sourceTree = "<group>"; }; … … 5045 5043 children = ( 5046 5044 0F9327591C20BCBA00CF6564 /* dynbench */, 5047 932F5BE10822A1C700736975 /* jsc */,5048 5045 0FF922CF14F46B130041A24E /* JSCLLIntOffsetsExtractor */, 5049 5046 141211200A48793C00480255 /* minidom */, … … 5053 5050 6511230514046A4C002B101D /* testRegExp */, 5054 5051 932F5BD90822A1C700736975 /* JavaScriptCore.framework */, 5052 932F5BE10822A1C700736975 /* jsc */, 5055 5053 ); 5056 5054 name = Products; … … 6109 6107 name = ARMv7; 6110 6108 path = disassembler/ARMv7; 6111 sourceTree = "<group>";6112 };6113 7ACDDECF1E252ACA0097AFEB /* cocoa */ = {6114 isa = PBXGroup;6115 children = (6116 992F56B31E4E847D0035953B /* RemoteConnectionToTargetCocoa.mm */,6117 992F56B01E4E84790035953B /* RemoteInspectorCocoa.mm */,6118 992F56B11E4E84790035953B /* RemoteInspectorXPCConnection.h */,6119 992F56B21E4E84790035953B /* RemoteInspectorXPCConnection.mm */,6120 );6121 path = cocoa;6122 6109 sourceTree = "<group>"; 6123 6110 }; … … 6838 6825 FE384EE31ADDB7AD0055DE2C /* JSDollarVMPrototype.cpp */, 6839 6826 FE384EE41ADDB7AD0055DE2C /* JSDollarVMPrototype.h */, 6840 86B5822C14D22F5F00A9C306 /* ProfileTreeNode.h */,6841 6827 FE3022D01E3D739600BAC493 /* SigillCrashAnalyzer.cpp */, 6842 6828 FE3022D11E3D739600BAC493 /* SigillCrashAnalyzer.h */, 6829 86B5822C14D22F5F00A9C306 /* ProfileTreeNode.h */, 6843 6830 86B5826A14D35D5100A9C306 /* TieredMMapArray.h */, 6844 6831 FE3022D41E42856700BAC493 /* VMInspector.cpp */, … … 7124 7111 0F3A1BF71A9ECB7D000DE01A /* DFGPutStackSinkingPhase.cpp */, 7125 7112 0F3A1BF81A9ECB7D000DE01A /* DFGPutStackSinkingPhase.h */, 7126 86EC9DC11328DF82002B2AD7 /* DFGRegisterBank.h */,7127 7113 79FC8A071E32E9F000D88F0E /* DFGRegisteredStructure.h */, 7128 7114 7980C16A1E3A940E00B71615 /* DFGRegisteredStructureSet.cpp */, 7129 7115 7980C16B1E3A940E00B71615 /* DFGRegisteredStructureSet.h */, 7116 86EC9DC11328DF82002B2AD7 /* DFGRegisterBank.h */, 7130 7117 0F2FCCF418A60070001A27F8 /* DFGSafepoint.cpp */, 7131 7118 0F2FCCF518A60070001A27F8 /* DFGSafepoint.h */, … … 7656 7643 isa = PBXGroup; 7657 7644 children = ( 7658 7ACDDECF1E252ACA0097AFEB /* cocoa */,7659 7645 992ABCF51BEA94CA006403A0 /* RemoteAutomationTarget.cpp */, 7660 7646 992ABCF61BEA94CA006403A0 /* RemoteAutomationTarget.h */, 7661 7647 A5BA15E4182340B300A82E69 /* RemoteConnectionToTarget.h */, 7648 A5BA15E5182340B300A82E69 /* RemoteConnectionToTarget.mm */, 7662 7649 998ED6721BED659A00DD8017 /* RemoteControllableTarget.cpp */, 7663 7650 998ED6731BED659A00DD8017 /* RemoteControllableTarget.h */, 7664 7651 A594558E18245EDE00CC3843 /* RemoteInspectionTarget.cpp */, 7665 7652 A5BA15EF182345AF00A82E69 /* RemoteInspectionTarget.h */, 7666 995566851E4E8B0700AAE13C /* RemoteInspector.cpp */,7667 7653 A5BA15E1182340B300A82E69 /* RemoteInspector.h */, 7654 A5BA15E2182340B300A82E69 /* RemoteInspector.mm */, 7668 7655 A5BA15E3182340B300A82E69 /* RemoteInspectorConstants.h */, 7656 A5BA15E6182340B300A82E69 /* RemoteInspectorXPCConnection.h */, 7657 A5BA15E7182340B300A82E69 /* RemoteInspectorXPCConnection.mm */, 7669 7658 ); 7670 7659 path = remote; … … 8109 8098 0F0B83A714BCF50700885B4F /* CodeType.h in Headers */, 8110 8099 0FA762051DB9242900B7A2FD /* CollectionScope.h in Headers */, 8100 79FC8A081E32E9F000D88F0E /* DFGRegisteredStructure.h in Headers */, 8111 8101 A53243981856A489002ED692 /* CombinedDomains.json in Headers */, 8112 8102 BC18C3F30E16F5CD00B34460 /* CommonIdentifiers.h in Headers */, … … 8303 8293 0F3A1BFA1A9ECB7D000DE01A /* DFGPutStackSinkingPhase.h in Headers */, 8304 8294 86EC9DD11328DF82002B2AD7 /* DFGRegisterBank.h in Headers */, 8305 79FC8A081E32E9F000D88F0E /* DFGRegisteredStructure.h in Headers */,8306 7980C16D1E3A940E00B71615 /* DFGRegisteredStructureSet.h in Headers */,8307 8295 0F2FCCFC18A60070001A27F8 /* DFGSafepoint.h in Headers */, 8308 8296 A77A424317A0BBFD00A8DB81 /* DFGSafeToExecute.h in Headers */, … … 8467 8455 9959E9311BD18272001AA413 /* generate-combined-inspector-json.py in Headers */, 8468 8456 C4703CC0192844960013FBEA /* generate-inspector-protocol-bindings.py in Headers */, 8457 FE3022D91E43C93400BAC493 /* JSVirtualMachinePrivate.h in Headers */, 8469 8458 99DA00AF1BD5994E00F4575C /* generate-js-builtins.py in Headers */, 8470 8459 A5EA70EC19F5B3EA0098F5EC /* generate_cpp_alternate_backend_dispatcher_header.py in Headers */, … … 8703 8692 A503FA2A188F105900110F14 /* JSGlobalObjectScriptDebugServer.h in Headers */, 8704 8693 A513E5C0185BFACC007E95AD /* JSInjectedScriptHost.h in Headers */, 8694 7980C16D1E3A940E00B71615 /* DFGRegisteredStructureSet.h in Headers */, 8705 8695 A513E5C2185BFACC007E95AD /* JSInjectedScriptHostPrototype.h in Headers */, 8706 8696 C442CB251A6CDB8C005D3D7C /* JSInputs.json in Headers */, … … 8782 8772 86E3C615167BABD7006D760A /* JSVirtualMachine.h in Headers */, 8783 8773 86E3C61D167BABEE006D760A /* JSVirtualMachineInternal.h in Headers */, 8784 FE3022D91E43C93400BAC493 /* JSVirtualMachinePrivate.h in Headers */,8785 8774 A7CA3AE817DA41AE006538AF /* JSWeakMap.h in Headers */, 8786 8775 A7482E93116A7CAD003B0712 /* JSWeakObjectMapRefInternal.h in Headers */, … … 8820 8809 70DE9A091BE7D69E005D89D9 /* LLIntAssembly.h in Headers */, 8821 8810 0F0FC45A14BD15F500B81154 /* LLIntCallLinkInfo.h in Headers */, 8811 FE3022D31E3D73A500BAC493 /* SigillCrashAnalyzer.h in Headers */, 8822 8812 FE20CE9E15F04A9500DF3430 /* LLIntCLoop.h in Headers */, 8823 8813 0F4680CA14BBB16C00BFE272 /* LLIntCommon.h in Headers */, … … 8879 8869 0F1FB3991E1F65FB00A9BE50 /* MutatorScheduler.h in Headers */, 8880 8870 0FA762071DB9243300B7A2FD /* MutatorState.h in Headers */, 8871 FE3022D71E42857300BAC493 /* VMInspector.h in Headers */, 8881 8872 BC02E9110E1839DB000F9297 /* NativeErrorConstructor.h in Headers */, 8882 8873 BC02E9130E1839DB000F9297 /* NativeErrorPrototype.h in Headers */, … … 8988 8979 A5BA15E8182340B300A82E69 /* RemoteInspector.h in Headers */, 8989 8980 A5BA15EA182340B400A82E69 /* RemoteInspectorConstants.h in Headers */, 8990 992F56B71E4E84B20035953B/* RemoteInspectorXPCConnection.h in Headers */,8981 A5BA15ED182340B400A82E69 /* RemoteInspectorXPCConnection.h in Headers */, 8991 8982 0F24E55117EE274900ABB217 /* Repatch.h in Headers */, 8992 8983 869EBCB70E8C6D4A008722CC /* ResultType.h in Headers */, … … 9018 9009 DC17E8181C9C91D9008A6AB3 /* ShadowChicken.h in Headers */, 9019 9010 DC17E8191C9C91DB008A6AB3 /* ShadowChickenInlines.h in Headers */, 9020 FE3022D31E3D73A500BAC493 /* SigillCrashAnalyzer.h in Headers */,9021 9011 0F2B670517B6B5AB00A7AE3F /* SimpleTypedArrayController.h in Headers */, 9022 9012 14BA78F113AAB88F005B7C2C /* SlotVisitor.h in Headers */, … … 9137 9127 FE5932A8183C5A2600A1ECCC /* VMEntryScope.h in Headers */, 9138 9128 0F5AE2C41DF4F2800066EFE1 /* VMInlines.h in Headers */, 9139 FE3022D71E42857300BAC493 /* VMInspector.h in Headers */,9140 9129 53F40E931D5A4AB30099A1B6 /* WasmB3IRGenerator.h in Headers */, 9141 9130 AD4B1DFA1DF244E20071AE32 /* WasmBinding.h in Headers */, … … 9747 9736 147F39BD107EC37600427A48 /* ArgList.cpp in Sources */, 9748 9737 79A228351D35D71E00D8E067 /* ArithProfile.cpp in Sources */, 9738 FE3022D61E42857300BAC493 /* VMInspector.cpp in Sources */, 9749 9739 0F743BAA16B88249009F9277 /* ARM64Disassembler.cpp in Sources */, 9750 9740 86D3B2C310156BDE002865E7 /* ARMAssembler.cpp in Sources */, … … 10016 10006 0FB17662196B8F9E0091052A /* DFGPureValue.cpp in Sources */, 10017 10007 0F3A1BF91A9ECB7D000DE01A /* DFGPutStackSinkingPhase.cpp in Sources */, 10018 7980C16C1E3A940E00B71615 /* DFGRegisteredStructureSet.cpp in Sources */,10019 10008 0F2FCCFB18A60070001A27F8 /* DFGSafepoint.cpp in Sources */, 10020 10009 86EC9DD21328DF82002B2AD7 /* DFGSpeculativeJIT.cpp in Sources */, … … 10070 10059 147341E21DC2CE9600AA29BA /* EvalExecutable.cpp in Sources */, 10071 10060 A54982031891D0B00081E5B8 /* EventLoop.cpp in Sources */, 10061 7980C16C1E3A940E00B71615 /* DFGRegisteredStructureSet.cpp in Sources */, 10072 10062 FE1C0FFF1B194FD100B53FCA /* Exception.cpp in Sources */, 10073 10063 FE80C19B1D776A98008510C0 /* ExceptionEventLocation.cpp in Sources */, … … 10442 10432 79160DBD1C8E3EC8008C085A /* ProxyRevoke.cpp in Sources */, 10443 10433 0F15CD221BA5F9860031FFD3 /* PutByIdFlags.cpp in Sources */, 10434 FE3022D21E3D73A500BAC493 /* SigillCrashAnalyzer.cpp in Sources */, 10444 10435 0F9332A314CA7DD70085F3C6 /* PutByIdStatus.cpp in Sources */, 10445 10436 0F93B4A918B92C4D00178A3F /* PutByIdVariant.cpp in Sources */, … … 10459 10450 A57D23ED1891B5540031C7FA /* RegularExpression.cpp in Sources */, 10460 10451 992ABCF91BEA9BD2006403A0 /* RemoteAutomationTarget.cpp in Sources */, 10461 992F56B41E4E84A40035953B /* RemoteConnectionToTargetCocoa.mm in Sources */,10452 A5BA15EC182340B400A82E69 /* RemoteConnectionToTarget.mm in Sources */, 10462 10453 998ED6741BED70AC00DD8017 /* RemoteControllableTarget.cpp in Sources */, 10463 10454 A594558F18245EFD00CC3843 /* RemoteInspectionTarget.cpp in Sources */, 10464 995566861E4E8B0F00AAE13C /* RemoteInspector.cpp in Sources */, 10465 992F56B51E4E84A80035953B /* RemoteInspectorCocoa.mm in Sources */, 10466 992F56B61E4E84AB0035953B /* RemoteInspectorXPCConnection.mm in Sources */, 10455 A5BA15E9182340B300A82E69 /* RemoteInspector.mm in Sources */, 10456 A5BA15EE182340B400A82E69 /* RemoteInspectorXPCConnection.mm in Sources */, 10467 10457 0F24E55017EE274900ABB217 /* Repatch.cpp in Sources */, 10468 10458 527773DE1AAF83AC00BDE7E8 /* RuntimeType.cpp in Sources */, … … 10487 10477 0FEE98431A89227500754E93 /* SetupVarargsFrame.cpp in Sources */, 10488 10478 DC17E8171C9C91D6008A6AB3 /* ShadowChicken.cpp in Sources */, 10489 FE3022D21E3D73A500BAC493 /* SigillCrashAnalyzer.cpp in Sources */,10490 10479 0F2B670417B6B5AB00A7AE3F /* SimpleTypedArrayController.cpp in Sources */, 10491 10480 C225494315F7DBAA0065E898 /* SlotVisitor.cpp in Sources */, … … 10562 10551 E18E3A590DF9278C00D90B34 /* VM.cpp in Sources */, 10563 10552 FE5932A7183C5A2600A1ECCC /* VMEntryScope.cpp in Sources */, 10564 FE3022D61E42857300BAC493 /* VMInspector.cpp in Sources */,10565 10553 53F40E8F1D5902820099A1B6 /* WasmB3IRGenerator.cpp in Sources */, 10566 10554 AD4B1DF91DF244E20071AE32 /* WasmBinding.cpp in Sources */, -
trunk/Source/JavaScriptCore/PlatformMac.cmake
r212363 r212394 11 11 12 12 inspector/remote/RemoteAutomationTarget.cpp 13 inspector/remote/RemoteConnectionToTarget.mm 13 14 inspector/remote/RemoteControllableTarget.cpp 14 15 inspector/remote/RemoteInspectionTarget.cpp 15 inspector/remote/RemoteInspector.cpp 16 17 inspector/remote/cocoa/RemoteConnectionToTargetCocoa.mm 18 inspector/remote/cocoa/RemoteInspectorCocoa.mm 19 inspector/remote/cocoa/RemoteInspectorXPCConnection.mm 16 inspector/remote/RemoteInspector.mm 20 17 ) 21 18 add_definitions(-DSTATICALLY_LINKED_WITH_WTF -D__STDC_WANT_LIB_EXT1__) … … 29 26 ${JAVASCRIPTCORE_DIR}/disassembler/udis86 30 27 ${JAVASCRIPTCORE_DIR}/icu 31 ${JAVASCRIPTCORE_DIR}/inspector/remote/cocoa32 28 ) 33 29 -
trunk/Source/JavaScriptCore/inspector/remote/RemoteConnectionToTarget.h
r212169 r212394 28 28 #if ENABLE(REMOTE_INSPECTOR) 29 29 30 #include "InspectorFrontendChannel.h" 31 #include <wtf/Lock.h> 32 #include <wtf/ThreadSafeRefCounted.h> 33 34 #if PLATFORM(COCOA) 35 #include <wtf/BlockPtr.h> 36 #include <wtf/RetainPtr.h> 30 #import "InspectorFrontendChannel.h" 31 #import "RemoteConnectionToTarget.h" 32 #import "RemoteInspector.h" 33 #import <mutex> 34 #import <wtf/BlockPtr.h> 35 #import <wtf/Lock.h> 36 #import <wtf/RetainPtr.h> 37 #import <wtf/ThreadSafeRefCounted.h> 37 38 38 39 OBJC_CLASS NSString; 39 #endif40 40 41 41 namespace Inspector { 42 42 43 class RemoteControllableTarget;44 45 #if PLATFORM(COCOA)46 43 typedef Vector<BlockPtr<void ()>> RemoteTargetQueue; 47 #endif48 44 49 45 class RemoteConnectionToTarget final : public ThreadSafeRefCounted<RemoteConnectionToTarget>, public FrontendChannel { 50 46 public: 51 #if PLATFORM(COCOA) 52 RemoteConnectionToTarget(RemoteControllableTarget*, NSString* connectionIdentifier, NSString* destination); 53 #endif 47 RemoteConnectionToTarget(RemoteControllableTarget*, NSString *connectionIdentifier, NSString *destination); 54 48 virtual ~RemoteConnectionToTarget(); 55 49 56 50 // Main API. 57 51 bool setup(bool isAutomaticInspection = false, bool automaticallyPause = false); 58 void sendMessageToTarget( const String&);52 void sendMessageToTarget(NSString *); 59 53 void close(); 60 54 void targetClosed(); 61 55 62 56 std::optional<unsigned> targetIdentifier() const; 63 #if PLATFORM(COCOA)64 57 NSString *connectionIdentifier() const; 65 58 NSString *destination() const; … … 68 61 const RemoteTargetQueue& queue() const { return m_queue; } 69 62 void clearQueue() { m_queue.clear(); } 70 #endif71 63 72 64 // FrontendChannel overrides. … … 75 67 76 68 private: 77 #if PLATFORM(COCOA)78 69 void dispatchAsyncOnTarget(void (^block)()); 79 70 … … 81 72 void teardownRunLoop(); 82 73 void queueTaskOnPrivateRunLoop(void (^block)()); 83 #endif84 74 85 75 // This connection from the RemoteInspector singleton to the InspectionTarget … … 88 78 Lock m_targetMutex; 89 79 90 #if PLATFORM(COCOA)91 80 // If a target has a specific run loop it wants to evaluate on 92 81 // we setup our run loop sources on that specific run loop. … … 95 84 RemoteTargetQueue m_queue; 96 85 Lock m_queueMutex; 97 #endif98 86 99 87 RemoteControllableTarget* m_target { nullptr }; 100 bool m_connected { false };101 102 #if PLATFORM(COCOA)103 88 RetainPtr<NSString> m_connectionIdentifier; 104 89 RetainPtr<NSString> m_destination; 105 #endif 90 bool m_connected { false }; 106 91 }; 107 92 -
trunk/Source/JavaScriptCore/inspector/remote/RemoteControllableTarget.h
r212169 r212394 28 28 #if ENABLE(REMOTE_INSPECTOR) 29 29 30 #include <CoreFoundation/CFRunLoop.h> 30 31 #include <wtf/TypeCasts.h> 31 32 #include <wtf/text/WTFString.h> 32 33 #if USE(CF)34 #include <CoreFoundation/CFRunLoop.h>35 #endif36 33 37 34 namespace Inspector { … … 57 54 virtual void dispatchMessageFromRemote(const String& message) = 0; 58 55 59 #if USE(CF)60 56 // The dispatch block will be scheduled on a global run loop if null is returned. 61 57 virtual CFRunLoopRef targetRunLoop() { return nullptr; } 62 #endif63 58 private: 64 59 unsigned m_identifier {0}; -
trunk/Source/JavaScriptCore/inspector/remote/RemoteInspectionTarget.h
r212169 r212394 42 42 void setRemoteDebuggingAllowed(bool); 43 43 44 #if USE(CF)45 44 CFRunLoopRef targetRunLoop() override { return m_runLoop.get(); } 46 45 void setTargetRunLoop(CFRunLoopRef runLoop) { m_runLoop = runLoop; } 47 #endif48 46 49 47 virtual String name() const { return String(); } // JavaScript and Web … … 62 60 private: 63 61 bool m_allowed {false}; 64 #if USE(CF)65 62 RetainPtr<CFRunLoopRef> m_runLoop; 66 #endif67 63 }; 68 64 -
trunk/Source/JavaScriptCore/inspector/remote/RemoteInspector.h
r212169 r212394 28 28 #if ENABLE(REMOTE_INSPECTOR) 29 29 30 #include <wtf/Forward.h> 31 #include <wtf/HashMap.h> 32 #include <wtf/Lock.h> 33 34 #if PLATFORM(COCOA) 35 #include "RemoteInspectorXPCConnection.h" 36 #include <wtf/RetainPtr.h> 30 #import "RemoteInspectorXPCConnection.h" 31 #import <wtf/Forward.h> 32 #import <wtf/HashMap.h> 33 #import <wtf/Lock.h> 34 #import <wtf/RetainPtr.h> 37 35 38 36 OBJC_CLASS NSDictionary; 39 37 OBJC_CLASS NSString; 40 typedef RetainPtr<NSDictionary> TargetListing;41 #endif42 38 43 39 namespace Inspector { … … 49 45 class RemoteInspectorClient; 50 46 51 class JS_EXPORT_PRIVATE RemoteInspector final 52 #if PLATFORM(COCOA) 53 : public RemoteInspectorXPCConnection::Client 54 #endif 55 { 47 class JS_EXPORT_PRIVATE RemoteInspector final : public RemoteInspectorXPCConnection::Client { 56 48 public: 57 49 class Client { … … 89 81 void stop(); 90 82 91 #if PLATFORM(COCOA)92 83 bool hasParentProcessInformation() const { return m_parentProcessIdentifier != 0; } 93 84 pid_t parentProcessIdentifier() const { return m_parentProcessIdentifier; } … … 95 86 void setParentProcessInformation(pid_t, RetainPtr<CFDataRef> auditData); 96 87 void setParentProcessInfomationIsDelayed(); 97 #endif98 88 99 89 private: … … 105 95 void stopInternal(StopSource); 106 96 107 #if PLATFORM(COCOA)108 97 void setupXPCConnectionIfNeeded(); 109 #endif110 98 111 TargetListing listingForTarget(const RemoteControllableTarget&) const; 112 TargetListing listingForInspectionTarget(const RemoteInspectionTarget&) const; 113 TargetListing listingForAutomationTarget(const RemoteAutomationTarget&) const; 114 99 RetainPtr<NSDictionary> listingForTarget(const RemoteControllableTarget&) const; 100 RetainPtr<NSDictionary> listingForInspectionTarget(const RemoteInspectionTarget&) const; 101 RetainPtr<NSDictionary> listingForAutomationTarget(const RemoteAutomationTarget&) const; 115 102 void pushListingsNow(); 116 103 void pushListingsSoon(); … … 124 111 void sendAutomaticInspectionCandidateMessage(); 125 112 126 #if PLATFORM(COCOA)127 113 void xpcConnectionReceivedMessage(RemoteInspectorXPCConnection*, NSString *messageName, NSDictionary *userInfo) override; 128 114 void xpcConnectionFailed(RemoteInspectorXPCConnection*) override; … … 139 125 void receivedAutomaticInspectionRejectMessage(NSDictionary *userInfo); 140 126 void receivedAutomationSessionRequestMessage(NSDictionary *userInfo); 141 #endif142 127 143 128 static bool startEnabled; … … 150 135 151 136 HashMap<unsigned, RemoteControllableTarget*> m_targetMap; 137 HashMap<unsigned, RetainPtr<NSDictionary>> m_targetListingMap; 152 138 HashMap<unsigned, RefPtr<RemoteConnectionToTarget>> m_targetConnectionMap; 153 HashMap<unsigned, TargetListing> m_targetListingMap;154 139 155 #if PLATFORM(COCOA)156 140 RefPtr<RemoteInspectorXPCConnection> m_relayConnection; 157 #endif158 141 159 142 RemoteInspector::Client* m_client { nullptr }; 160 143 std::optional<RemoteInspector::Client::Capabilities> m_clientCapabilities; 161 144 162 #if PLATFORM(COCOA)163 145 dispatch_queue_t m_xpcQueue; 164 #endif165 146 unsigned m_nextAvailableTargetIdentifier { 1 }; 166 147 int m_notifyToken { 0 }; … … 170 151 171 152 pid_t m_parentProcessIdentifier { 0 }; 172 #if PLATFORM(COCOA)173 153 RetainPtr<CFDataRef> m_parentProcessAuditData; 174 #endif175 154 bool m_shouldSendParentProcessInformation { false }; 176 155 bool m_automaticInspectionEnabled { false }; -
trunk/Source/WebKit2/ChangeLog
r212379 r212394 1 2017-02-15 Alex Christensen <achristensen@webkit.org> 2 3 Unreviewed, rolling out r212169. 4 5 Broke iOS WebInspector 6 7 Reverted changeset: 8 9 "WebInspector: refactor RemoteInspector to move cocoa specific 10 code to their own files" 11 https://bugs.webkit.org/show_bug.cgi?id=166681 12 http://trac.webkit.org/changeset/212169 13 1 14 2017-02-15 Anders Carlsson <andersca@apple.com> 2 15 -
trunk/Source/WebKit2/WebProcess/WebProcess.cpp
r212260 r212394 371 371 #endif 372 372 373 #if ENABLE(REMOTE_INSPECTOR) && PLATFORM(COCOA)373 #if ENABLE(REMOTE_INSPECTOR) 374 374 audit_token_t auditToken; 375 375 if (parentProcessConnection()->getAuditToken(auditToken)) { -
trunk/Tools/ChangeLog
r212387 r212394 1 2017-02-15 Alex Christensen <achristensen@webkit.org> 2 3 Unreviewed, rolling out r212169. 4 5 Broke iOS WebInspector 6 7 Reverted changeset: 8 9 "WebInspector: refactor RemoteInspector to move cocoa specific 10 code to their own files" 11 https://bugs.webkit.org/show_bug.cgi?id=166681 12 http://trac.webkit.org/changeset/212169 13 1 14 2017-02-15 Jonathan Bedard <jbedard@apple.com> 2 15 -
trunk/Tools/Scripts/webkitpy/benchmark_runner/data/patches/Animometer.patch
- Property svn:mergeinfo deleted
Note: See TracChangeset
for help on using the changeset viewer.