Changeset 172930 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Aug 25, 2014, 11:39:25 AM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 49 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/CMakeLists.txt
r172820 r172930 936 936 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_frontend_dispatcher_header.py 937 937 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_frontend_dispatcher_implementation.py 938 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_ type_builder_header.py939 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_ type_builder_implementation.py938 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_protocol_types_header.py 939 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_protocol_types_implementation.py 940 940 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generator.py 941 941 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generator_templates.py … … 966 966 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJSFrontendDispatchers.cpp 967 967 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJSFrontendDispatchers.h 968 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJS TypeBuilders.cpp969 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJS TypeBuilders.h968 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJSProtocolTypes.cpp 969 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJSProtocolTypes.h 970 970 ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorJSBackendCommands.js 971 971 MAIN_DEPENDENCY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJS.json 972 972 DEPENDS ${JavaScriptCore_INSPECTOR_PROTOCOL_SCRIPTS} 973 COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/generate-inspector-protocol-bindings.py --outputDir "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}" --framework JavaScriptCore ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJS.json && mkdir -p ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector && cp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSBackendDispatchers.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSBackendDispatchers.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSFrontendDispatchers.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSFrontendDispatchers.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJS TypeBuilders.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSTypeBuilders.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector && mkdir -p ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol && cp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSBackendCommands.js ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol973 COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/generate-inspector-protocol-bindings.py --outputDir "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}" --framework JavaScriptCore ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJS.json && mkdir -p ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector && cp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSBackendDispatchers.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSBackendDispatchers.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSFrontendDispatchers.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSFrontendDispatchers.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSProtocolTypes.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSProtocolTypes.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector && mkdir -p ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol && cp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorJSBackendCommands.js ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol 974 974 VERBATIM) 975 975 file(MAKE_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector) … … 987 987 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJSBackendDispatchers.cpp 988 988 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJSFrontendDispatchers.cpp 989 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJS TypeBuilders.cpp989 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJSProtocolTypes.cpp 990 990 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/JSCBuiltins.cpp 991 991 ) … … 994 994 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJSBackendDispatchers.h 995 995 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJSFrontendDispatchers.h 996 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJS TypeBuilders.h996 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorJSProtocolTypes.h 997 997 ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/JSCBuiltins.h 998 998 ) -
trunk/Source/JavaScriptCore/ChangeLog
r172897 r172930 1 2014-08-24 Brian J. Burg <[email protected]> 2 3 Web Inspector: rename Inspector::TypeBuilder to Inspector::Protocol 4 https://bugs.webkit.org/show_bug.cgi?id=136031 5 6 Reviewed by Timothy Hatcher. 7 8 Rename TypeBuilder namespace to Protocol. Disambiguate where 9 necessary. Also rename InspectorTypeBuilder to ProtocolTypes. 10 11 * CMakeLists.txt: 12 * DerivedSources.make: 13 * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj: 14 * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters: 15 * JavaScriptCore.vcxproj/copy-files.cmd: 16 * JavaScriptCore.xcodeproj/project.pbxproj: 17 * inspector/ConsoleMessage.cpp: 18 (Inspector::messageSourceValue): 19 (Inspector::messageTypeValue): 20 (Inspector::messageLevelValue): 21 (Inspector::ConsoleMessage::addToFrontend): 22 * inspector/ContentSearchUtilities.cpp: 23 (Inspector::ContentSearchUtilities::buildObjectForSearchMatch): 24 (Inspector::ContentSearchUtilities::searchInTextByLines): 25 * inspector/ContentSearchUtilities.h: 26 * inspector/InjectedScript.cpp: 27 (Inspector::InjectedScript::evaluate): 28 (Inspector::InjectedScript::callFunctionOn): 29 (Inspector::InjectedScript::evaluateOnCallFrame): 30 (Inspector::InjectedScript::getFunctionDetails): 31 (Inspector::InjectedScript::getProperties): 32 (Inspector::InjectedScript::getInternalProperties): 33 (Inspector::InjectedScript::wrapCallFrames): 34 (Inspector::InjectedScript::wrapObject): 35 (Inspector::InjectedScript::wrapTable): 36 * inspector/InjectedScript.h: 37 * inspector/InjectedScriptBase.cpp: 38 (Inspector::InjectedScriptBase::makeEvalCall): 39 * inspector/InjectedScriptBase.h: 40 * inspector/InspectorTypeBuilder.h: Removed. 41 * inspector/ScriptCallFrame.cpp: 42 (Inspector::ScriptCallFrame::buildInspectorObject): 43 * inspector/ScriptCallFrame.h: 44 * inspector/ScriptCallStack.cpp: 45 (Inspector::ScriptCallStack::buildInspectorArray): 46 * inspector/ScriptCallStack.h: 47 * inspector/agents/InspectorAgent.cpp: 48 (Inspector::InspectorAgent::inspect): 49 * inspector/agents/InspectorAgent.h: 50 * inspector/agents/InspectorDebuggerAgent.cpp: 51 (Inspector::breakpointActionTypeForString): 52 (Inspector::InspectorDebuggerAgent::setBreakpointByUrl): 53 (Inspector::InspectorDebuggerAgent::setBreakpoint): 54 (Inspector::InspectorDebuggerAgent::resolveBreakpoint): 55 (Inspector::InspectorDebuggerAgent::searchInContent): 56 (Inspector::InspectorDebuggerAgent::getFunctionDetails): 57 (Inspector::InspectorDebuggerAgent::evaluateOnCallFrame): 58 (Inspector::InspectorDebuggerAgent::currentCallFrames): 59 (Inspector::InspectorDebuggerAgent::didParseSource): 60 (Inspector::InspectorDebuggerAgent::breakpointActionProbe): 61 * inspector/agents/InspectorDebuggerAgent.h: 62 * inspector/agents/InspectorProfilerAgent.cpp: 63 (Inspector::InspectorProfilerAgent::createProfileHeader): 64 (Inspector::InspectorProfilerAgent::getProfileHeaders): 65 (Inspector::buildInspectorObject): 66 (Inspector::InspectorProfilerAgent::buildProfileInspectorObject): 67 (Inspector::InspectorProfilerAgent::getCPUProfile): 68 * inspector/agents/InspectorProfilerAgent.h: 69 * inspector/agents/InspectorRuntimeAgent.cpp: 70 (Inspector::buildErrorRangeObject): 71 (Inspector::InspectorRuntimeAgent::parse): 72 (Inspector::InspectorRuntimeAgent::evaluate): 73 (Inspector::InspectorRuntimeAgent::callFunctionOn): 74 (Inspector::InspectorRuntimeAgent::getProperties): 75 (Inspector::InspectorRuntimeAgent::getRuntimeTypesForVariablesAtOffsets): 76 * inspector/agents/InspectorRuntimeAgent.h: 77 * inspector/scripts/codegen/__init__.py: 78 * inspector/scripts/codegen/generate_backend_dispatcher_header.py: 79 (BackendDispatcherHeaderGenerator.generate_output): 80 * inspector/scripts/codegen/generate_backend_dispatcher_implementation.py: 81 (BackendDispatcherImplementationGenerator._generate_async_dispatcher_class_for_domain): 82 (BackendDispatcherImplementationGenerator._generate_dispatcher_implementation_for_command): 83 * inspector/scripts/codegen/generate_frontend_dispatcher_header.py: 84 (FrontendDispatcherHeaderGenerator.generate_output): 85 * inspector/scripts/codegen/generate_frontend_dispatcher_implementation.py: 86 (FrontendDispatcherImplementationGenerator._generate_dispatcher_implementation_for_event): 87 * inspector/scripts/codegen/generate_type_builder_header.py: Removed. 88 * inspector/scripts/codegen/generate_type_builder_implementation.py: Removed. 89 * inspector/scripts/codegen/generator.py: 90 (Generator.protocol_type_string_for_type): 91 (Generator.protocol_type_string_for_type_member): 92 (Generator.type_string_for_type_with_name): 93 (Generator.type_string_for_formal_out_parameter): 94 (Generator.type_string_for_formal_async_parameter): 95 (Generator.type_string_for_stack_in_parameter): 96 (Generator.type_string_for_stack_out_parameter): 97 (Generator.assertion_method_for_type_member.assertion_method_for_type): 98 (Generator.assertion_method_for_type_member): 99 (Generator.type_builder_string_for_type): Deleted. 100 (Generator.type_builder_string_for_type_member): Deleted. 101 * inspector/scripts/codegen/generator_templates.py: 102 (Inspector): 103 * inspector/scripts/generate-inspector-protocol-bindings.py: 104 (generate_from_specification): 105 * inspector/scripts/tests/expected/commands-with-async-attribute.json-result: 106 * inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result: 107 * inspector/scripts/tests/expected/domains-with-varying-command-sizes.json-result: 108 * inspector/scripts/tests/expected/events-with-optional-parameters.json-result: 109 * inspector/scripts/tests/expected/same-type-id-different-domain.json-result: 110 * inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result: 111 * inspector/scripts/tests/expected/type-declaration-aliased-primitive-type.json-result: 112 * inspector/scripts/tests/expected/type-declaration-array-type.json-result: 113 * inspector/scripts/tests/expected/type-declaration-enum-type.json-result: 114 * inspector/scripts/tests/expected/type-declaration-object-type.json-result: 115 * inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result: 116 * runtime/HighFidelityTypeProfiler.cpp: 117 (JSC::HighFidelityTypeProfiler::getTypesForVariableAtOffsetForInspector): 118 * runtime/HighFidelityTypeProfiler.h: 119 * runtime/TypeSet.cpp: 120 (JSC::TypeSet::allPrimitiveTypeNames): 121 (JSC::TypeSet::allStructureRepresentations): 122 (JSC::StructureShape::inspectorRepresentation): 123 * runtime/TypeSet.h: 124 1 125 2014-08-24 Brian J. Burg <[email protected]> 2 126 -
trunk/Source/JavaScriptCore/DerivedSources.make
r172655 r172930 129 129 $(JavaScriptCore)/inspector/scripts/codegen/generate_frontend_dispatcher_header.py \ 130 130 $(JavaScriptCore)/inspector/scripts/codegen/generate_frontend_dispatcher_implementation.py \ 131 $(JavaScriptCore)/inspector/scripts/codegen/generate_ type_builder_header.py \132 $(JavaScriptCore)/inspector/scripts/codegen/generate_ type_builder_implementation.py \131 $(JavaScriptCore)/inspector/scripts/codegen/generate_protocol_types_header.py \ 132 $(JavaScriptCore)/inspector/scripts/codegen/generate_protocol_types_implementation.py \ 133 133 $(JavaScriptCore)/inspector/scripts/codegen/generator_templates.py \ 134 134 $(JavaScriptCore)/inspector/scripts/codegen/generator.py \ -
trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj
r172820 r172930 818 818 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJSBackendDispatchers.cpp" /> 819 819 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJSFrontendDispatchers.cpp" /> 820 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJS TypeBuilders.cpp" />820 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJSProtocolTypes.cpp" /> 821 821 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSCBuiltins.cpp" /> 822 822 </ItemGroup> … … 832 832 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJSBackendDispatchers.h" /> 833 833 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJSFrontendDispatchers.h" /> 834 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJS TypeBuilders.h" />834 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJSProtocolTypes.h" /> 835 835 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDataViewPrototype.lut.h" /> 836 836 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSGlobalObject.lut.h" /> … … 1248 1248 <ClInclude Include="..\inspector\InspectorEnvironment.h" /> 1249 1249 <ClInclude Include="..\inspector\InspectorFrontendChannel.h" /> 1250 <ClInclude Include="..\inspector\Inspector TypeBuilder.h" />1250 <ClInclude Include="..\inspector\InspectorProtocolTypes.h" /> 1251 1251 <ClInclude Include="..\inspector\InspectorValues.h" /> 1252 1252 <ClInclude Include="..\inspector\JSInjectedScriptHost.h" /> … … 1621 1621 <None Include="..\inspector\scripts\codegen\generate_frontend_dispatcher_header.py" /> 1622 1622 <None Include="..\inspector\scripts\codegen\generate_frontend_dispatcher_implementation.py" /> 1623 <None Include="..\inspector\scripts\codegen\generate_ type_builder_header.py" />1624 <None Include="..\inspector\scripts\codegen\generate_ type_builder_implementation.py" />1623 <None Include="..\inspector\scripts\codegen\generate_protocol_types_header.py" /> 1624 <None Include="..\inspector\scripts\codegen\generate_protocol_types_implementation.py" /> 1625 1625 <None Include="..\inspector\scripts\codegen\generator.py" /> 1626 1626 <None Include="..\inspector\scripts\codegen\generator_templates.py" /> -
trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters
r172820 r172930 1390 1390 <Filter>Derived Sources</Filter> 1391 1391 </ClCompile> 1392 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJS TypeBuilders.cpp">1392 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJSProtocolTypes.cpp"> 1393 1393 <Filter>Derived Sources</Filter> 1394 1394 </ClCompile> … … 2181 2181 <Filter>inspector</Filter> 2182 2182 </ClInclude> 2183 <ClInclude Include="..\inspector\Inspector TypeBuilder.h">2183 <ClInclude Include="..\inspector\InspectorProtocolTypes.h"> 2184 2184 <Filter>inspector</Filter> 2185 2185 </ClInclude> … … 2935 2935 <Filter>Derived Sources</Filter> 2936 2936 </ClInclude> 2937 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJS TypeBuilders.h">2937 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\InspectorJSProtocolTypes.h"> 2938 2938 <Filter>Derived Sources</Filter> 2939 2939 </ClInclude> … … 4093 4093 <Filter>inspector\scripts\codegen</Filter> 4094 4094 </None> 4095 <None Include="..\inspector\scripts\codegen\generate_ type_builder_header.py">4095 <None Include="..\inspector\scripts\codegen\generate_protocol_types_header.py"> 4096 4096 <Filter>inspector\scripts\codegen</Filter> 4097 4097 </None> 4098 <None Include="..\inspector\scripts\codegen\generate_ type_builder_implementation.py">4098 <None Include="..\inspector\scripts\codegen\generate_protocol_types_implementation.py"> 4099 4099 <Filter>inspector\scripts\codegen</Filter> 4100 4100 </None> -
trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/copy-files.cmd
r172655 r172930 72 72 echo Copying Inspector generated files as if they were private headers... 73 73 xcopy /y "%DerivedSourcesDirectory%\InspectorJS.json" "%PrivateHeadersDirectory%" >NUL 74 xcopy /y "%DerivedSourcesDirectory%\InspectorJS TypeBuilders.h" "%PrivateHeadersDirectory%" >NUL74 xcopy /y "%DerivedSourcesDirectory%\InspectorJSProtocolTypes.h" "%PrivateHeadersDirectory%" >NUL 75 75 xcopy /y "%DerivedSourcesDirectory%\InspectorJSBackendDispatchers.h" "%PrivateHeadersDirectory%" >NUL 76 76 xcopy /y "%DerivedSourcesDirectory%\InspectorJSFrontendDispatchers.h" "%PrivateHeadersDirectory%" >NUL -
trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r172820 r172930 1360 1360 A532438918568335002ED692 /* InspectorJSFrontendDispatchers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A532438318568317002ED692 /* InspectorJSFrontendDispatchers.cpp */; }; 1361 1361 A532438A18568335002ED692 /* InspectorJSFrontendDispatchers.h in Headers */ = {isa = PBXBuildFile; fileRef = A532438418568317002ED692 /* InspectorJSFrontendDispatchers.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1362 A532438B18568335002ED692 /* InspectorJS TypeBuilders.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A532438518568317002ED692 /* InspectorJSTypeBuilders.cpp */; };1363 A532438C18568335002ED692 /* InspectorJS TypeBuilders.h in Headers */ = {isa = PBXBuildFile; fileRef = A532438618568317002ED692 /* InspectorJSTypeBuilders.h */; settings = {ATTRIBUTES = (Private, ); }; };1362 A532438B18568335002ED692 /* InspectorJSProtocolTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A532438518568317002ED692 /* InspectorJSProtocolTypes.cpp */; }; 1363 A532438C18568335002ED692 /* InspectorJSProtocolTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = A532438618568317002ED692 /* InspectorJSProtocolTypes.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1364 1364 A532439418569709002ED692 /* generate-combined-inspector-json.py in Headers */ = {isa = PBXBuildFile; fileRef = A5324391185696E6002ED692 /* generate-combined-inspector-json.py */; settings = {ATTRIBUTES = (Private, ); }; }; 1365 1365 A53243981856A489002ED692 /* InspectorJS.json in Headers */ = {isa = PBXBuildFile; fileRef = A53243951856A475002ED692 /* InspectorJS.json */; settings = {ATTRIBUTES = (Private, ); }; }; … … 1380 1380 A55D93A5185012A800400DED /* ScriptFunctionCall.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A55D93A3185012A800400DED /* ScriptFunctionCall.cpp */; }; 1381 1381 A55D93A6185012A800400DED /* ScriptFunctionCall.h in Headers */ = {isa = PBXBuildFile; fileRef = A55D93A4185012A800400DED /* ScriptFunctionCall.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1382 A55D93AC18514F7900400DED /* Inspector TypeBuilder.h in Headers */ = {isa = PBXBuildFile; fileRef = A55D93AB18514F7900400DED /* InspectorTypeBuilder.h */; settings = {ATTRIBUTES = (Private, ); }; };1382 A55D93AC18514F7900400DED /* InspectorProtocolTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = A55D93AB18514F7900400DED /* InspectorProtocolTypes.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1383 1383 A57D23E51890CEBF0031C7FA /* InspectorDebuggerAgent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A57D23E31890CEBF0031C7FA /* InspectorDebuggerAgent.cpp */; }; 1384 1384 A57D23E61890CEBF0031C7FA /* InspectorDebuggerAgent.h in Headers */ = {isa = PBXBuildFile; fileRef = A57D23E41890CEBF0031C7FA /* InspectorDebuggerAgent.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 1793 1793 C4703CD1192844CC0013FBEA /* generate_frontend_dispatcher_header.py in Headers */ = {isa = PBXBuildFile; fileRef = C4703CC6192844CC0013FBEA /* generate_frontend_dispatcher_header.py */; settings = {ATTRIBUTES = (Private, ); }; }; 1794 1794 C4703CD2192844CC0013FBEA /* generate_frontend_dispatcher_implementation.py in Headers */ = {isa = PBXBuildFile; fileRef = C4703CC7192844CC0013FBEA /* generate_frontend_dispatcher_implementation.py */; settings = {ATTRIBUTES = (Private, ); }; }; 1795 C4703CD3192844CC0013FBEA /* generate_type_builder_header.py in Headers */ = {isa = PBXBuildFile; fileRef = C4703CC8192844CC0013FBEA /* generate_type_builder_header.py */; settings = {ATTRIBUTES = (Private, ); }; };1796 C4703CD4192844CC0013FBEA /* generate_type_builder_implementation.py in Headers */ = {isa = PBXBuildFile; fileRef = C4703CC9192844CC0013FBEA /* generate_type_builder_implementation.py */; settings = {ATTRIBUTES = (Private, ); }; };1797 1795 C4703CD5192844CC0013FBEA /* generator_templates.py in Headers */ = {isa = PBXBuildFile; fileRef = C4703CCA192844CC0013FBEA /* generator_templates.py */; settings = {ATTRIBUTES = (Private, ); }; }; 1798 1796 C4703CD6192844CC0013FBEA /* generator.py in Headers */ = {isa = PBXBuildFile; fileRef = C4703CCB192844CC0013FBEA /* generator.py */; settings = {ATTRIBUTES = (Private, ); }; }; 1799 1797 C4703CD7192844CC0013FBEA /* models.py in Headers */ = {isa = PBXBuildFile; fileRef = C4703CCC192844CC0013FBEA /* models.py */; settings = {ATTRIBUTES = (Private, ); }; }; 1798 C49FE4A919AAC83E00F40CE9 /* generate_protocol_types_header.py in Resources */ = {isa = PBXBuildFile; fileRef = C49FE4A719AAC83E00F40CE9 /* generate_protocol_types_header.py */; }; 1799 C49FE4AA19AAC83E00F40CE9 /* generate_protocol_types_implementation.py in Resources */ = {isa = PBXBuildFile; fileRef = C49FE4A819AAC83E00F40CE9 /* generate_protocol_types_implementation.py */; }; 1800 C49FE4AB19AAC86100F40CE9 /* generate_protocol_types_header.py in Headers */ = {isa = PBXBuildFile; fileRef = C49FE4A719AAC83E00F40CE9 /* generate_protocol_types_header.py */; settings = {ATTRIBUTES = (Private, ); }; }; 1801 C49FE4AC19AAC86100F40CE9 /* generate_protocol_types_implementation.py in Headers */ = {isa = PBXBuildFile; fileRef = C49FE4A819AAC83E00F40CE9 /* generate_protocol_types_implementation.py */; settings = {ATTRIBUTES = (Private, ); }; }; 1800 1802 E124A8F70E555775003091F1 /* OpaqueJSString.h in Headers */ = {isa = PBXBuildFile; fileRef = E124A8F50E555775003091F1 /* OpaqueJSString.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1801 1803 E124A8F80E555775003091F1 /* OpaqueJSString.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E124A8F60E555775003091F1 /* OpaqueJSString.cpp */; }; … … 3017 3019 A532438318568317002ED692 /* InspectorJSFrontendDispatchers.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorJSFrontendDispatchers.cpp; sourceTree = "<group>"; }; 3018 3020 A532438418568317002ED692 /* InspectorJSFrontendDispatchers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InspectorJSFrontendDispatchers.h; sourceTree = "<group>"; }; 3019 A532438518568317002ED692 /* InspectorJS TypeBuilders.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorJSTypeBuilders.cpp; sourceTree = "<group>"; };3020 A532438618568317002ED692 /* InspectorJS TypeBuilders.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InspectorJSTypeBuilders.h; sourceTree = "<group>"; };3021 A532438518568317002ED692 /* InspectorJSProtocolTypes.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorJSProtocolTypes.cpp; sourceTree = "<group>"; }; 3022 A532438618568317002ED692 /* InspectorJSProtocolTypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InspectorJSProtocolTypes.h; sourceTree = "<group>"; }; 3021 3023 A532438D185696CA002ED692 /* protocol */ = {isa = PBXFileReference; lastKnownFileType = folder; path = protocol; sourceTree = "<group>"; }; 3022 3024 A5324391185696E6002ED692 /* generate-combined-inspector-json.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = "generate-combined-inspector-json.py"; sourceTree = "<group>"; }; … … 3037 3039 A55D93A3185012A800400DED /* ScriptFunctionCall.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScriptFunctionCall.cpp; sourceTree = "<group>"; }; 3038 3040 A55D93A4185012A800400DED /* ScriptFunctionCall.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptFunctionCall.h; sourceTree = "<group>"; }; 3039 A55D93AB18514F7900400DED /* Inspector TypeBuilder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorTypeBuilder.h; sourceTree = "<group>"; };3041 A55D93AB18514F7900400DED /* InspectorProtocolTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorProtocolTypes.h; sourceTree = "<group>"; }; 3040 3042 A57D23E31890CEBF0031C7FA /* InspectorDebuggerAgent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorDebuggerAgent.cpp; sourceTree = "<group>"; }; 3041 3043 A57D23E41890CEBF0031C7FA /* InspectorDebuggerAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorDebuggerAgent.h; sourceTree = "<group>"; }; … … 3442 3444 C4703CC6192844CC0013FBEA /* generate_frontend_dispatcher_header.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = generate_frontend_dispatcher_header.py; sourceTree = "<group>"; }; 3443 3445 C4703CC7192844CC0013FBEA /* generate_frontend_dispatcher_implementation.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = generate_frontend_dispatcher_implementation.py; sourceTree = "<group>"; }; 3444 C4703CC8192844CC0013FBEA /* generate_type_builder_header.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = generate_type_builder_header.py; sourceTree = "<group>"; };3445 C4703CC9192844CC0013FBEA /* generate_type_builder_implementation.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = generate_type_builder_implementation.py; sourceTree = "<group>"; };3446 3446 C4703CCA192844CC0013FBEA /* generator_templates.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = generator_templates.py; sourceTree = "<group>"; }; 3447 3447 C4703CCB192844CC0013FBEA /* generator.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = generator.py; sourceTree = "<group>"; }; 3448 3448 C4703CCC192844CC0013FBEA /* models.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = models.py; sourceTree = "<group>"; }; 3449 C49FE4A719AAC83E00F40CE9 /* generate_protocol_types_header.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = generate_protocol_types_header.py; sourceTree = "<group>"; }; 3450 C49FE4A819AAC83E00F40CE9 /* generate_protocol_types_implementation.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = generate_protocol_types_implementation.py; sourceTree = "<group>"; }; 3449 3451 D21202280AD4310C00ED79B6 /* DateConversion.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = DateConversion.cpp; sourceTree = "<group>"; }; 3450 3452 D21202290AD4310C00ED79B6 /* DateConversion.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DateConversion.h; sourceTree = "<group>"; }; … … 4231 4233 A532438318568317002ED692 /* InspectorJSFrontendDispatchers.cpp */, 4232 4234 A532438418568317002ED692 /* InspectorJSFrontendDispatchers.h */, 4233 A532438518568317002ED692 /* InspectorJS TypeBuilders.cpp */,4234 A532438618568317002ED692 /* InspectorJS TypeBuilders.h */,4235 A532438518568317002ED692 /* InspectorJSProtocolTypes.cpp */, 4236 A532438618568317002ED692 /* InspectorJSProtocolTypes.h */, 4235 4237 A7D801A61880D6A80026C39B /* JSCBuiltins.cpp */, 4236 4238 A7D801A71880D6A80026C39B /* JSCBuiltins.h */, … … 5353 5355 A5D0A1BA1862301B00C7B496 /* InspectorEnvironment.h */, 5354 5356 A5945594182479EB00CC3843 /* InspectorFrontendChannel.h */, 5355 A55D93AB18514F7900400DED /* Inspector TypeBuilder.h */,5357 A55D93AB18514F7900400DED /* InspectorProtocolTypes.h */, 5356 5358 A593CF801840377100BFCE27 /* InspectorValues.cpp */, 5357 5359 A593CF811840377100BFCE27 /* InspectorValues.h */, … … 5426 5428 C4703CC6192844CC0013FBEA /* generate_frontend_dispatcher_header.py */, 5427 5429 C4703CC7192844CC0013FBEA /* generate_frontend_dispatcher_implementation.py */, 5428 C4 703CC8192844CC0013FBEA /* generate_type_builder_header.py */,5429 C4 703CC9192844CC0013FBEA /* generate_type_builder_implementation.py */,5430 C49FE4A719AAC83E00F40CE9 /* generate_protocol_types_header.py */, 5431 C49FE4A819AAC83E00F40CE9 /* generate_protocol_types_implementation.py */, 5430 5432 C4703CCA192844CC0013FBEA /* generator_templates.py */, 5431 5433 C4703CCB192844CC0013FBEA /* generator.py */, … … 5716 5718 A1A009C11831A26E00CF8711 /* ARM64Assembler.h in Headers */, 5717 5719 86D3B2C410156BDE002865E7 /* ARMAssembler.h in Headers */, 5720 C49FE4AB19AAC86100F40CE9 /* generate_protocol_types_header.py in Headers */, 5721 C49FE4AC19AAC86100F40CE9 /* generate_protocol_types_implementation.py in Headers */, 5718 5722 658D3A5619638268003C45D6 /* VMEntryRecord.h in Headers */, 5719 5723 2AD2EDFB19799E38004D6478 /* EnumerationMode.h in Headers */, … … 5726 5730 A532439418569709002ED692 /* generate-combined-inspector-json.py in Headers */, 5727 5731 A5840E27187C981E00843B10 /* cssmin.py in Headers */, 5728 C4703CD3192844CC0013FBEA /* generate_type_builder_header.py in Headers */,5729 5732 C4703CD2192844CC0013FBEA /* generate_frontend_dispatcher_implementation.py in Headers */, 5730 5733 C4703CD1192844CC0013FBEA /* generate_frontend_dispatcher_header.py in Headers */, … … 5735 5738 C4703CD0192844CC0013FBEA /* generate_backend_dispatcher_implementation.py in Headers */, 5736 5739 C4703CCE192844CC0013FBEA /* generate_backend_commands.py in Headers */, 5737 C4703CD4192844CC0013FBEA /* generate_type_builder_implementation.py in Headers */,5738 5740 C4703CD7192844CC0013FBEA /* models.py in Headers */, 5739 5741 2AACE63D18CA5A0300ED0191 /* GCActivityCallback.h in Headers */, … … 6118 6120 A532438A18568335002ED692 /* InspectorJSFrontendDispatchers.h in Headers */, 6119 6121 8606DDEA18DA44AB00A383D0 /* IdentifierInlines.h in Headers */, 6120 A532438C18568335002ED692 /* InspectorJS TypeBuilders.h in Headers */,6122 A532438C18568335002ED692 /* InspectorJSProtocolTypes.h in Headers */, 6121 6123 A50E4B6218809DD50068A46D /* InspectorRuntimeAgent.h in Headers */, 6122 6124 0FBFDD05196C92BF007A5BFA /* DFGPhantomRemovalPhase.h in Headers */, 6123 A55D93AC18514F7900400DED /* Inspector TypeBuilder.h in Headers */,6125 A55D93AC18514F7900400DED /* InspectorProtocolTypes.h in Headers */, 6124 6126 A593CF831840377100BFCE27 /* InspectorValues.h in Headers */, 6125 6127 969A07990ED1D3AE00F1F681 /* Instruction.h in Headers */, … … 6768 6770 buildActionMask = 2147483647; 6769 6771 files = ( 6772 C49FE4A919AAC83E00F40CE9 /* generate_protocol_types_header.py in Resources */, 6770 6773 A53F1AC018C90F8F0072EB6D /* framework.sb in Resources */, 6774 C49FE4AA19AAC83E00F40CE9 /* generate_protocol_types_implementation.py in Resources */, 6771 6775 ); 6772 6776 runOnlyForDeploymentPostprocessing = 0; … … 7387 7391 A532438718568335002ED692 /* InspectorJSBackendDispatchers.cpp in Sources */, 7388 7392 A532438918568335002ED692 /* InspectorJSFrontendDispatchers.cpp in Sources */, 7389 A532438B18568335002ED692 /* InspectorJS TypeBuilders.cpp in Sources */,7393 A532438B18568335002ED692 /* InspectorJSProtocolTypes.cpp in Sources */, 7390 7394 A50E4B6118809DD50068A46D /* InspectorRuntimeAgent.cpp in Sources */, 7391 7395 A593CF821840377100BFCE27 /* InspectorValues.cpp in Sources */, -
trunk/Source/JavaScriptCore/inspector/ConsoleMessage.cpp
r172655 r172930 132 132 } 133 133 134 static Inspector:: TypeBuilder::Console::ConsoleMessage::Source messageSourceValue(MessageSource source)134 static Inspector::Protocol::Console::ConsoleMessage::Source messageSourceValue(MessageSource source) 135 135 { 136 136 switch (source) { 137 case MessageSource::XML: return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::XML;138 case MessageSource::JS: return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::Javascript;139 case MessageSource::Network: return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::Network;140 case MessageSource::ConsoleAPI: return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::ConsoleAPI;141 case MessageSource::Storage: return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::Storage;142 case MessageSource::AppCache: return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::Appcache;143 case MessageSource::Rendering: return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::Rendering;144 case MessageSource::CSS: return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::CSS;145 case MessageSource::Security: return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::Security;146 case MessageSource::Other: return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::Other;147 } 148 return Inspector:: TypeBuilder::Console::ConsoleMessage::Source::Other;149 } 150 151 static Inspector:: TypeBuilder::Console::ConsoleMessage::Type messageTypeValue(MessageType type)137 case MessageSource::XML: return Inspector::Protocol::Console::ConsoleMessage::Source::XML; 138 case MessageSource::JS: return Inspector::Protocol::Console::ConsoleMessage::Source::Javascript; 139 case MessageSource::Network: return Inspector::Protocol::Console::ConsoleMessage::Source::Network; 140 case MessageSource::ConsoleAPI: return Inspector::Protocol::Console::ConsoleMessage::Source::ConsoleAPI; 141 case MessageSource::Storage: return Inspector::Protocol::Console::ConsoleMessage::Source::Storage; 142 case MessageSource::AppCache: return Inspector::Protocol::Console::ConsoleMessage::Source::Appcache; 143 case MessageSource::Rendering: return Inspector::Protocol::Console::ConsoleMessage::Source::Rendering; 144 case MessageSource::CSS: return Inspector::Protocol::Console::ConsoleMessage::Source::CSS; 145 case MessageSource::Security: return Inspector::Protocol::Console::ConsoleMessage::Source::Security; 146 case MessageSource::Other: return Inspector::Protocol::Console::ConsoleMessage::Source::Other; 147 } 148 return Inspector::Protocol::Console::ConsoleMessage::Source::Other; 149 } 150 151 static Inspector::Protocol::Console::ConsoleMessage::Type messageTypeValue(MessageType type) 152 152 { 153 153 switch (type) { 154 case MessageType::Log: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::Log;155 case MessageType::Clear: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::Clear;156 case MessageType::Dir: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::Dir;157 case MessageType::DirXML: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::DirXML;158 case MessageType::Table: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::Table;159 case MessageType::Trace: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::Trace;160 case MessageType::StartGroup: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::StartGroup;161 case MessageType::StartGroupCollapsed: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::StartGroupCollapsed;162 case MessageType::EndGroup: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::EndGroup;163 case MessageType::Assert: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::Assert;164 case MessageType::Timing: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::Timing;165 case MessageType::Profile: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::Profile;166 case MessageType::ProfileEnd: return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::ProfileEnd;167 } 168 return Inspector:: TypeBuilder::Console::ConsoleMessage::Type::Log;169 } 170 171 static Inspector:: TypeBuilder::Console::ConsoleMessage::Level messageLevelValue(MessageLevel level)154 case MessageType::Log: return Inspector::Protocol::Console::ConsoleMessage::Type::Log; 155 case MessageType::Clear: return Inspector::Protocol::Console::ConsoleMessage::Type::Clear; 156 case MessageType::Dir: return Inspector::Protocol::Console::ConsoleMessage::Type::Dir; 157 case MessageType::DirXML: return Inspector::Protocol::Console::ConsoleMessage::Type::DirXML; 158 case MessageType::Table: return Inspector::Protocol::Console::ConsoleMessage::Type::Table; 159 case MessageType::Trace: return Inspector::Protocol::Console::ConsoleMessage::Type::Trace; 160 case MessageType::StartGroup: return Inspector::Protocol::Console::ConsoleMessage::Type::StartGroup; 161 case MessageType::StartGroupCollapsed: return Inspector::Protocol::Console::ConsoleMessage::Type::StartGroupCollapsed; 162 case MessageType::EndGroup: return Inspector::Protocol::Console::ConsoleMessage::Type::EndGroup; 163 case MessageType::Assert: return Inspector::Protocol::Console::ConsoleMessage::Type::Assert; 164 case MessageType::Timing: return Inspector::Protocol::Console::ConsoleMessage::Type::Timing; 165 case MessageType::Profile: return Inspector::Protocol::Console::ConsoleMessage::Type::Profile; 166 case MessageType::ProfileEnd: return Inspector::Protocol::Console::ConsoleMessage::Type::ProfileEnd; 167 } 168 return Inspector::Protocol::Console::ConsoleMessage::Type::Log; 169 } 170 171 static Inspector::Protocol::Console::ConsoleMessage::Level messageLevelValue(MessageLevel level) 172 172 { 173 173 switch (level) { 174 case MessageLevel::Log: return Inspector:: TypeBuilder::Console::ConsoleMessage::Level::Log;175 case MessageLevel::Warning: return Inspector:: TypeBuilder::Console::ConsoleMessage::Level::Warning;176 case MessageLevel::Error: return Inspector:: TypeBuilder::Console::ConsoleMessage::Level::Error;177 case MessageLevel::Debug: return Inspector:: TypeBuilder::Console::ConsoleMessage::Level::Debug;178 } 179 return Inspector:: TypeBuilder::Console::ConsoleMessage::Level::Log;174 case MessageLevel::Log: return Inspector::Protocol::Console::ConsoleMessage::Level::Log; 175 case MessageLevel::Warning: return Inspector::Protocol::Console::ConsoleMessage::Level::Warning; 176 case MessageLevel::Error: return Inspector::Protocol::Console::ConsoleMessage::Level::Error; 177 case MessageLevel::Debug: return Inspector::Protocol::Console::ConsoleMessage::Level::Debug; 178 } 179 return Inspector::Protocol::Console::ConsoleMessage::Level::Log; 180 180 } 181 181 182 182 void ConsoleMessage::addToFrontend(InspectorConsoleFrontendDispatcher* consoleFrontendDispatcher, Inspector::InjectedScriptManager* injectedScriptManager, bool generatePreview) 183 183 { 184 RefPtr<Inspector:: TypeBuilder::Console::ConsoleMessage> jsonObj = Inspector::TypeBuilder::Console::ConsoleMessage::create()184 RefPtr<Inspector::Protocol::Console::ConsoleMessage> jsonObj = Inspector::Protocol::Console::ConsoleMessage::create() 185 185 .setSource(messageSourceValue(m_source)) 186 186 .setLevel(messageLevelValue(m_level)) … … 200 200 InjectedScript injectedScript = injectedScriptManager->injectedScriptFor(m_arguments->globalState()); 201 201 if (!injectedScript.hasNoValue()) { 202 RefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Runtime::RemoteObject>> jsonArgs = Inspector::TypeBuilder::Array<Inspector::TypeBuilder::Runtime::RemoteObject>::create();202 RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::RemoteObject>> jsonArgs = Inspector::Protocol::Array<Inspector::Protocol::Runtime::RemoteObject>::create(); 203 203 if (m_type == MessageType::Table && generatePreview && m_arguments->argumentCount()) { 204 204 Deprecated::ScriptValue table = m_arguments->argumentAt(0); 205 205 Deprecated::ScriptValue columns = m_arguments->argumentCount() > 1 ? m_arguments->argumentAt(1) : Deprecated::ScriptValue(); 206 RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject> inspectorValue = injectedScript.wrapTable(table, columns);206 RefPtr<Inspector::Protocol::Runtime::RemoteObject> inspectorValue = injectedScript.wrapTable(table, columns); 207 207 if (!inspectorValue) { 208 208 ASSERT_NOT_REACHED(); … … 212 212 } else { 213 213 for (unsigned i = 0; i < m_arguments->argumentCount(); ++i) { 214 RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject> inspectorValue = injectedScript.wrapObject(m_arguments->argumentAt(i), "console", generatePreview);214 RefPtr<Inspector::Protocol::Runtime::RemoteObject> inspectorValue = injectedScript.wrapObject(m_arguments->argumentAt(i), "console", generatePreview); 215 215 if (!inspectorValue) { 216 216 ASSERT_NOT_REACHED(); -
trunk/Source/JavaScriptCore/inspector/ContentSearchUtilities.cpp
r165703 r172930 32 32 #if ENABLE(INSPECTOR) 33 33 34 #include "InspectorJS TypeBuilders.h"34 #include "InspectorJSProtocolTypes.h" 35 35 #include "InspectorValues.h" 36 36 #include "RegularExpression.h" … … 122 122 } 123 123 124 static PassRefPtr<Inspector:: TypeBuilder::GenericTypes::SearchMatch> buildObjectForSearchMatch(size_t lineNumber, const String& lineContent)125 { 126 return Inspector:: TypeBuilder::GenericTypes::SearchMatch::create()124 static PassRefPtr<Inspector::Protocol::GenericTypes::SearchMatch> buildObjectForSearchMatch(size_t lineNumber, const String& lineContent) 125 { 126 return Inspector::Protocol::GenericTypes::SearchMatch::create() 127 127 .setLineNumber(lineNumber) 128 128 .setLineContent(lineContent) … … 155 155 } 156 156 157 PassRefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::GenericTypes::SearchMatch>> searchInTextByLines(const String& text, const String& query, const bool caseSensitive, const bool isRegex)158 { 159 RefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::GenericTypes::SearchMatch>> result = Inspector::TypeBuilder::Array<Inspector::TypeBuilder::GenericTypes::SearchMatch>::create();157 PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::GenericTypes::SearchMatch>> searchInTextByLines(const String& text, const String& query, const bool caseSensitive, const bool isRegex) 158 { 159 RefPtr<Inspector::Protocol::Array<Inspector::Protocol::GenericTypes::SearchMatch>> result = Inspector::Protocol::Array<Inspector::Protocol::GenericTypes::SearchMatch>::create(); 160 160 161 161 JSC::Yarr::RegularExpression regex = ContentSearchUtilities::createSearchRegex(query, caseSensitive, isRegex); -
trunk/Source/JavaScriptCore/inspector/ContentSearchUtilities.h
r164245 r172930 32 32 #if ENABLE(INSPECTOR) 33 33 34 #include "InspectorJS TypeBuilders.h"34 #include "InspectorJSProtocolTypes.h" 35 35 #include <wtf/Vector.h> 36 36 #include <wtf/text/TextPosition.h> … … 47 47 JS_EXPORT_PRIVATE JSC::Yarr::RegularExpression createSearchRegex(const String& query, bool caseSensitive, bool isRegex); 48 48 JS_EXPORT_PRIVATE int countRegularExpressionMatches(const JSC::Yarr::RegularExpression&, const String&); 49 JS_EXPORT_PRIVATE PassRefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::GenericTypes::SearchMatch>> searchInTextByLines(const String& text, const String& query, const bool caseSensitive, const bool isRegex);49 JS_EXPORT_PRIVATE PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::GenericTypes::SearchMatch>> searchInTextByLines(const String& text, const String& query, const bool caseSensitive, const bool isRegex); 50 50 JS_EXPORT_PRIVATE TextPosition textPositionFromOffset(size_t offset, const Vector<size_t>& lineEndings); 51 51 JS_EXPORT_PRIVATE std::unique_ptr<Vector<size_t>> lineEndings(const String&); -
trunk/Source/JavaScriptCore/inspector/InjectedScript.cpp
r172655 r172930 41 41 #include <wtf/text/WTFString.h> 42 42 43 using Inspector:: TypeBuilder::Array;43 using Inspector::Protocol::Array; 44 44 45 45 namespace Inspector { … … 59 59 } 60 60 61 void InjectedScript::evaluate(ErrorString* errorString, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject>* result, Inspector::TypeBuilder::OptOutput<bool>* wasThrown)61 void InjectedScript::evaluate(ErrorString* errorString, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, RefPtr<Inspector::Protocol::Runtime::RemoteObject>* result, Inspector::Protocol::OptOutput<bool>* wasThrown) 62 62 { 63 63 Deprecated::ScriptFunctionCall function(injectedScriptObject(), ASCIILiteral("evaluate"), inspectorEnvironment()->functionCallHandler()); … … 70 70 } 71 71 72 void InjectedScript::callFunctionOn(ErrorString* errorString, const String& objectId, const String& expression, const String& arguments, bool returnByValue, bool generatePreview, RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject>* result, Inspector::TypeBuilder::OptOutput<bool>* wasThrown)72 void InjectedScript::callFunctionOn(ErrorString* errorString, const String& objectId, const String& expression, const String& arguments, bool returnByValue, bool generatePreview, RefPtr<Inspector::Protocol::Runtime::RemoteObject>* result, Inspector::Protocol::OptOutput<bool>* wasThrown) 73 73 { 74 74 Deprecated::ScriptFunctionCall function(injectedScriptObject(), ASCIILiteral("callFunctionOn"), inspectorEnvironment()->functionCallHandler()); … … 81 81 } 82 82 83 void InjectedScript::evaluateOnCallFrame(ErrorString* errorString, const Deprecated::ScriptValue& callFrames, const String& callFrameId, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject>* result, Inspector::TypeBuilder::OptOutput<bool>* wasThrown)83 void InjectedScript::evaluateOnCallFrame(ErrorString* errorString, const Deprecated::ScriptValue& callFrames, const String& callFrameId, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, RefPtr<Inspector::Protocol::Runtime::RemoteObject>* result, Inspector::Protocol::OptOutput<bool>* wasThrown) 84 84 { 85 85 Deprecated::ScriptFunctionCall function(injectedScriptObject(), ASCIILiteral("evaluateOnCallFrame"), inspectorEnvironment()->functionCallHandler()); … … 94 94 } 95 95 96 void InjectedScript::getFunctionDetails(ErrorString* errorString, const String& functionId, RefPtr<Inspector:: TypeBuilder::Debugger::FunctionDetails>* result)96 void InjectedScript::getFunctionDetails(ErrorString* errorString, const String& functionId, RefPtr<Inspector::Protocol::Debugger::FunctionDetails>* result) 97 97 { 98 98 Deprecated::ScriptFunctionCall function(injectedScriptObject(), ASCIILiteral("getFunctionDetails"), inspectorEnvironment()->functionCallHandler()); … … 107 107 } 108 108 109 *result = BindingTraits<Inspector:: TypeBuilder::Debugger::FunctionDetails>::runtimeCast(resultValue);110 } 111 112 void InjectedScript::getProperties(ErrorString* errorString, const String& objectId, bool ownProperties, RefPtr<Array<Inspector:: TypeBuilder::Runtime::PropertyDescriptor>>* properties)109 *result = BindingTraits<Inspector::Protocol::Debugger::FunctionDetails>::runtimeCast(resultValue); 110 } 111 112 void InjectedScript::getProperties(ErrorString* errorString, const String& objectId, bool ownProperties, RefPtr<Array<Inspector::Protocol::Runtime::PropertyDescriptor>>* properties) 113 113 { 114 114 Deprecated::ScriptFunctionCall function(injectedScriptObject(), ASCIILiteral("getProperties"), inspectorEnvironment()->functionCallHandler()); … … 123 123 } 124 124 125 *properties = BindingTraits<Array<Inspector:: TypeBuilder::Runtime::PropertyDescriptor>>::runtimeCast(result);126 } 127 128 void InjectedScript::getInternalProperties(ErrorString* errorString, const String& objectId, RefPtr<Array<Inspector:: TypeBuilder::Runtime::InternalPropertyDescriptor>>* properties)125 *properties = BindingTraits<Array<Inspector::Protocol::Runtime::PropertyDescriptor>>::runtimeCast(result); 126 } 127 128 void InjectedScript::getInternalProperties(ErrorString* errorString, const String& objectId, RefPtr<Array<Inspector::Protocol::Runtime::InternalPropertyDescriptor>>* properties) 129 129 { 130 130 Deprecated::ScriptFunctionCall function(injectedScriptObject(), ASCIILiteral("getInternalProperties"), inspectorEnvironment()->functionCallHandler()); … … 138 138 } 139 139 140 auto array = BindingTraits<Array<Inspector:: TypeBuilder::Runtime::InternalPropertyDescriptor>>::runtimeCast(result);140 auto array = BindingTraits<Array<Inspector::Protocol::Runtime::InternalPropertyDescriptor>>::runtimeCast(result); 141 141 if (array->length() > 0) 142 142 *properties = array; 143 143 } 144 144 145 PassRefPtr<Array<Inspector:: TypeBuilder::Debugger::CallFrame>> InjectedScript::wrapCallFrames(const Deprecated::ScriptValue& callFrames)145 PassRefPtr<Array<Inspector::Protocol::Debugger::CallFrame>> InjectedScript::wrapCallFrames(const Deprecated::ScriptValue& callFrames) 146 146 { 147 147 ASSERT(!hasNoValue()); … … 154 154 RefPtr<InspectorValue> result = callFramesValue.toInspectorValue(scriptState()); 155 155 if (result->type() == InspectorValue::Type::Array) 156 return BindingTraits<Array<Inspector:: TypeBuilder::Debugger::CallFrame>>::runtimeCast(result);157 158 return Array<Inspector:: TypeBuilder::Debugger::CallFrame>::create();159 } 160 161 PassRefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject> InjectedScript::wrapObject(const Deprecated::ScriptValue& value, const String& groupName, bool generatePreview) const156 return BindingTraits<Array<Inspector::Protocol::Debugger::CallFrame>>::runtimeCast(result); 157 158 return Array<Inspector::Protocol::Debugger::CallFrame>::create(); 159 } 160 161 PassRefPtr<Inspector::Protocol::Runtime::RemoteObject> InjectedScript::wrapObject(const Deprecated::ScriptValue& value, const String& groupName, bool generatePreview) const 162 162 { 163 163 ASSERT(!hasNoValue()); … … 174 174 175 175 RefPtr<InspectorObject> rawResult = r.toInspectorValue(scriptState())->asObject(); 176 return BindingTraits<Inspector:: TypeBuilder::Runtime::RemoteObject>::runtimeCast(rawResult);177 } 178 179 PassRefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject> InjectedScript::wrapTable(const Deprecated::ScriptValue& table, const Deprecated::ScriptValue& columns) const176 return BindingTraits<Inspector::Protocol::Runtime::RemoteObject>::runtimeCast(rawResult); 177 } 178 179 PassRefPtr<Inspector::Protocol::Runtime::RemoteObject> InjectedScript::wrapTable(const Deprecated::ScriptValue& table, const Deprecated::ScriptValue& columns) const 180 180 { 181 181 ASSERT(!hasNoValue()); … … 194 194 195 195 RefPtr<InspectorObject> rawResult = r.toInspectorValue(scriptState())->asObject(); 196 return BindingTraits<Inspector:: TypeBuilder::Runtime::RemoteObject>::runtimeCast(rawResult);196 return BindingTraits<Inspector::Protocol::Runtime::RemoteObject>::runtimeCast(rawResult); 197 197 } 198 198 -
trunk/Source/JavaScriptCore/inspector/InjectedScript.h
r162970 r172930 36 36 37 37 #include "InjectedScriptBase.h" 38 #include "InspectorJS TypeBuilders.h"38 #include "InspectorJSProtocolTypes.h" 39 39 #include <wtf/Forward.h> 40 40 #include <wtf/Noncopyable.h> … … 57 57 virtual ~InjectedScript(); 58 58 59 void evaluate(ErrorString*, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, RefPtr< TypeBuilder::Runtime::RemoteObject>* result, TypeBuilder::OptOutput<bool>* wasThrown);60 void callFunctionOn(ErrorString*, const String& objectId, const String& expression, const String& arguments, bool returnByValue, bool generatePreview, RefPtr< TypeBuilder::Runtime::RemoteObject>* result, TypeBuilder::OptOutput<bool>* wasThrown);61 void evaluateOnCallFrame(ErrorString*, const Deprecated::ScriptValue& callFrames, const String& callFrameId, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, RefPtr< TypeBuilder::Runtime::RemoteObject>* result, TypeBuilder::OptOutput<bool>* wasThrown);62 void getFunctionDetails(ErrorString*, const String& functionId, RefPtr< TypeBuilder::Debugger::FunctionDetails>* result);63 void getProperties(ErrorString*, const String& objectId, bool ownProperties, RefPtr< TypeBuilder::Array<TypeBuilder::Runtime::PropertyDescriptor>>* result);64 void getInternalProperties(ErrorString*, const String& objectId, RefPtr< TypeBuilder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor>>* result);59 void evaluate(ErrorString*, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, RefPtr<Protocol::Runtime::RemoteObject>* result, Protocol::OptOutput<bool>* wasThrown); 60 void callFunctionOn(ErrorString*, const String& objectId, const String& expression, const String& arguments, bool returnByValue, bool generatePreview, RefPtr<Protocol::Runtime::RemoteObject>* result, Protocol::OptOutput<bool>* wasThrown); 61 void evaluateOnCallFrame(ErrorString*, const Deprecated::ScriptValue& callFrames, const String& callFrameId, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, RefPtr<Protocol::Runtime::RemoteObject>* result, Protocol::OptOutput<bool>* wasThrown); 62 void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<Protocol::Debugger::FunctionDetails>* result); 63 void getProperties(ErrorString*, const String& objectId, bool ownProperties, RefPtr<Protocol::Array<Protocol::Runtime::PropertyDescriptor>>* result); 64 void getInternalProperties(ErrorString*, const String& objectId, RefPtr<Protocol::Array<Protocol::Runtime::InternalPropertyDescriptor>>* result); 65 65 66 PassRefPtr< TypeBuilder::Array<TypeBuilder::Debugger::CallFrame>> wrapCallFrames(const Deprecated::ScriptValue&);67 PassRefPtr< TypeBuilder::Runtime::RemoteObject> wrapObject(const Deprecated::ScriptValue&, const String& groupName, bool generatePreview = false) const;68 PassRefPtr< TypeBuilder::Runtime::RemoteObject> wrapTable(const Deprecated::ScriptValue& table, const Deprecated::ScriptValue& columns) const;66 PassRefPtr<Protocol::Array<Protocol::Debugger::CallFrame>> wrapCallFrames(const Deprecated::ScriptValue&); 67 PassRefPtr<Protocol::Runtime::RemoteObject> wrapObject(const Deprecated::ScriptValue&, const String& groupName, bool generatePreview = false) const; 68 PassRefPtr<Protocol::Runtime::RemoteObject> wrapTable(const Deprecated::ScriptValue& table, const Deprecated::ScriptValue& columns) const; 69 69 70 70 Deprecated::ScriptValue findObjectById(const String& objectId) const; -
trunk/Source/JavaScriptCore/inspector/InjectedScriptBase.cpp
r172655 r172930 120 120 } 121 121 122 void InjectedScriptBase::makeEvalCall(ErrorString* errorString, Deprecated::ScriptFunctionCall& function, RefPtr< TypeBuilder::Runtime::RemoteObject>* objectResult, TypeBuilder::OptOutput<bool>* wasThrown)122 void InjectedScriptBase::makeEvalCall(ErrorString* errorString, Deprecated::ScriptFunctionCall& function, RefPtr<Protocol::Runtime::RemoteObject>* objectResult, Protocol::OptOutput<bool>* wasThrown) 123 123 { 124 124 RefPtr<InspectorValue> result; … … 148 148 } 149 149 150 *objectResult = BindingTraits< TypeBuilder::Runtime::RemoteObject>::runtimeCast(resultObj);150 *objectResult = BindingTraits<Protocol::Runtime::RemoteObject>::runtimeCast(resultObj); 151 151 *wasThrown = wasThrownVal; 152 152 } -
trunk/Source/JavaScriptCore/inspector/InjectedScriptBase.h
r161563 r172930 36 36 37 37 #include "InspectorEnvironment.h" 38 #include "InspectorJS TypeBuilders.h"38 #include "InspectorJSProtocolTypes.h" 39 39 #include "bindings/ScriptObject.h" 40 40 #include <wtf/Forward.h> … … 69 69 Deprecated::ScriptValue callFunctionWithEvalEnabled(Deprecated::ScriptFunctionCall&, bool& hadException) const; 70 70 void makeCall(Deprecated::ScriptFunctionCall&, RefPtr<InspectorValue>* result); 71 void makeEvalCall(ErrorString*, Deprecated::ScriptFunctionCall&, RefPtr< TypeBuilder::Runtime::RemoteObject>* result, TypeBuilder::OptOutput<bool>* wasThrown);71 void makeEvalCall(ErrorString*, Deprecated::ScriptFunctionCall&, RefPtr<Protocol::Runtime::RemoteObject>* result, Protocol::OptOutput<bool>* wasThrown); 72 72 73 73 private: -
trunk/Source/JavaScriptCore/inspector/InspectorProtocolTypes.h
r172929 r172930 25 25 */ 26 26 27 #ifndef Inspector TypeBuilder_h28 #define Inspector TypeBuilder_h27 #ifndef InspectorProtocolTypes_h 28 #define InspectorProtocolTypes_h 29 29 30 30 #if ENABLE(INSPECTOR) … … 36 36 namespace Inspector { 37 37 38 namespace TypeBuilder{38 namespace Protocol { 39 39 40 40 template<typename T> … … 177 177 178 178 template<typename T> 179 struct ArrayItemHelper< TypeBuilder::Array<T>> {180 struct Traits { 181 static void pushRefPtr(InspectorArray* array, PassRefPtr< TypeBuilder::Array<T>> value)179 struct ArrayItemHelper<Protocol::Array<T>> { 180 struct Traits { 181 static void pushRefPtr(InspectorArray* array, PassRefPtr<Protocol::Array<T>> value) 182 182 { 183 183 array->pushValue(value); … … 186 186 }; 187 187 188 // Helper methods for TypeBuilderand other Inspector types are provided by188 // Helper methods for Protocol and other Inspector types are provided by 189 189 // specializations of BindingTraits<T>. Some are generated for protocol types. 190 190 … … 211 211 212 212 template<typename T> 213 struct BindingTraits< TypeBuilder::Array<T>> {213 struct BindingTraits<Protocol::Array<T>> { 214 214 static PassRefPtr<Array<T>> runtimeCast(PassRefPtr<InspectorValue> value) 215 215 { … … 265 265 }; 266 266 267 } // namespace TypeBuilder268 269 using TypeBuilder::BindingTraits;267 } // namespace Protocol 268 269 using Protocol::BindingTraits; 270 270 271 271 } // namespace Inspector … … 273 273 #endif // ENABLE(INSPECTOR) 274 274 275 #endif // !defined(Inspector TypeBuilder_h)275 #endif // !defined(InspectorProtocolTypes_h) -
trunk/Source/JavaScriptCore/inspector/ScriptCallFrame.cpp
r163568 r172930 59 59 60 60 #if ENABLE(INSPECTOR) 61 PassRefPtr<Inspector:: TypeBuilder::Console::CallFrame> ScriptCallFrame::buildInspectorObject() const61 PassRefPtr<Inspector::Protocol::Console::CallFrame> ScriptCallFrame::buildInspectorObject() const 62 62 { 63 return Inspector:: TypeBuilder::Console::CallFrame::create()63 return Inspector::Protocol::Console::CallFrame::create() 64 64 .setFunctionName(m_functionName) 65 65 .setUrl(m_scriptName) -
trunk/Source/JavaScriptCore/inspector/ScriptCallFrame.h
r163568 r172930 37 37 38 38 #if ENABLE(INSPECTOR) 39 #include "InspectorJS TypeBuilders.h"39 #include "InspectorJSProtocolTypes.h" 40 40 #endif 41 41 … … 55 55 56 56 #if ENABLE(INSPECTOR) 57 PassRefPtr<Inspector:: TypeBuilder::Console::CallFrame> buildInspectorObject() const;57 PassRefPtr<Inspector::Protocol::Console::CallFrame> buildInspectorObject() const; 58 58 #endif 59 59 -
trunk/Source/JavaScriptCore/inspector/ScriptCallStack.cpp
r164824 r172930 108 108 109 109 #if ENABLE(INSPECTOR) 110 PassRefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Console::CallFrame>> ScriptCallStack::buildInspectorArray() const110 PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::Console::CallFrame>> ScriptCallStack::buildInspectorArray() const 111 111 { 112 RefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Console::CallFrame>> frames = Inspector::TypeBuilder::Array<Inspector::TypeBuilder::Console::CallFrame>::create();112 RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Console::CallFrame>> frames = Inspector::Protocol::Array<Inspector::Protocol::Console::CallFrame>::create(); 113 113 for (size_t i = 0; i < m_frames.size(); i++) 114 114 frames->addItem(m_frames.at(i).buildInspectorObject()); -
trunk/Source/JavaScriptCore/inspector/ScriptCallStack.h
r164824 r172930 39 39 40 40 #if ENABLE(INSPECTOR) 41 #include "InspectorJS TypeBuilders.h"41 #include "InspectorJSProtocolTypes.h" 42 42 #endif 43 43 … … 63 63 64 64 #if ENABLE(INSPECTOR) 65 PassRefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Console::CallFrame>> buildInspectorArray() const;65 PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::Console::CallFrame>> buildInspectorArray() const; 66 66 #endif 67 67 -
trunk/Source/JavaScriptCore/inspector/agents/InspectorAgent.cpp
r165676 r172930 88 88 } 89 89 90 void InspectorAgent::inspect(PassRefPtr< TypeBuilder::Runtime::RemoteObject> objectToInspect, PassRefPtr<InspectorObject> hints)90 void InspectorAgent::inspect(PassRefPtr<Protocol::Runtime::RemoteObject> objectToInspect, PassRefPtr<InspectorObject> hints) 91 91 { 92 92 if (m_enabled && m_frontendDispatcher) { -
trunk/Source/JavaScriptCore/inspector/agents/InspectorAgent.h
r167811 r172930 61 61 virtual void disable(ErrorString*) override; 62 62 63 void inspect(PassRefPtr< TypeBuilder::Runtime::RemoteObject> objectToInspect, PassRefPtr<InspectorObject> hints);63 void inspect(PassRefPtr<Protocol::Runtime::RemoteObject> objectToInspect, PassRefPtr<InspectorObject> hints); 64 64 void evaluateForTestInFrontend(const String& script); 65 65 … … 68 68 RefPtr<InspectorInspectorBackendDispatcher> m_backendDispatcher; 69 69 Vector<String> m_pendingEvaluateTestCommands; 70 std::pair<RefPtr< TypeBuilder::Runtime::RemoteObject>, RefPtr<InspectorObject>> m_pendingInspectData;70 std::pair<RefPtr<Protocol::Runtime::RemoteObject>, RefPtr<InspectorObject>> m_pendingInspectData; 71 71 bool m_enabled; 72 72 }; -
trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp
r172655 r172930 176 176 static bool breakpointActionTypeForString(const String& typeString, ScriptBreakpointActionType* output) 177 177 { 178 if (typeString == Inspector:: TypeBuilder::getJSEnumConstantValue(Inspector::TypeBuilder::Debugger::BreakpointAction::Type::Log)) {178 if (typeString == Inspector::Protocol::getJSEnumConstantValue(Inspector::Protocol::Debugger::BreakpointAction::Type::Log)) { 179 179 *output = ScriptBreakpointActionTypeLog; 180 180 return true; 181 181 } 182 if (typeString == Inspector:: TypeBuilder::getJSEnumConstantValue(Inspector::TypeBuilder::Debugger::BreakpointAction::Type::Evaluate)) {182 if (typeString == Inspector::Protocol::getJSEnumConstantValue(Inspector::Protocol::Debugger::BreakpointAction::Type::Evaluate)) { 183 183 *output = ScriptBreakpointActionTypeEvaluate; 184 184 return true; 185 185 } 186 if (typeString == Inspector:: TypeBuilder::getJSEnumConstantValue(Inspector::TypeBuilder::Debugger::BreakpointAction::Type::Sound)) {186 if (typeString == Inspector::Protocol::getJSEnumConstantValue(Inspector::Protocol::Debugger::BreakpointAction::Type::Sound)) { 187 187 *output = ScriptBreakpointActionTypeSound; 188 188 return true; 189 189 } 190 if (typeString == Inspector:: TypeBuilder::getJSEnumConstantValue(Inspector::TypeBuilder::Debugger::BreakpointAction::Type::Probe)) {190 if (typeString == Inspector::Protocol::getJSEnumConstantValue(Inspector::Protocol::Debugger::BreakpointAction::Type::Probe)) { 191 191 *output = ScriptBreakpointActionTypeProbe; 192 192 return true; … … 240 240 } 241 241 242 void InspectorDebuggerAgent::setBreakpointByUrl(ErrorString* errorString, int lineNumber, const String* const optionalURL, const String* const optionalURLRegex, const int* const optionalColumnNumber, const RefPtr<InspectorObject>* options, Inspector:: TypeBuilder::Debugger::BreakpointId* outBreakpointIdentifier, RefPtr<Inspector::TypeBuilder::Array<Inspector::TypeBuilder::Debugger::Location>>& locations)243 { 244 locations = Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Debugger::Location>::create();242 void InspectorDebuggerAgent::setBreakpointByUrl(ErrorString* errorString, int lineNumber, const String* const optionalURL, const String* const optionalURLRegex, const int* const optionalColumnNumber, const RefPtr<InspectorObject>* options, Inspector::Protocol::Debugger::BreakpointId* outBreakpointIdentifier, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Debugger::Location>>& locations) 243 { 244 locations = Inspector::Protocol::Array<Inspector::Protocol::Debugger::Location>::create(); 245 245 if (!optionalURL == !optionalURLRegex) { 246 246 *errorString = ASCIILiteral("Either url or urlRegex must be specified."); … … 279 279 continue; 280 280 281 RefPtr<Inspector:: TypeBuilder::Debugger::Location> location = resolveBreakpoint(breakpointIdentifier, it->key, breakpoint);281 RefPtr<Inspector::Protocol::Debugger::Location> location = resolveBreakpoint(breakpointIdentifier, it->key, breakpoint); 282 282 if (location) 283 283 locations->addItem(location); … … 301 301 } 302 302 303 void InspectorDebuggerAgent::setBreakpoint(ErrorString* errorString, const RefPtr<InspectorObject>& location, const RefPtr<InspectorObject>* options, Inspector:: TypeBuilder::Debugger::BreakpointId* outBreakpointIdentifier, RefPtr<Inspector::TypeBuilder::Debugger::Location>& actualLocation)303 void InspectorDebuggerAgent::setBreakpoint(ErrorString* errorString, const RefPtr<InspectorObject>& location, const RefPtr<InspectorObject>* options, Inspector::Protocol::Debugger::BreakpointId* outBreakpointIdentifier, RefPtr<Inspector::Protocol::Debugger::Location>& actualLocation) 304 304 { 305 305 JSC::SourceID sourceID; … … 369 369 } 370 370 371 PassRefPtr<Inspector:: TypeBuilder::Debugger::Location> InspectorDebuggerAgent::resolveBreakpoint(const String& breakpointIdentifier, JSC::SourceID sourceID, const ScriptBreakpoint& breakpoint)371 PassRefPtr<Inspector::Protocol::Debugger::Location> InspectorDebuggerAgent::resolveBreakpoint(const String& breakpointIdentifier, JSC::SourceID sourceID, const ScriptBreakpoint& breakpoint) 372 372 { 373 373 ScriptsMap::iterator scriptIterator = m_scripts.find(sourceID); … … 389 389 debugServerBreakpointIDsIterator->value.append(debugServerBreakpointID); 390 390 391 RefPtr<Inspector:: TypeBuilder::Debugger::Location> location = Inspector::TypeBuilder::Debugger::Location::create()391 RefPtr<Inspector::Protocol::Debugger::Location> location = Inspector::Protocol::Debugger::Location::create() 392 392 .setScriptId(String::number(sourceID)) 393 393 .setLineNumber(actualLineNumber); … … 396 396 } 397 397 398 void InspectorDebuggerAgent::searchInContent(ErrorString* error, const String& scriptIDStr, const String& query, const bool* const optionalCaseSensitive, const bool* const optionalIsRegex, RefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::GenericTypes::SearchMatch>>& results)398 void InspectorDebuggerAgent::searchInContent(ErrorString* error, const String& scriptIDStr, const String& query, const bool* const optionalCaseSensitive, const bool* const optionalIsRegex, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::GenericTypes::SearchMatch>>& results) 399 399 { 400 400 bool isRegex = optionalIsRegex ? *optionalIsRegex : false; … … 419 419 } 420 420 421 void InspectorDebuggerAgent::getFunctionDetails(ErrorString* errorString, const String& functionId, RefPtr<Inspector:: TypeBuilder::Debugger::FunctionDetails>& details)421 void InspectorDebuggerAgent::getFunctionDetails(ErrorString* errorString, const String& functionId, RefPtr<Inspector::Protocol::Debugger::FunctionDetails>& details) 422 422 { 423 423 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptForObjectId(functionId); … … 517 517 } 518 518 519 void InspectorDebuggerAgent::evaluateOnCallFrame(ErrorString* errorString, const String& callFrameId, const String& expression, const String* const objectGroup, const bool* const includeCommandLineAPI, const bool* const doNotPauseOnExceptionsAndMuteConsole, const bool* const returnByValue, const bool* generatePreview, RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject>& result, Inspector::TypeBuilder::OptOutput<bool>* wasThrown)519 void InspectorDebuggerAgent::evaluateOnCallFrame(ErrorString* errorString, const String& callFrameId, const String& expression, const String* const objectGroup, const bool* const includeCommandLineAPI, const bool* const doNotPauseOnExceptionsAndMuteConsole, const bool* const returnByValue, const bool* generatePreview, RefPtr<Inspector::Protocol::Runtime::RemoteObject>& result, Inspector::Protocol::OptOutput<bool>* wasThrown) 520 520 { 521 521 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptForObjectId(callFrameId); … … 554 554 } 555 555 556 PassRefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Debugger::CallFrame>> InspectorDebuggerAgent::currentCallFrames()556 PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::Debugger::CallFrame>> InspectorDebuggerAgent::currentCallFrames() 557 557 { 558 558 if (!m_pausedScriptState) 559 return Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Debugger::CallFrame>::create();559 return Inspector::Protocol::Array<Inspector::Protocol::Debugger::CallFrame>::create(); 560 560 561 561 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(m_pausedScriptState); 562 562 if (injectedScript.hasNoValue()) { 563 563 ASSERT_NOT_REACHED(); 564 return Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Debugger::CallFrame>::create();564 return Inspector::Protocol::Array<Inspector::Protocol::Debugger::CallFrame>::create(); 565 565 } 566 566 … … 613 613 } 614 614 615 RefPtr<Inspector:: TypeBuilder::Debugger::Location> location = resolveBreakpoint(it->key, sourceID, breakpoint);615 RefPtr<Inspector::Protocol::Debugger::Location> location = resolveBreakpoint(it->key, sourceID, breakpoint); 616 616 if (location) 617 617 m_frontendDispatcher->breakpointResolved(it->key, location); … … 661 661 662 662 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(scriptState); 663 RefPtr< TypeBuilder::Runtime::RemoteObject> payload = injectedScript.wrapObject(sample, objectGroupForBreakpointAction(action));664 RefPtr< TypeBuilder::Debugger::ProbeSample> result = TypeBuilder::Debugger::ProbeSample::create()663 RefPtr<Protocol::Runtime::RemoteObject> payload = injectedScript.wrapObject(sample, objectGroupForBreakpointAction(action)); 664 RefPtr<Protocol::Debugger::ProbeSample> result = Protocol::Debugger::ProbeSample::create() 665 665 .setProbeId(action.identifier) 666 666 .setSampleId(sampleId) -
trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h
r172655 r172930 72 72 virtual void disable(ErrorString*) override; 73 73 virtual void setBreakpointsActive(ErrorString*, bool active) override; 74 virtual void setBreakpointByUrl(ErrorString*, int lineNumber, const String* optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, const RefPtr<Inspector::InspectorObject>* options, Inspector:: TypeBuilder::Debugger::BreakpointId*, RefPtr<Inspector::TypeBuilder::Array<Inspector::TypeBuilder::Debugger::Location>>& locations) override;75 virtual void setBreakpoint(ErrorString*, const RefPtr<Inspector::InspectorObject>& location, const RefPtr<Inspector::InspectorObject>* options, Inspector:: TypeBuilder::Debugger::BreakpointId*, RefPtr<Inspector::TypeBuilder::Debugger::Location>& actualLocation) override;74 virtual void setBreakpointByUrl(ErrorString*, int lineNumber, const String* optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, const RefPtr<Inspector::InspectorObject>* options, Inspector::Protocol::Debugger::BreakpointId*, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Debugger::Location>>& locations) override; 75 virtual void setBreakpoint(ErrorString*, const RefPtr<Inspector::InspectorObject>& location, const RefPtr<Inspector::InspectorObject>* options, Inspector::Protocol::Debugger::BreakpointId*, RefPtr<Inspector::Protocol::Debugger::Location>& actualLocation) override; 76 76 virtual void removeBreakpoint(ErrorString*, const String& breakpointIdentifier) override; 77 77 virtual void continueToLocation(ErrorString*, const RefPtr<InspectorObject>& location) override; 78 virtual void searchInContent(ErrorString*, const String& scriptID, const String& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::GenericTypes::SearchMatch>>&) override;78 virtual void searchInContent(ErrorString*, const String& scriptID, const String& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::GenericTypes::SearchMatch>>&) override; 79 79 virtual void getScriptSource(ErrorString*, const String& scriptID, String* scriptSource) override; 80 virtual void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<Inspector:: TypeBuilder::Debugger::FunctionDetails>&) override;80 virtual void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<Inspector::Protocol::Debugger::FunctionDetails>&) override; 81 81 virtual void pause(ErrorString*) override; 82 82 virtual void resume(ErrorString*) override; … … 85 85 virtual void stepOut(ErrorString*) override; 86 86 virtual void setPauseOnExceptions(ErrorString*, const String& pauseState) override; 87 virtual void evaluateOnCallFrame(ErrorString*, const String& callFrameId, const String& expression, const String* objectGroup, const bool* includeCommandLineAPI, const bool* doNotPauseOnExceptionsAndMuteConsole, const bool* returnByValue, const bool* generatePreview, RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject>& result, Inspector::TypeBuilder::OptOutput<bool>* wasThrown) override;87 virtual void evaluateOnCallFrame(ErrorString*, const String& callFrameId, const String& expression, const String* objectGroup, const bool* includeCommandLineAPI, const bool* doNotPauseOnExceptionsAndMuteConsole, const bool* returnByValue, const bool* generatePreview, RefPtr<Inspector::Protocol::Runtime::RemoteObject>& result, Inspector::Protocol::OptOutput<bool>* wasThrown) override; 88 88 virtual void setOverlayMessage(ErrorString*, const String*) override; 89 89 … … 130 130 131 131 private: 132 PassRefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Debugger::CallFrame>> currentCallFrames();132 PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::Debugger::CallFrame>> currentCallFrames(); 133 133 134 134 virtual void didParseSource(JSC::SourceID, const Script&) override final; … … 138 138 virtual void breakpointActionProbe(JSC::ExecState*, const ScriptBreakpointAction&, int hitCount, const Deprecated::ScriptValue& sample) override final; 139 139 140 PassRefPtr<Inspector:: TypeBuilder::Debugger::Location> resolveBreakpoint(const String& breakpointIdentifier, JSC::SourceID, const ScriptBreakpoint&);140 PassRefPtr<Inspector::Protocol::Debugger::Location> resolveBreakpoint(const String& breakpointIdentifier, JSC::SourceID, const ScriptBreakpoint&); 141 141 bool assertPaused(ErrorString*); 142 142 void clearDebuggerBreakpointState(); -
trunk/Source/JavaScriptCore/inspector/agents/InspectorProfilerAgent.cpp
r167530 r172930 85 85 } 86 86 87 PassRefPtr< TypeBuilder::Profiler::ProfileHeader> InspectorProfilerAgent::createProfileHeader(const JSC::Profile& profile)88 { 89 return TypeBuilder::Profiler::ProfileHeader::create()90 .setTypeId( TypeBuilder::Profiler::ProfileHeader::TypeId::CPU)87 PassRefPtr<Protocol::Profiler::ProfileHeader> InspectorProfilerAgent::createProfileHeader(const JSC::Profile& profile) 88 { 89 return Protocol::Profiler::ProfileHeader::create() 90 .setTypeId(Protocol::Profiler::ProfileHeader::TypeId::CPU) 91 91 .setUid(profile.uid()) 92 92 .setTitle(profile.title()) … … 132 132 } 133 133 134 void InspectorProfilerAgent::getProfileHeaders(ErrorString*, RefPtr< TypeBuilder::Array<TypeBuilder::Profiler::ProfileHeader>>& headers)134 void InspectorProfilerAgent::getProfileHeaders(ErrorString*, RefPtr<Protocol::Array<Protocol::Profiler::ProfileHeader>>& headers) 135 135 { 136 136 m_profileHeadersRequested = true; 137 headers = TypeBuilder::Array<TypeBuilder::Profiler::ProfileHeader>::create();137 headers = Protocol::Array<Protocol::Profiler::ProfileHeader>::create(); 138 138 139 139 for (auto& profile : m_profiles.values()) … … 141 141 } 142 142 143 static PassRefPtr< TypeBuilder::Profiler::CPUProfileNodeCall> buildInspectorObject(const JSC::ProfileNode::Call& call)144 { 145 RefPtr< TypeBuilder::Profiler::CPUProfileNodeCall> result = TypeBuilder::Profiler::CPUProfileNodeCall::create()143 static PassRefPtr<Protocol::Profiler::CPUProfileNodeCall> buildInspectorObject(const JSC::ProfileNode::Call& call) 144 { 145 RefPtr<Protocol::Profiler::CPUProfileNodeCall> result = Protocol::Profiler::CPUProfileNodeCall::create() 146 146 .setStartTime(call.startTime()) 147 147 .setTotalTime(call.totalTime()); … … 149 149 } 150 150 151 static PassRefPtr< TypeBuilder::Profiler::CPUProfileNode> buildInspectorObject(const JSC::ProfileNode* node)152 { 153 RefPtr< TypeBuilder::Array<TypeBuilder::Profiler::CPUProfileNodeCall>> calls = TypeBuilder::Array<TypeBuilder::Profiler::CPUProfileNodeCall>::create();151 static PassRefPtr<Protocol::Profiler::CPUProfileNode> buildInspectorObject(const JSC::ProfileNode* node) 152 { 153 RefPtr<Protocol::Array<Protocol::Profiler::CPUProfileNodeCall>> calls = Protocol::Array<Protocol::Profiler::CPUProfileNodeCall>::create(); 154 154 for (const JSC::ProfileNode::Call& call : node->calls()) 155 155 calls->addItem(buildInspectorObject(call)); 156 156 157 RefPtr< TypeBuilder::Profiler::CPUProfileNode> result = TypeBuilder::Profiler::CPUProfileNode::create()157 RefPtr<Protocol::Profiler::CPUProfileNode> result = Protocol::Profiler::CPUProfileNode::create() 158 158 .setId(node->id()) 159 159 .setCalls(calls.release()); … … 169 169 170 170 if (!node->children().isEmpty()) { 171 RefPtr< TypeBuilder::Array<TypeBuilder::Profiler::CPUProfileNode>> children = TypeBuilder::Array<TypeBuilder::Profiler::CPUProfileNode>::create();171 RefPtr<Protocol::Array<Protocol::Profiler::CPUProfileNode>> children = Protocol::Array<Protocol::Profiler::CPUProfileNode>::create(); 172 172 for (RefPtr<JSC::ProfileNode> profileNode : node->children()) 173 173 children->addItem(buildInspectorObject(profileNode.get())); … … 178 178 } 179 179 180 PassRefPtr< TypeBuilder::Profiler::CPUProfile> InspectorProfilerAgent::buildProfileInspectorObject(const JSC::Profile* profile)181 { 182 RefPtr< TypeBuilder::Array<TypeBuilder::Profiler::CPUProfileNode>> rootNodes = TypeBuilder::Array<TypeBuilder::Profiler::CPUProfileNode>::create();180 PassRefPtr<Protocol::Profiler::CPUProfile> InspectorProfilerAgent::buildProfileInspectorObject(const JSC::Profile* profile) 181 { 182 RefPtr<Protocol::Array<Protocol::Profiler::CPUProfileNode>> rootNodes = Protocol::Array<Protocol::Profiler::CPUProfileNode>::create(); 183 183 for (RefPtr<JSC::ProfileNode> profileNode : profile->head()->children()) 184 184 rootNodes->addItem(buildInspectorObject(profileNode.get())); 185 185 186 RefPtr< TypeBuilder::Profiler::CPUProfile> result = TypeBuilder::Profiler::CPUProfile::create()186 RefPtr<Protocol::Profiler::CPUProfile> result = Protocol::Profiler::CPUProfile::create() 187 187 .setRootNodes(rootNodes); 188 188 … … 193 193 } 194 194 195 void InspectorProfilerAgent::getCPUProfile(ErrorString* errorString, int rawUid, RefPtr< TypeBuilder::Profiler::CPUProfile>& profileObject)195 void InspectorProfilerAgent::getCPUProfile(ErrorString* errorString, int rawUid, RefPtr<Protocol::Profiler::CPUProfile>& profileObject) 196 196 { 197 197 unsigned uid = static_cast<unsigned>(rawUid); -
trunk/Source/JavaScriptCore/inspector/agents/InspectorProfilerAgent.h
r167530 r172930 69 69 virtual void clearProfiles(ErrorString*) override final { reset(); } 70 70 71 virtual void getProfileHeaders(ErrorString*, RefPtr< TypeBuilder::Array<TypeBuilder::Profiler::ProfileHeader>>&) override final;72 virtual void getCPUProfile(ErrorString*, int uid, RefPtr< TypeBuilder::Profiler::CPUProfile>&) override final;71 virtual void getProfileHeaders(ErrorString*, RefPtr<Protocol::Array<Protocol::Profiler::ProfileHeader>>&) override final; 72 virtual void getCPUProfile(ErrorString*, int uid, RefPtr<Protocol::Profiler::CPUProfile>&) override final; 73 73 virtual void removeProfile(ErrorString*, const String& type, int uid) override final; 74 74 75 static PassRefPtr< TypeBuilder::Profiler::CPUProfile> buildProfileInspectorObject(const JSC::Profile*);75 static PassRefPtr<Protocol::Profiler::CPUProfile> buildProfileInspectorObject(const JSC::Profile*); 76 76 77 77 enum ShouldRecompile { SkipRecompile, Recompile }; … … 101 101 String getUserInitiatedProfileName(); 102 102 103 PassRefPtr< TypeBuilder::Profiler::ProfileHeader> createProfileHeader(const JSC::Profile&);103 PassRefPtr<Protocol::Profiler::ProfileHeader> createProfileHeader(const JSC::Profile&); 104 104 105 105 std::unique_ptr<InspectorProfilerFrontendDispatcher> m_frontendDispatcher; -
trunk/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.cpp
r172820 r172930 81 81 } 82 82 83 static PassRefPtr<Inspector:: TypeBuilder::Runtime::ErrorRange> buildErrorRangeObject(const JSTokenLocation& tokenLocation)84 { 85 RefPtr<Inspector:: TypeBuilder::Runtime::ErrorRange> result = Inspector::TypeBuilder::Runtime::ErrorRange::create()83 static PassRefPtr<Inspector::Protocol::Runtime::ErrorRange> buildErrorRangeObject(const JSTokenLocation& tokenLocation) 84 { 85 RefPtr<Inspector::Protocol::Runtime::ErrorRange> result = Inspector::Protocol::Runtime::ErrorRange::create() 86 86 .setStartOffset(tokenLocation.startOffset) 87 87 .setEndOffset(tokenLocation.endOffset); … … 89 89 } 90 90 91 void InspectorRuntimeAgent::parse(ErrorString*, const String& expression, Inspector:: TypeBuilder::Runtime::SyntaxErrorType* result, Inspector::TypeBuilder::OptOutput<String>* message, RefPtr<Inspector::TypeBuilder::Runtime::ErrorRange>& range)91 void InspectorRuntimeAgent::parse(ErrorString*, const String& expression, Inspector::Protocol::Runtime::SyntaxErrorType* result, Inspector::Protocol::OptOutput<String>* message, RefPtr<Inspector::Protocol::Runtime::ErrorRange>& range) 92 92 { 93 93 VM& vm = globalVM(); … … 99 99 switch (error.m_syntaxErrorType) { 100 100 case ParserError::SyntaxErrorNone: 101 *result = Inspector:: TypeBuilder::Runtime::SyntaxErrorType::None;101 *result = Inspector::Protocol::Runtime::SyntaxErrorType::None; 102 102 break; 103 103 case ParserError::SyntaxErrorIrrecoverable: 104 *result = Inspector:: TypeBuilder::Runtime::SyntaxErrorType::Irrecoverable;104 *result = Inspector::Protocol::Runtime::SyntaxErrorType::Irrecoverable; 105 105 break; 106 106 case ParserError::SyntaxErrorUnterminatedLiteral: 107 *result = Inspector:: TypeBuilder::Runtime::SyntaxErrorType::UnterminatedLiteral;107 *result = Inspector::Protocol::Runtime::SyntaxErrorType::UnterminatedLiteral; 108 108 break; 109 109 case ParserError::SyntaxErrorRecoverable: 110 *result = Inspector:: TypeBuilder::Runtime::SyntaxErrorType::Recoverable;110 *result = Inspector::Protocol::Runtime::SyntaxErrorType::Recoverable; 111 111 break; 112 112 } … … 118 118 } 119 119 120 void InspectorRuntimeAgent::evaluate(ErrorString* errorString, const String& expression, const String* const objectGroup, const bool* const includeCommandLineAPI, const bool* const doNotPauseOnExceptionsAndMuteConsole, const int* executionContextId, const bool* const returnByValue, const bool* generatePreview, RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject>& result, Inspector::TypeBuilder::OptOutput<bool>* wasThrown)120 void InspectorRuntimeAgent::evaluate(ErrorString* errorString, const String& expression, const String* const objectGroup, const bool* const includeCommandLineAPI, const bool* const doNotPauseOnExceptionsAndMuteConsole, const int* executionContextId, const bool* const returnByValue, const bool* generatePreview, RefPtr<Inspector::Protocol::Runtime::RemoteObject>& result, Inspector::Protocol::OptOutput<bool>* wasThrown) 121 121 { 122 122 InjectedScript injectedScript = injectedScriptForEval(errorString, executionContextId); … … 138 138 } 139 139 140 void InspectorRuntimeAgent::callFunctionOn(ErrorString* errorString, const String& objectId, const String& expression, const RefPtr<InspectorArray>* const optionalArguments, const bool* const doNotPauseOnExceptionsAndMuteConsole, const bool* const returnByValue, const bool* generatePreview, RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject>& result, Inspector::TypeBuilder::OptOutput<bool>* wasThrown)140 void InspectorRuntimeAgent::callFunctionOn(ErrorString* errorString, const String& objectId, const String& expression, const RefPtr<InspectorArray>* const optionalArguments, const bool* const doNotPauseOnExceptionsAndMuteConsole, const bool* const returnByValue, const bool* generatePreview, RefPtr<Inspector::Protocol::Runtime::RemoteObject>& result, Inspector::Protocol::OptOutput<bool>* wasThrown) 141 141 { 142 142 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptForObjectId(objectId); … … 164 164 } 165 165 166 void InspectorRuntimeAgent::getProperties(ErrorString* errorString, const String& objectId, const bool* const ownProperties, RefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Runtime::PropertyDescriptor>>& result, RefPtr<Inspector::TypeBuilder::Array<Inspector::TypeBuilder::Runtime::InternalPropertyDescriptor>>& internalProperties)166 void InspectorRuntimeAgent::getProperties(ErrorString* errorString, const String& objectId, const bool* const ownProperties, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::PropertyDescriptor>>& result, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::InternalPropertyDescriptor>>& internalProperties) 167 167 { 168 168 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptForObjectId(objectId); … … 198 198 } 199 199 200 void InspectorRuntimeAgent::getRuntimeTypesForVariablesAtOffsets(ErrorString* errorString, const RefPtr<Inspector::InspectorArray>& locations, RefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Runtime::TypeDescription>>& typeDescriptions)200 void InspectorRuntimeAgent::getRuntimeTypesForVariablesAtOffsets(ErrorString* errorString, const RefPtr<Inspector::InspectorArray>& locations, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::TypeDescription>>& typeDescriptions) 201 201 { 202 202 static const bool verbose = false; 203 203 VM& vm = globalVM(); 204 typeDescriptions = Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Runtime::TypeDescription>::create();204 typeDescriptions = Inspector::Protocol::Array<Inspector::Protocol::Runtime::TypeDescription>::create(); 205 205 if (!vm.typeProfiler()) { 206 206 *errorString = ASCIILiteral("The VM does not currently have Type Information."); … … 226 226 location->getNumber(ASCIILiteral("divot"), &divot); 227 227 228 RefPtr<Inspector:: TypeBuilder::Runtime::TypeDescription> typeDescription = Inspector::TypeBuilder::Runtime::TypeDescription::create();228 RefPtr<Inspector::Protocol::Runtime::TypeDescription> typeDescription = Inspector::Protocol::Runtime::TypeDescription::create(); 229 229 bool okay; 230 230 vm.typeProfiler()->getTypesForVariableAtOffsetForInspector(static_cast<TypeProfilerSearchDescriptor>(descriptor), divot, sourceIDAsString.toIntPtrStrict(&okay), typeDescription); -
trunk/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.h
r172820 r172930 62 62 virtual void enable(ErrorString*) override { m_enabled = true; } 63 63 virtual void disable(ErrorString*) override { m_enabled = false; } 64 virtual void parse(ErrorString*, const String& expression, Inspector:: TypeBuilder::Runtime::SyntaxErrorType* result, Inspector::TypeBuilder::OptOutput<String>* message, RefPtr<Inspector::TypeBuilder::Runtime::ErrorRange>&) override final;65 virtual void evaluate(ErrorString*, const String& expression, const String* objectGroup, const bool* includeCommandLineAPI, const bool* doNotPauseOnExceptionsAndMuteConsole, const int* executionContextId, const bool* returnByValue, const bool* generatePreview, RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject>& result, Inspector::TypeBuilder::OptOutput<bool>* wasThrown) override final;66 virtual void callFunctionOn(ErrorString*, const String& objectId, const String& expression, const RefPtr<Inspector::InspectorArray>* optionalArguments, const bool* doNotPauseOnExceptionsAndMuteConsole, const bool* returnByValue, const bool* generatePreview, RefPtr<Inspector:: TypeBuilder::Runtime::RemoteObject>& result, Inspector::TypeBuilder::OptOutput<bool>* wasThrown) override final;64 virtual void parse(ErrorString*, const String& expression, Inspector::Protocol::Runtime::SyntaxErrorType* result, Inspector::Protocol::OptOutput<String>* message, RefPtr<Inspector::Protocol::Runtime::ErrorRange>&) override final; 65 virtual void evaluate(ErrorString*, const String& expression, const String* objectGroup, const bool* includeCommandLineAPI, const bool* doNotPauseOnExceptionsAndMuteConsole, const int* executionContextId, const bool* returnByValue, const bool* generatePreview, RefPtr<Inspector::Protocol::Runtime::RemoteObject>& result, Inspector::Protocol::OptOutput<bool>* wasThrown) override final; 66 virtual void callFunctionOn(ErrorString*, const String& objectId, const String& expression, const RefPtr<Inspector::InspectorArray>* optionalArguments, const bool* doNotPauseOnExceptionsAndMuteConsole, const bool* returnByValue, const bool* generatePreview, RefPtr<Inspector::Protocol::Runtime::RemoteObject>& result, Inspector::Protocol::OptOutput<bool>* wasThrown) override final; 67 67 virtual void releaseObject(ErrorString*, const ErrorString& objectId) override final; 68 virtual void getProperties(ErrorString*, const String& objectId, const bool* ownProperties, RefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Runtime::PropertyDescriptor>>& result, RefPtr<Inspector::TypeBuilder::Array<Inspector::TypeBuilder::Runtime::InternalPropertyDescriptor>>& internalProperties) override final;68 virtual void getProperties(ErrorString*, const String& objectId, const bool* ownProperties, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::PropertyDescriptor>>& result, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::InternalPropertyDescriptor>>& internalProperties) override final; 69 69 virtual void releaseObjectGroup(ErrorString*, const String& objectGroup) override final; 70 70 virtual void run(ErrorString*) override; 71 virtual void getRuntimeTypesForVariablesAtOffsets(ErrorString*, const RefPtr<Inspector::InspectorArray>& locations, RefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Runtime::TypeDescription>>&) override;71 virtual void getRuntimeTypesForVariablesAtOffsets(ErrorString*, const RefPtr<Inspector::InspectorArray>& locations, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::TypeDescription>>&) override; 72 72 virtual void enableTypeProfiler(ErrorString*) override; 73 73 virtual void disableTypeProfiler(ErrorString*) override; -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/__init__.py
r172655 r172930 9 9 from generate_frontend_dispatcher_header import * 10 10 from generate_frontend_dispatcher_implementation import * 11 from generate_ type_builder_header import *12 from generate_ type_builder_implementation import *11 from generate_protocol_types_header import * 12 from generate_protocol_types_implementation import * -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_backend_dispatcher_header.py
r172655 r172930 50 50 def generate_output(self): 51 51 headers = [ 52 '"Inspector%s TypeBuilders.h"' % self.model().framework.setting('prefix'),52 '"Inspector%sProtocolTypes.h"' % self.model().framework.setting('prefix'), 53 53 '<inspector/InspectorBackendDispatcher.h>', 54 54 '<wtf/PassRefPtr.h>', -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_backend_dispatcher_implementation.py
r172655 r172930 149 149 out_parameter_assignments.append(' jsonMessage->%(keyedSetMethod)s(ASCIILiteral("%(parameterName)s"), %(parameterName)s);' % param_args) 150 150 elif parameter.type.is_enum(): 151 out_parameter_assignments.append(' jsonMessage->%(keyedSetMethod)s(ASCIILiteral("%(parameterName)s"), Inspector:: TypeBuilder::get%(frameworkPrefix)sEnumConstantValue(%(parameterName)s));' % param_args)151 out_parameter_assignments.append(' jsonMessage->%(keyedSetMethod)s(ASCIILiteral("%(parameterName)s"), Inspector::Protocol::get%(frameworkPrefix)sEnumConstantValue(%(parameterName)s));' % param_args) 152 152 else: 153 153 out_parameter_assignments.append(' jsonMessage->%(keyedSetMethod)s(ASCIILiteral("%(parameterName)s"), %(parameterName)s);' % param_args) … … 216 216 out_parameter_assignments.append(' result->%(keyedSetMethod)s(ASCIILiteral("%(parameterName)s"), out_%(parameterName)s);' % param_args) 217 217 elif parameter.type.is_enum(): 218 out_parameter_assignments.append(' result->%(keyedSetMethod)s(ASCIILiteral("%(parameterName)s"), Inspector:: TypeBuilder::get%(frameworkPrefix)sEnumConstantValue(out_%(parameterName)s));' % param_args)218 out_parameter_assignments.append(' result->%(keyedSetMethod)s(ASCIILiteral("%(parameterName)s"), Inspector::Protocol::get%(frameworkPrefix)sEnumConstantValue(out_%(parameterName)s));' % param_args) 219 219 else: 220 220 out_parameter_assignments.append(' result->%(keyedSetMethod)s(ASCIILiteral("%(parameterName)s"), out_%(parameterName)s);' % param_args) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_frontend_dispatcher_header.py
r172655 r172930 50 50 def generate_output(self): 51 51 headers = [ 52 '"Inspector%s TypeBuilders.h"' % self.model().framework.setting('prefix'),52 '"Inspector%sProtocolTypes.h"' % self.model().framework.setting('prefix'), 53 53 '<inspector/InspectorFrontendChannel.h>', 54 54 '<inspector/InspectorValues.h>', -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_frontend_dispatcher_implementation.py
r172655 r172930 84 84 if parameter.type.is_enum(): 85 85 framework_prefix = self.model().framework.setting('prefix') 86 parameter_value = 'Inspector:: TypeBuilder::get%sEnumConstantValue(%s)' % (framework_prefix, parameter_value)86 parameter_value = 'Inspector::Protocol::get%sEnumConstantValue(%s)' % (framework_prefix, parameter_value) 87 87 88 88 parameter_args = { -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_protocol_types_header.py
r172929 r172930 38 38 39 39 40 class TypeBuilderHeaderGenerator(Generator):40 class ProtocolTypesHeaderGenerator(Generator): 41 41 def __init__(self, model, input_filepath): 42 42 Generator.__init__(self, model, input_filepath) 43 43 44 44 def output_filename(self): 45 return "Inspector%s TypeBuilders.h" % self.model().framework.setting('prefix')45 return "Inspector%sProtocolTypes.h" % self.model().framework.setting('prefix') 46 46 47 47 def generate_output(self): … … 50 50 51 51 headers = set([ 52 '<inspector/Inspector TypeBuilder.h>',52 '<inspector/InspectorProtocolTypes.h>', 53 53 '<wtf/Assertions.h>', 54 54 '<wtf/PassRefPtr.h>' … … 56 56 57 57 if self.model().framework is not Frameworks.JavaScriptCore: 58 headers.add('<inspector/InspectorJS TypeBuilders.h>')58 headers.add('<inspector/InspectorJSProtocolTypes.h>') 59 59 60 60 export_macro = self.model().framework.setting('export_macro', None) … … 76 76 sections.append(self.generate_license()) 77 77 sections.append(Template(Templates.CppHeaderPrelude).substitute(None, **header_args)) 78 sections.append('namespace TypeBuilder{')78 sections.append('namespace Protocol {') 79 79 sections.append(self._generate_forward_declarations(domains)) 80 80 sections.append(self._generate_typedefs(domains)) … … 89 89 sections.extend(filter(lambda section: len(section) > 0, builder_sections)) 90 90 sections.append(self._generate_forward_declarations_for_binding_traits()) 91 sections.append('} // namespace TypeBuilder')91 sections.append('} // namespace Protocol') 92 92 sections.append(Template(Templates.CppHeaderPostlude).substitute(None, **header_args)) 93 93 return "\n\n".join(sections) … … 209 209 } 210 210 211 lines.append(Template(Templates. TypeBuilderDeclarationPrelude).substitute(None, **builder_args))211 lines.append(Template(Templates.ProtocolObjectBuilderDeclarationPrelude).substitute(None, **builder_args)) 212 212 for type_member in required_members: 213 213 lines.append(self._generate_builder_setter_for_member(type_member, domain)) 214 lines.append(Template(Templates. TypeBuilderDeclarationPostlude).substitute(None, **builder_args))214 lines.append(Template(Templates.ProtocolObjectBuilderDeclarationPostlude).substitute(None, **builder_args)) 215 215 for member in optional_members: 216 216 lines.append(self._generate_unchecked_setter_for_member(member, domain)) … … 286 286 287 287 if isinstance(type_member.type, EnumType): 288 lines.append(' m_result->%(keyedSet)s(ASCIILiteral("%(name)s"), Inspector:: TypeBuilder::get%(frameworkPrefix)sEnumConstantValue(static_cast<int>(value)));' % setter_args)288 lines.append(' m_result->%(keyedSet)s(ASCIILiteral("%(name)s"), Inspector::Protocol::get%(frameworkPrefix)sEnumConstantValue(static_cast<int>(value)));' % setter_args) 289 289 else: 290 290 lines.append(' m_result->%(keyedSet)s(ASCIILiteral("%(name)s"), value);' % setter_args) … … 307 307 lines.append(' {') 308 308 if isinstance(type_member.type, EnumType): 309 lines.append(' InspectorObjectBase::%(keyedSet)s(ASCIILiteral("%(name)s"), Inspector:: TypeBuilder::get%(frameworkPrefix)sEnumConstantValue(static_cast<int>(value)));' % setter_args)309 lines.append(' InspectorObjectBase::%(keyedSet)s(ASCIILiteral("%(name)s"), Inspector::Protocol::get%(frameworkPrefix)sEnumConstantValue(static_cast<int>(value)));' % setter_args) 310 310 else: 311 311 lines.append(' InspectorObjectBase::%(keyedSet)s(ASCIILiteral("%(name)s"), value);' % setter_args) … … 323 323 for type_member in type_declaration.type_members: 324 324 if isinstance(type_member.type, EnumType): 325 type_arguments.append((Generator. type_builder_string_for_type_member(type_member, type_declaration), False))325 type_arguments.append((Generator.protocol_type_string_for_type_member(type_member, type_declaration), False)) 326 326 327 327 if isinstance(type_declaration.type, ObjectType): 328 type_arguments.append((Generator. type_builder_string_for_type(type_declaration.type), Generator.type_needs_runtime_casts(type_declaration.type)))328 type_arguments.append((Generator.protocol_type_string_for_type(type_declaration.type), Generator.type_needs_runtime_casts(type_declaration.type))) 329 329 330 330 struct_keywords = ['struct'] -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_protocol_types_implementation.py
r172929 r172930 37 37 38 38 39 class TypeBuilderImplementationGenerator(Generator):39 class ProtocolTypesImplementationGenerator(Generator): 40 40 def __init__(self, model, input_filepath): 41 41 Generator.__init__(self, model, input_filepath) 42 42 43 43 def output_filename(self): 44 return "Inspector%s TypeBuilders.cpp" % self.model().framework.setting('prefix')44 return "Inspector%sProtocolTypes.cpp" % self.model().framework.setting('prefix') 45 45 46 46 def generate_output(self): … … 51 51 52 52 header_args = { 53 'primaryInclude': '"Inspector%s TypeBuilders.h"' % self.model().framework.setting('prefix'),53 'primaryInclude': '"Inspector%sProtocolTypes.h"' % self.model().framework.setting('prefix'), 54 54 'secondaryIncludes': "\n".join(['#include %s' % header for header in secondary_headers]), 55 55 'inputFilename': self._input_filepath … … 59 59 sections.append(self.generate_license()) 60 60 sections.append(Template(Templates.CppImplementationPrelude).substitute(None, **header_args)) 61 sections.append('namespace TypeBuilder{')61 sections.append('namespace Protocol {') 62 62 sections.append(self._generate_enum_mapping()) 63 63 sections.append(self._generate_open_field_names()) 64 64 builder_sections = map(self._generate_builders_for_domain, domains) 65 65 sections.extend(filter(lambda section: len(section) > 0, builder_sections)) 66 sections.append('} // namespace TypeBuilder')66 sections.append('} // namespace Protocol') 67 67 sections.append(Template(Templates.CppImplementationPostlude).substitute(None, **header_args)) 68 68 … … 90 90 for type_declaration in filter(lambda decl: Generator.type_has_open_fields(decl.type), domain.type_declarations): 91 91 for type_member in sorted(type_declaration.type_members, key=lambda member: member.member_name): 92 field_name = '::'.join(['Inspector', ' TypeBuilder', domain.domain_name, ucfirst(type_declaration.type_name), ucfirst(type_member.member_name)])92 field_name = '::'.join(['Inspector', 'Protocol', domain.domain_name, ucfirst(type_declaration.type_name), ucfirst(type_member.member_name)]) 93 93 lines.append('const char* %s = "%s";' % (field_name, type_member.member_name)) 94 94 … … 113 113 def _generate_runtime_cast_for_object_declaration(self, object_declaration): 114 114 args = { 115 'objectType': Generator. type_builder_string_for_type(object_declaration.type)115 'objectType': Generator.protocol_type_string_for_type(object_declaration.type) 116 116 } 117 return Template(Templates. TypeBuilderObjectRuntimeCast).substitute(None, **args)117 return Template(Templates.ProtocolObjectRuntimeCast).substitute(None, **args) 118 118 119 119 def _generate_assertion_for_object_declaration(self, object_declaration): … … 124 124 125 125 lines.append('#if !ASSERT_DISABLED') 126 lines.append('void BindingTraits<%s>::assertValueHasExpectedType(Inspector::InspectorValue* value)' % (Generator. type_builder_string_for_type(object_declaration.type)))126 lines.append('void BindingTraits<%s>::assertValueHasExpectedType(Inspector::InspectorValue* value)' % (Generator.protocol_type_string_for_type(object_declaration.type))) 127 127 lines.append("""{ 128 128 RefPtr<InspectorObject> object; -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generator.py
r172686 r172930 268 268 # Generate type representations for various situations. 269 269 @staticmethod 270 def type_builder_string_for_type(_type):270 def protocol_type_string_for_type(_type): 271 271 if isinstance(_type, ObjectType) and len(_type.members) == 0: 272 272 return 'Inspector::InspectorObject' 273 273 if isinstance(_type, (ObjectType, AliasedType, EnumType)): 274 return 'Inspector:: TypeBuilder::%s::%s' % (_type.type_domain().domain_name, _type.raw_name())274 return 'Inspector::Protocol::%s::%s' % (_type.type_domain().domain_name, _type.raw_name()) 275 275 if isinstance(_type, ArrayType): 276 return 'Inspector:: TypeBuilder::Array<%s>' % Generator.type_builder_string_for_type(_type.element_type)276 return 'Inspector::Protocol::Array<%s>' % Generator.protocol_type_string_for_type(_type.element_type) 277 277 if isinstance(_type, PrimitiveType): 278 278 return Generator.cpp_name_for_primitive_type(_type) 279 279 280 280 @staticmethod 281 def type_builder_string_for_type_member(type_member, object_declaration):281 def protocol_type_string_for_type_member(type_member, object_declaration): 282 282 if isinstance(type_member.type, EnumType) and type_member.type.is_anonymous: 283 return '::'.join([Generator. type_builder_string_for_type(object_declaration.type), ucfirst(type_member.member_name)])283 return '::'.join([Generator.protocol_type_string_for_type(object_declaration.type), ucfirst(type_member.member_name)]) 284 284 else: 285 return Generator. type_builder_string_for_type(type_member.type)285 return Generator.protocol_type_string_for_type(type_member.type) 286 286 287 287 @staticmethod … … 322 322 def type_string_for_type_with_name(_type, type_name, is_optional): 323 323 if isinstance(_type, (ArrayType, ObjectType)): 324 return 'PassRefPtr<%s>' % Generator. type_builder_string_for_type(_type)325 if isinstance(_type, AliasedType): 326 builder_type = Generator. type_builder_string_for_type(_type)324 return 'PassRefPtr<%s>' % Generator.protocol_type_string_for_type(_type) 325 if isinstance(_type, AliasedType): 326 builder_type = Generator.protocol_type_string_for_type(_type) 327 327 if is_optional: 328 328 return 'const %s* const' % builder_type … … 349 349 enum_type_name = ucfirst(type_name) 350 350 else: 351 enum_type_name = 'Inspector:: TypeBuilder::%s::%s' % (_type.type_domain().domain_name, _type.raw_name())351 enum_type_name = 'Inspector::Protocol::%s::%s' % (_type.type_domain().domain_name, _type.raw_name()) 352 352 353 353 if is_optional: … … 364 364 365 365 if isinstance(_type, (ObjectType, ArrayType)): 366 return 'RefPtr<%s>&' % Generator. type_builder_string_for_type(_type)366 return 'RefPtr<%s>&' % Generator.protocol_type_string_for_type(_type) 367 367 if isinstance(_type, PrimitiveType): 368 368 cpp_name = Generator.cpp_name_for_primitive_type(_type) 369 369 if parameter.is_optional: 370 return "Inspector:: TypeBuilder::OptOutput<%s>*" % cpp_name370 return "Inspector::Protocol::OptOutput<%s>*" % cpp_name 371 371 else: 372 372 return '%s*' % cpp_name … … 375 375 return 'Inspector%sBackendDispatcherHandler::%s*' % (_type.type_domain().domain_name, ucfirst(parameter.parameter_name)) 376 376 else: 377 return 'Inspector:: TypeBuilder::%s::%s*' % (_type.type_domain().domain_name, _type.raw_name())377 return 'Inspector::Protocol::%s::%s*' % (_type.type_domain().domain_name, _type.raw_name()) 378 378 379 379 raise ValueError("unknown formal out parameter type.") … … 390 390 391 391 if isinstance(_type, (ObjectType, ArrayType)): 392 return 'PassRefPtr<%s>' % Generator. type_builder_string_for_type(_type)392 return 'PassRefPtr<%s>' % Generator.protocol_type_string_for_type(_type) 393 393 if isinstance(_type, PrimitiveType): 394 394 cpp_name = Generator.cpp_name_for_primitive_type(_type) 395 395 if parameter.is_optional: 396 return "Inspector:: TypeBuilder::OptOutput<%s>*" % cpp_name396 return "Inspector::Protocol::OptOutput<%s>*" % cpp_name 397 397 elif _type.qualified_name() in ['integer', 'number']: 398 398 return Generator.cpp_name_for_primitive_type(_type) … … 426 426 return "RefPtr<%s>" % Generator.cpp_name_for_primitive_type(_type) 427 427 elif parameter.is_optional and _type.qualified_name() not in ['boolean', 'string', 'integer']: 428 return "Inspector:: TypeBuilder::OptOutput<%s>" % cpp_name428 return "Inspector::Protocol::OptOutput<%s>" % cpp_name 429 429 else: 430 430 return cpp_name … … 434 434 _type = parameter.type 435 435 if isinstance(_type, (ArrayType, ObjectType)): 436 return 'RefPtr<%s>' % Generator. type_builder_string_for_type(_type)437 if isinstance(_type, AliasedType): 438 builder_type = Generator. type_builder_string_for_type(_type)436 return 'RefPtr<%s>' % Generator.protocol_type_string_for_type(_type) 437 if isinstance(_type, AliasedType): 438 builder_type = Generator.protocol_type_string_for_type(_type) 439 439 if parameter.is_optional: 440 return "Inspector:: TypeBuilder::OptOutput<%s>" % builder_type440 return "Inspector::Protocol::OptOutput<%s>" % builder_type 441 441 return '%s' % builder_type 442 442 if isinstance(_type, PrimitiveType): 443 443 cpp_name = Generator.cpp_name_for_primitive_type(_type) 444 444 if parameter.is_optional: 445 return "Inspector:: TypeBuilder::OptOutput<%s>" % cpp_name445 return "Inspector::Protocol::OptOutput<%s>" % cpp_name 446 446 else: 447 447 return cpp_name … … 450 450 return 'Inspector%sBackendDispatcherHandler::%s' % (_type.type_domain().domain_name, ucfirst(parameter.parameter_name)) 451 451 else: 452 return 'Inspector:: TypeBuilder::%s::%s' % (_type.type_domain().domain_name, _type.raw_name())452 return 'Inspector::Protocol::%s::%s' % (_type.type_domain().domain_name, _type.raw_name()) 453 453 454 454 @staticmethod … … 456 456 457 457 def assertion_method_for_type(_type): 458 return 'BindingTraits<%s>::assertValueHasExpectedType' % Generator. type_builder_string_for_type(_type)458 return 'BindingTraits<%s>::assertValueHasExpectedType' % Generator.protocol_type_string_for_type(_type) 459 459 460 460 if isinstance(type_member.type, AliasedType): 461 461 return assertion_method_for_type(type_member.type.aliased_type) 462 462 if isinstance(type_member.type, EnumType) and type_member.type.is_anonymous: 463 return 'BindingTraits<%s>::assertValueHasExpectedType' % Generator. type_builder_string_for_type_member(type_member, object_declaration)463 return 'BindingTraits<%s>::assertValueHasExpectedType' % Generator.protocol_type_string_for_type_member(type_member, object_declaration) 464 464 465 465 return assertion_method_for_type(type_member.type) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generator_templates.py
r172655 r172930 207 207 };""") 208 208 209 TypeBuilderDeclarationPrelude = (209 ProtocolObjectBuilderDeclarationPrelude = ( 210 210 """ template<int STATE> 211 211 class Builder { … … 226 226 public:""") 227 227 228 TypeBuilderDeclarationPostlude = (228 ProtocolObjectBuilderDeclarationPostlude = ( 229 229 """ 230 230 operator RefPtr<${objectType}>& () … … 249 249 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 250 250 } 251 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;""")252 253 TypeBuilderObjectRuntimeCast = (251 typedef Inspector::Protocol::StructItemTraits ItemTraits;""") 252 253 ProtocolObjectRuntimeCast = ( 254 254 """PassRefPtr<${objectType}> BindingTraits<${objectType}>::runtimeCast(PassRefPtr<Inspector::InspectorValue> value) 255 255 { -
trunk/Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py
r172655 r172930 56 56 from generate_frontend_dispatcher_header import * 57 57 from generate_frontend_dispatcher_implementation import * 58 from generate_ type_builder_header import *59 from generate_ type_builder_implementation import *58 from generate_protocol_types_header import * 59 from generate_protocol_types_implementation import * 60 60 61 61 … … 124 124 generators.append(FrontendDispatcherHeaderGenerator(protocol, primary_specification_filepath)) 125 125 generators.append(FrontendDispatcherImplementationGenerator(protocol, primary_specification_filepath)) 126 generators.append( TypeBuilderHeaderGenerator(protocol, primary_specification_filepath))127 generators.append( TypeBuilderImplementationGenerator(protocol, primary_specification_filepath))126 generators.append(ProtocolTypesHeaderGenerator(protocol, primary_specification_filepath)) 127 generators.append(ProtocolTypesImplementationGenerator(protocol, primary_specification_filepath)) 128 128 129 129 single_output_file_contents = [] -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result
r172687 r172930 75 75 #if ENABLE(INSPECTOR) 76 76 77 #include "InspectorTest TypeBuilders.h"77 #include "InspectorTestProtocolTypes.h" 78 78 #include <inspector/InspectorBackendDispatcher.h> 79 79 #include <wtf/PassRefPtr.h> … … 100 100 Black = 6, 101 101 }; // enum class PrintColor 102 virtual void executeSQLSyncOptionalReturnValues(ErrorString*, int in_databaseId, const String& in_query, RefPtr<Inspector:: TypeBuilder::Array<String>>& opt_out_columnNames, Inspector::TypeBuilder::OptOutput<String>* opt_out_notes, Inspector::TypeBuilder::OptOutput<double>* opt_out_timestamp, Inspector::TypeBuilder::OptOutput<Inspector::InspectorObject>* opt_out_values, Inspector::TypeBuilder::OptOutput<Inspector::InspectorValue>* opt_out_payload, Inspector::TypeBuilder::OptOutput<int>* opt_out_databaseId, RefPtr<Inspector::TypeBuilder::Database::Error>& opt_out_sqlError, Inspector::TypeBuilder::Database::PrimaryColors* opt_out_screenColor, InspectorDatabaseBackendDispatcherHandler::PrintColor* opt_out_printColor) = 0;102 virtual void executeSQLSyncOptionalReturnValues(ErrorString*, int in_databaseId, const String& in_query, RefPtr<Inspector::Protocol::Array<String>>& opt_out_columnNames, Inspector::Protocol::OptOutput<String>* opt_out_notes, Inspector::Protocol::OptOutput<double>* opt_out_timestamp, Inspector::Protocol::OptOutput<Inspector::InspectorObject>* opt_out_values, Inspector::Protocol::OptOutput<Inspector::InspectorValue>* opt_out_payload, Inspector::Protocol::OptOutput<int>* opt_out_databaseId, RefPtr<Inspector::Protocol::Database::Error>& opt_out_sqlError, Inspector::Protocol::Database::PrimaryColors* opt_out_screenColor, InspectorDatabaseBackendDispatcherHandler::PrintColor* opt_out_printColor) = 0; 103 103 class ExecuteSQLAsyncOptionalReturnValuesCallback : public Inspector::InspectorBackendDispatcher::CallbackBase { 104 104 public: 105 105 ExecuteSQLAsyncOptionalReturnValuesCallback(PassRefPtr<Inspector::InspectorBackendDispatcher>, int id); 106 void sendSuccess(PassRefPtr<Inspector:: TypeBuilder::Array<String>> columnNames, Inspector::TypeBuilder::OptOutput<String>* notes, Inspector::TypeBuilder::OptOutput<double>* timestamp, Inspector::TypeBuilder::OptOutput<Inspector::InspectorObject>* values, Inspector::TypeBuilder::OptOutput<Inspector::InspectorValue>* payload, Inspector::TypeBuilder::OptOutput<int>* databaseId, PassRefPtr<Inspector::TypeBuilder::Database::Error> sqlError, Inspector::TypeBuilder::OptOutput<String>* screenColor, Inspector::TypeBuilder::OptOutput<String>* printColor);106 void sendSuccess(PassRefPtr<Inspector::Protocol::Array<String>> columnNames, Inspector::Protocol::OptOutput<String>* notes, Inspector::Protocol::OptOutput<double>* timestamp, Inspector::Protocol::OptOutput<Inspector::InspectorObject>* values, Inspector::Protocol::OptOutput<Inspector::InspectorValue>* payload, Inspector::Protocol::OptOutput<int>* databaseId, PassRefPtr<Inspector::Protocol::Database::Error> sqlError, Inspector::Protocol::OptOutput<String>* screenColor, Inspector::Protocol::OptOutput<String>* printColor); 107 107 }; 108 108 virtual void executeSQLAsyncOptionalReturnValues(ErrorString*, int in_databaseId, const String& in_query, PassRefPtr<ExecuteSQLAsyncOptionalReturnValuesCallback> callback) = 0; 109 virtual void executeSQLSync(ErrorString*, int in_databaseId, const String& in_query, RefPtr<Inspector:: TypeBuilder::Array<String>>& out_columnNames, String* out_notes, double* out_timestamp, Inspector::InspectorObject* out_values, Inspector::InspectorValue* out_payload, int* out_databaseId, RefPtr<Inspector::TypeBuilder::Database::Error>& out_sqlError, Inspector::TypeBuilder::Database::PrimaryColors* out_screenColor, InspectorDatabaseBackendDispatcherHandler::PrintColor* out_printColor) = 0;109 virtual void executeSQLSync(ErrorString*, int in_databaseId, const String& in_query, RefPtr<Inspector::Protocol::Array<String>>& out_columnNames, String* out_notes, double* out_timestamp, Inspector::InspectorObject* out_values, Inspector::InspectorValue* out_payload, int* out_databaseId, RefPtr<Inspector::Protocol::Database::Error>& out_sqlError, Inspector::Protocol::Database::PrimaryColors* out_screenColor, InspectorDatabaseBackendDispatcherHandler::PrintColor* out_printColor) = 0; 110 110 class ExecuteSQLAsyncCallback : public Inspector::InspectorBackendDispatcher::CallbackBase { 111 111 public: 112 112 ExecuteSQLAsyncCallback(PassRefPtr<Inspector::InspectorBackendDispatcher>, int id); 113 void sendSuccess(PassRefPtr<Inspector:: TypeBuilder::Array<String>> columnNames, const String& notes, double timestamp, Inspector::InspectorObject values, Inspector::InspectorValue payload, int databaseId, PassRefPtr<Inspector::TypeBuilder::Database::Error> sqlError, const String& screenColor, const String& printColor);113 void sendSuccess(PassRefPtr<Inspector::Protocol::Array<String>> columnNames, const String& notes, double timestamp, Inspector::InspectorObject values, Inspector::InspectorValue payload, int databaseId, PassRefPtr<Inspector::Protocol::Database::Error> sqlError, const String& screenColor, const String& printColor); 114 114 }; 115 115 virtual void executeSQLAsync(ErrorString*, int in_databaseId, const String& in_query, PassRefPtr<ExecuteSQLAsyncCallback> callback) = 0; … … 233 233 ErrorString error; 234 234 RefPtr<InspectorObject> result = InspectorObject::create(); 235 RefPtr<Inspector:: TypeBuilder::Array<String>> out_columnNames;236 Inspector:: TypeBuilder::OptOutput<String> out_notes;237 Inspector:: TypeBuilder::OptOutput<double> out_timestamp;238 Inspector:: TypeBuilder::OptOutput<Inspector::InspectorObject> out_values;239 Inspector:: TypeBuilder::OptOutput<Inspector::InspectorValue> out_payload;240 Inspector:: TypeBuilder::OptOutput<Inspector::TypeBuilder::Database::DatabaseId> out_databaseId;241 RefPtr<Inspector:: TypeBuilder::Database::Error> out_sqlError;242 Inspector:: TypeBuilder::Database::PrimaryColors out_screenColor;235 RefPtr<Inspector::Protocol::Array<String>> out_columnNames; 236 Inspector::Protocol::OptOutput<String> out_notes; 237 Inspector::Protocol::OptOutput<double> out_timestamp; 238 Inspector::Protocol::OptOutput<Inspector::InspectorObject> out_values; 239 Inspector::Protocol::OptOutput<Inspector::InspectorValue> out_payload; 240 Inspector::Protocol::OptOutput<Inspector::Protocol::Database::DatabaseId> out_databaseId; 241 RefPtr<Inspector::Protocol::Database::Error> out_sqlError; 242 Inspector::Protocol::Database::PrimaryColors out_screenColor; 243 243 InspectorDatabaseBackendDispatcherHandler::PrintColor out_printColor; 244 244 m_agent->executeSQLSyncOptionalReturnValues(&error, in_databaseId, in_query, out_columnNames, &out_notes, &out_timestamp, out_values, &out_payload, &out_databaseId, out_sqlError, &out_screenColor, &out_printColor); … … 269 269 InspectorDatabaseBackendDispatcherHandler::ExecuteSQLAsyncOptionalReturnValuesCallback::ExecuteSQLAsyncOptionalReturnValuesCallback(PassRefPtr<InspectorBackendDispatcher> backendDispatcher, int id) : Inspector::InspectorBackendDispatcher::CallbackBase(backendDispatcher, id) { } 270 270 271 void InspectorDatabaseBackendDispatcherHandler::ExecuteSQLAsyncOptionalReturnValuesCallback::sendSuccess(PassRefPtr<Inspector:: TypeBuilder::Array<String>> columnNames, Inspector::TypeBuilder::OptOutput<String>* notes, Inspector::TypeBuilder::OptOutput<double>* timestamp, Inspector::TypeBuilder::OptOutput<Inspector::InspectorObject>* values, Inspector::TypeBuilder::OptOutput<Inspector::InspectorValue>* payload, Inspector::TypeBuilder::OptOutput<int>* databaseId, PassRefPtr<Inspector::TypeBuilder::Database::Error> sqlError, Inspector::TypeBuilder::OptOutput<String>* screenColor, Inspector::TypeBuilder::OptOutput<String>* printColor)271 void InspectorDatabaseBackendDispatcherHandler::ExecuteSQLAsyncOptionalReturnValuesCallback::sendSuccess(PassRefPtr<Inspector::Protocol::Array<String>> columnNames, Inspector::Protocol::OptOutput<String>* notes, Inspector::Protocol::OptOutput<double>* timestamp, Inspector::Protocol::OptOutput<Inspector::InspectorObject>* values, Inspector::Protocol::OptOutput<Inspector::InspectorValue>* payload, Inspector::Protocol::OptOutput<int>* databaseId, PassRefPtr<Inspector::Protocol::Database::Error> sqlError, Inspector::Protocol::OptOutput<String>* screenColor, Inspector::Protocol::OptOutput<String>* printColor) 272 272 { 273 273 RefPtr<InspectorObject> jsonMessage = InspectorObject::create(); … … 335 335 ErrorString error; 336 336 RefPtr<InspectorObject> result = InspectorObject::create(); 337 RefPtr<Inspector:: TypeBuilder::Array<String>> out_columnNames;337 RefPtr<Inspector::Protocol::Array<String>> out_columnNames; 338 338 String out_notes; 339 339 double out_timestamp; 340 340 Inspector::InspectorObject out_values; 341 341 Inspector::InspectorValue out_payload; 342 Inspector:: TypeBuilder::Database::DatabaseId out_databaseId;343 RefPtr<Inspector:: TypeBuilder::Database::Error> out_sqlError;344 Inspector:: TypeBuilder::Database::PrimaryColors out_screenColor;342 Inspector::Protocol::Database::DatabaseId out_databaseId; 343 RefPtr<Inspector::Protocol::Database::Error> out_sqlError; 344 Inspector::Protocol::Database::PrimaryColors out_screenColor; 345 345 InspectorDatabaseBackendDispatcherHandler::PrintColor out_printColor; 346 346 m_agent->executeSQLSync(&error, in_databaseId, in_query, out_columnNames, &out_notes, &out_timestamp, out_values, &out_payload, &out_databaseId, out_sqlError, &out_screenColor, &out_printColor); … … 354 354 result->setNumber(ASCIILiteral("databaseId"), out_databaseId); 355 355 result->setObject(ASCIILiteral("sqlError"), out_sqlError); 356 result->setString(ASCIILiteral("screenColor"), Inspector:: TypeBuilder::getTestEnumConstantValue(out_screenColor));357 result->setString(ASCIILiteral("printColor"), Inspector:: TypeBuilder::getTestEnumConstantValue(out_printColor));356 result->setString(ASCIILiteral("screenColor"), Inspector::Protocol::getTestEnumConstantValue(out_screenColor)); 357 result->setString(ASCIILiteral("printColor"), Inspector::Protocol::getTestEnumConstantValue(out_printColor)); 358 358 } 359 359 m_backendDispatcher->sendResponse(callId, result.release(), error); … … 362 362 InspectorDatabaseBackendDispatcherHandler::ExecuteSQLAsyncCallback::ExecuteSQLAsyncCallback(PassRefPtr<InspectorBackendDispatcher> backendDispatcher, int id) : Inspector::InspectorBackendDispatcher::CallbackBase(backendDispatcher, id) { } 363 363 364 void InspectorDatabaseBackendDispatcherHandler::ExecuteSQLAsyncCallback::sendSuccess(PassRefPtr<Inspector:: TypeBuilder::Array<String>> columnNames, const String& notes, double timestamp, Inspector::InspectorObject values, Inspector::InspectorValue payload, int databaseId, PassRefPtr<Inspector::TypeBuilder::Database::Error> sqlError, const String& screenColor, const String& printColor)364 void InspectorDatabaseBackendDispatcherHandler::ExecuteSQLAsyncCallback::sendSuccess(PassRefPtr<Inspector::Protocol::Array<String>> columnNames, const String& notes, double timestamp, Inspector::InspectorObject values, Inspector::InspectorValue payload, int databaseId, PassRefPtr<Inspector::Protocol::Database::Error> sqlError, const String& screenColor, const String& printColor) 365 365 { 366 366 RefPtr<InspectorObject> jsonMessage = InspectorObject::create(); … … 372 372 jsonMessage->setNumber(ASCIILiteral("databaseId"), databaseId); 373 373 jsonMessage->setObject(ASCIILiteral("sqlError"), sqlError); 374 jsonMessage->setString(ASCIILiteral("screenColor"), Inspector:: TypeBuilder::getTestEnumConstantValue(screenColor));375 jsonMessage->setString(ASCIILiteral("printColor"), Inspector:: TypeBuilder::getTestEnumConstantValue(printColor));374 jsonMessage->setString(ASCIILiteral("screenColor"), Inspector::Protocol::getTestEnumConstantValue(screenColor)); 375 jsonMessage->setString(ASCIILiteral("printColor"), Inspector::Protocol::getTestEnumConstantValue(printColor)); 376 376 sendIfActive(jsonMessage, ErrorString()); 377 377 } … … 446 446 #if ENABLE(INSPECTOR) 447 447 448 #include "InspectorTest TypeBuilders.h"448 #include "InspectorTestProtocolTypes.h" 449 449 #include <inspector/InspectorFrontendChannel.h> 450 450 #include <inspector/InspectorValues.h> … … 509 509 ### End File: InspectorTestFrontendDispatchers.cpp 510 510 511 ### Begin File: InspectorTest TypeBuilders.h511 ### Begin File: InspectorTestProtocolTypes.h 512 512 /* 513 513 * Copyright (C) 2013 Google Inc. All rights reserved. … … 540 540 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 541 541 542 #ifndef InspectorTest TypeBuilders_h543 #define InspectorTest TypeBuilders_h542 #ifndef InspectorTestProtocolTypes_h 543 #define InspectorTestProtocolTypes_h 544 544 545 545 #if ENABLE(INSPECTOR) 546 546 547 #include <inspector/InspectorJS TypeBuilders.h>548 #include <inspector/Inspector TypeBuilder.h>547 #include <inspector/InspectorJSProtocolTypes.h> 548 #include <inspector/InspectorProtocolTypes.h> 549 549 #include <wtf/Assertions.h> 550 550 #include <wtf/PassRefPtr.h> … … 554 554 555 555 556 namespace TypeBuilder{556 namespace Protocol { 557 557 558 558 // Forward declarations. … … 655 655 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 656 656 } 657 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;657 typedef Inspector::Protocol::StructItemTraits ItemTraits; 658 658 }; 659 659 … … 663 663 664 664 665 } // namespace TypeBuilder665 } // namespace Protocol 666 666 667 667 } // namespace Inspector … … 669 669 #endif // ENABLE(INSPECTOR) 670 670 671 #endif // !defined(InspectorTest TypeBuilders_h)672 ### End File: InspectorTest TypeBuilders.h673 674 ### Begin File: InspectorTest TypeBuilders.cpp671 #endif // !defined(InspectorTestProtocolTypes_h) 672 ### End File: InspectorTestProtocolTypes.h 673 674 ### Begin File: InspectorTestProtocolTypes.cpp 675 675 /* 676 676 * Copyright (C) 2013 Google Inc. All rights reserved. … … 704 704 705 705 #include "config.h" 706 #include "InspectorTest TypeBuilders.h"706 #include "InspectorTestProtocolTypes.h" 707 707 708 708 #if ENABLE(INSPECTOR) … … 712 712 namespace Inspector { 713 713 714 namespace TypeBuilder{714 namespace Protocol { 715 715 716 716 static const char* const enum_constant_values[] = { … … 730 730 731 731 732 } // namespace TypeBuilder732 } // namespace Protocol 733 733 734 734 } // namespace Inspector … … 736 736 #endif // ENABLE(INSPECTOR) 737 737 738 ### End File: InspectorTest TypeBuilders.cpp738 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result
r172687 r172930 72 72 #if ENABLE(INSPECTOR) 73 73 74 #include "InspectorTest TypeBuilders.h"74 #include "InspectorTestProtocolTypes.h" 75 75 #include <inspector/InspectorBackendDispatcher.h> 76 76 #include <wtf/PassRefPtr.h> … … 97 97 Black = 6, 98 98 }; // enum class PrintColor 99 virtual void executeAllOptionalParameters(ErrorString*, const RefPtr<Inspector::InspectorArray>* in_columnNames, const String* in_notes, const double* in_timestamp, const RefPtr<Inspector::InspectorObject>* in_values, const Inspector::InspectorValue* in_payload, const int* in_databaseId, const RefPtr<Inspector::InspectorObject>* in_sqlError, const String* in_screenColor, const String* in_printColor, RefPtr<Inspector:: TypeBuilder::Array<String>>& opt_out_columnNames, Inspector::TypeBuilder::OptOutput<String>* opt_out_notes, Inspector::TypeBuilder::OptOutput<double>* opt_out_timestamp, Inspector::TypeBuilder::OptOutput<Inspector::InspectorObject>* opt_out_values, Inspector::TypeBuilder::OptOutput<Inspector::InspectorValue>* opt_out_payload, Inspector::TypeBuilder::OptOutput<int>* opt_out_databaseId, RefPtr<Inspector::TypeBuilder::Database::Error>& opt_out_sqlError, Inspector::TypeBuilder::Database::PrimaryColors* opt_out_screenColor, InspectorDatabaseBackendDispatcherHandler::PrintColor* opt_out_printColor) = 0;100 virtual void executeNoOptionalParameters(ErrorString*, const RefPtr<Inspector::InspectorArray>& in_columnNames, const String& in_notes, double in_timestamp, const RefPtr<Inspector::InspectorObject>& in_values, Inspector::InspectorValue in_payload, int in_databaseId, const RefPtr<Inspector::InspectorObject>& in_sqlError, const String& in_screenColor, const String& in_printColor, RefPtr<Inspector:: TypeBuilder::Array<String>>& out_columnNames, String* out_notes, double* out_timestamp, Inspector::InspectorObject* out_values, Inspector::InspectorValue* out_payload, int* out_databaseId, RefPtr<Inspector::TypeBuilder::Database::Error>& out_sqlError, Inspector::TypeBuilder::Database::PrimaryColors* out_screenColor, InspectorDatabaseBackendDispatcherHandler::PrintColor* out_printColor) = 0;99 virtual void executeAllOptionalParameters(ErrorString*, const RefPtr<Inspector::InspectorArray>* in_columnNames, const String* in_notes, const double* in_timestamp, const RefPtr<Inspector::InspectorObject>* in_values, const Inspector::InspectorValue* in_payload, const int* in_databaseId, const RefPtr<Inspector::InspectorObject>* in_sqlError, const String* in_screenColor, const String* in_printColor, RefPtr<Inspector::Protocol::Array<String>>& opt_out_columnNames, Inspector::Protocol::OptOutput<String>* opt_out_notes, Inspector::Protocol::OptOutput<double>* opt_out_timestamp, Inspector::Protocol::OptOutput<Inspector::InspectorObject>* opt_out_values, Inspector::Protocol::OptOutput<Inspector::InspectorValue>* opt_out_payload, Inspector::Protocol::OptOutput<int>* opt_out_databaseId, RefPtr<Inspector::Protocol::Database::Error>& opt_out_sqlError, Inspector::Protocol::Database::PrimaryColors* opt_out_screenColor, InspectorDatabaseBackendDispatcherHandler::PrintColor* opt_out_printColor) = 0; 100 virtual void executeNoOptionalParameters(ErrorString*, const RefPtr<Inspector::InspectorArray>& in_columnNames, const String& in_notes, double in_timestamp, const RefPtr<Inspector::InspectorObject>& in_values, Inspector::InspectorValue in_payload, int in_databaseId, const RefPtr<Inspector::InspectorObject>& in_sqlError, const String& in_screenColor, const String& in_printColor, RefPtr<Inspector::Protocol::Array<String>>& out_columnNames, String* out_notes, double* out_timestamp, Inspector::InspectorObject* out_values, Inspector::InspectorValue* out_payload, int* out_databaseId, RefPtr<Inspector::Protocol::Database::Error>& out_sqlError, Inspector::Protocol::Database::PrimaryColors* out_screenColor, InspectorDatabaseBackendDispatcherHandler::PrintColor* out_printColor) = 0; 101 101 protected: 102 102 virtual ~InspectorDatabaseBackendDispatcherHandler(); … … 207 207 String in_notes = InspectorBackendDispatcher::getString(paramsContainerPtr, ASCIILiteral("notes"), ¬es_valueFound, protocolErrorsPtr); 208 208 bool timestamp_valueFound = false; 209 Inspector:: TypeBuilder::OptOutput<double> in_timestamp = InspectorBackendDispatcher::getNumber(paramsContainerPtr, ASCIILiteral("timestamp"), ×tamp_valueFound, protocolErrorsPtr);209 Inspector::Protocol::OptOutput<double> in_timestamp = InspectorBackendDispatcher::getNumber(paramsContainerPtr, ASCIILiteral("timestamp"), ×tamp_valueFound, protocolErrorsPtr); 210 210 bool values_valueFound = false; 211 211 RefPtr<Inspector::InspectorObject> in_values = InspectorBackendDispatcher::getObject(paramsContainerPtr, ASCIILiteral("values"), &values_valueFound, protocolErrorsPtr); … … 228 228 ErrorString error; 229 229 RefPtr<InspectorObject> result = InspectorObject::create(); 230 RefPtr<Inspector:: TypeBuilder::Array<String>> out_columnNames;231 Inspector:: TypeBuilder::OptOutput<String> out_notes;232 Inspector:: TypeBuilder::OptOutput<double> out_timestamp;233 Inspector:: TypeBuilder::OptOutput<Inspector::InspectorObject> out_values;234 Inspector:: TypeBuilder::OptOutput<Inspector::InspectorValue> out_payload;235 Inspector:: TypeBuilder::OptOutput<Inspector::TypeBuilder::Database::DatabaseId> out_databaseId;236 RefPtr<Inspector:: TypeBuilder::Database::Error> out_sqlError;237 Inspector:: TypeBuilder::Database::PrimaryColors out_screenColor;230 RefPtr<Inspector::Protocol::Array<String>> out_columnNames; 231 Inspector::Protocol::OptOutput<String> out_notes; 232 Inspector::Protocol::OptOutput<double> out_timestamp; 233 Inspector::Protocol::OptOutput<Inspector::InspectorObject> out_values; 234 Inspector::Protocol::OptOutput<Inspector::InspectorValue> out_payload; 235 Inspector::Protocol::OptOutput<Inspector::Protocol::Database::DatabaseId> out_databaseId; 236 RefPtr<Inspector::Protocol::Database::Error> out_sqlError; 237 Inspector::Protocol::Database::PrimaryColors out_screenColor; 238 238 InspectorDatabaseBackendDispatcherHandler::PrintColor out_printColor; 239 239 m_agent->executeAllOptionalParameters(&error, columnNames_valueFound ? &in_columnNames : nullptr, notes_valueFound ? &in_notes : nullptr, timestamp_valueFound ? &in_timestamp : nullptr, values_valueFound ? &in_values : nullptr, payload_valueFound ? &in_payload : nullptr, databaseId_valueFound ? &in_databaseId : nullptr, sqlError_valueFound ? &in_sqlError : nullptr, screenColor_valueFound ? &in_screenColor : nullptr, printColor_valueFound ? &in_printColor : nullptr, out_columnNames, &out_notes, &out_timestamp, out_values, &out_payload, &out_databaseId, out_sqlError, &out_screenColor, &out_printColor); … … 285 285 ErrorString error; 286 286 RefPtr<InspectorObject> result = InspectorObject::create(); 287 RefPtr<Inspector:: TypeBuilder::Array<String>> out_columnNames;287 RefPtr<Inspector::Protocol::Array<String>> out_columnNames; 288 288 String out_notes; 289 289 double out_timestamp; 290 290 Inspector::InspectorObject out_values; 291 291 Inspector::InspectorValue out_payload; 292 Inspector:: TypeBuilder::Database::DatabaseId out_databaseId;293 RefPtr<Inspector:: TypeBuilder::Database::Error> out_sqlError;294 Inspector:: TypeBuilder::Database::PrimaryColors out_screenColor;292 Inspector::Protocol::Database::DatabaseId out_databaseId; 293 RefPtr<Inspector::Protocol::Database::Error> out_sqlError; 294 Inspector::Protocol::Database::PrimaryColors out_screenColor; 295 295 InspectorDatabaseBackendDispatcherHandler::PrintColor out_printColor; 296 296 m_agent->executeNoOptionalParameters(&error, in_columnNames, in_notes, in_timestamp, in_values, in_payload, in_databaseId, in_sqlError, in_screenColor, in_printColor, out_columnNames, &out_notes, &out_timestamp, out_values, &out_payload, &out_databaseId, out_sqlError, &out_screenColor, &out_printColor); … … 304 304 result->setNumber(ASCIILiteral("databaseId"), out_databaseId); 305 305 result->setObject(ASCIILiteral("sqlError"), out_sqlError); 306 result->setString(ASCIILiteral("screenColor"), Inspector:: TypeBuilder::getTestEnumConstantValue(out_screenColor));307 result->setString(ASCIILiteral("printColor"), Inspector:: TypeBuilder::getTestEnumConstantValue(out_printColor));306 result->setString(ASCIILiteral("screenColor"), Inspector::Protocol::getTestEnumConstantValue(out_screenColor)); 307 result->setString(ASCIILiteral("printColor"), Inspector::Protocol::getTestEnumConstantValue(out_printColor)); 308 308 } 309 309 m_backendDispatcher->sendResponse(callId, result.release(), error); … … 353 353 #if ENABLE(INSPECTOR) 354 354 355 #include "InspectorTest TypeBuilders.h"355 #include "InspectorTestProtocolTypes.h" 356 356 #include <inspector/InspectorFrontendChannel.h> 357 357 #include <inspector/InspectorValues.h> … … 416 416 ### End File: InspectorTestFrontendDispatchers.cpp 417 417 418 ### Begin File: InspectorTest TypeBuilders.h418 ### Begin File: InspectorTestProtocolTypes.h 419 419 /* 420 420 * Copyright (C) 2013 Google Inc. All rights reserved. … … 447 447 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 448 448 449 #ifndef InspectorTest TypeBuilders_h450 #define InspectorTest TypeBuilders_h449 #ifndef InspectorTestProtocolTypes_h 450 #define InspectorTestProtocolTypes_h 451 451 452 452 #if ENABLE(INSPECTOR) 453 453 454 #include <inspector/InspectorJS TypeBuilders.h>455 #include <inspector/Inspector TypeBuilder.h>454 #include <inspector/InspectorJSProtocolTypes.h> 455 #include <inspector/InspectorProtocolTypes.h> 456 456 #include <wtf/Assertions.h> 457 457 #include <wtf/PassRefPtr.h> … … 461 461 462 462 463 namespace TypeBuilder{463 namespace Protocol { 464 464 465 465 // Forward declarations. … … 562 562 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 563 563 } 564 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;564 typedef Inspector::Protocol::StructItemTraits ItemTraits; 565 565 }; 566 566 … … 570 570 571 571 572 } // namespace TypeBuilder572 } // namespace Protocol 573 573 574 574 } // namespace Inspector … … 576 576 #endif // ENABLE(INSPECTOR) 577 577 578 #endif // !defined(InspectorTest TypeBuilders_h)579 ### End File: InspectorTest TypeBuilders.h580 581 ### Begin File: InspectorTest TypeBuilders.cpp578 #endif // !defined(InspectorTestProtocolTypes_h) 579 ### End File: InspectorTestProtocolTypes.h 580 581 ### Begin File: InspectorTestProtocolTypes.cpp 582 582 /* 583 583 * Copyright (C) 2013 Google Inc. All rights reserved. … … 611 611 612 612 #include "config.h" 613 #include "InspectorTest TypeBuilders.h"613 #include "InspectorTestProtocolTypes.h" 614 614 615 615 #if ENABLE(INSPECTOR) … … 619 619 namespace Inspector { 620 620 621 namespace TypeBuilder{621 namespace Protocol { 622 622 623 623 static const char* const enum_constant_values[] = { … … 637 637 638 638 639 } // namespace TypeBuilder639 } // namespace Protocol 640 640 641 641 } // namespace Inspector … … 643 643 #endif // ENABLE(INSPECTOR) 644 644 645 ### End File: InspectorTest TypeBuilders.cpp645 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/domains-with-varying-command-sizes.json-result
r172687 r172930 79 79 #if ENABLE(INSPECTOR) 80 80 81 #include "InspectorTest TypeBuilders.h"81 #include "InspectorTestProtocolTypes.h" 82 82 #include <inspector/InspectorBackendDispatcher.h> 83 83 #include <wtf/PassRefPtr.h> … … 370 370 #if ENABLE(INSPECTOR) 371 371 372 #include "InspectorTest TypeBuilders.h"372 #include "InspectorTestProtocolTypes.h" 373 373 #include <inspector/InspectorFrontendChannel.h> 374 374 #include <inspector/InspectorValues.h> … … 433 433 ### End File: InspectorTestFrontendDispatchers.cpp 434 434 435 ### Begin File: InspectorTest TypeBuilders.h436 /* 437 * Copyright (C) 2013 Google Inc. All rights reserved. 438 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 439 * Copyright (C) 2014 University of Washington. All rights reserved. 440 * 441 * Redistribution and use in source and binary forms, with or without 442 * modification, are permitted provided that the following conditions 443 * are met: 444 * 1. Redistributions of source code must retain the above copyright 445 * notice, this list of conditions and the following disclaimer. 446 * 2. Redistributions in binary form must reproduce the above copyright 447 * notice, this list of conditions and the following disclaimer in the 448 * documentation and/or other materials provided with the distribution. 449 * 450 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 451 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 452 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 453 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 454 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 455 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 456 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 457 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 458 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 459 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 460 * THE POSSIBILITY OF SUCH DAMAGE. 461 */ 462 463 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 464 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 465 466 #ifndef InspectorTest TypeBuilders_h467 #define InspectorTest TypeBuilders_h435 ### Begin File: InspectorTestProtocolTypes.h 436 /* 437 * Copyright (C) 2013 Google Inc. All rights reserved. 438 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 439 * Copyright (C) 2014 University of Washington. All rights reserved. 440 * 441 * Redistribution and use in source and binary forms, with or without 442 * modification, are permitted provided that the following conditions 443 * are met: 444 * 1. Redistributions of source code must retain the above copyright 445 * notice, this list of conditions and the following disclaimer. 446 * 2. Redistributions in binary form must reproduce the above copyright 447 * notice, this list of conditions and the following disclaimer in the 448 * documentation and/or other materials provided with the distribution. 449 * 450 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 451 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 452 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 453 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 454 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 455 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 456 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 457 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 458 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 459 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 460 * THE POSSIBILITY OF SUCH DAMAGE. 461 */ 462 463 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 464 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 465 466 #ifndef InspectorTestProtocolTypes_h 467 #define InspectorTestProtocolTypes_h 468 468 469 469 #if ENABLE(INSPECTOR) 470 470 471 #include <inspector/InspectorJS TypeBuilders.h>472 #include <inspector/Inspector TypeBuilder.h>471 #include <inspector/InspectorJSProtocolTypes.h> 472 #include <inspector/InspectorProtocolTypes.h> 473 473 #include <wtf/Assertions.h> 474 474 #include <wtf/PassRefPtr.h> … … 478 478 479 479 480 namespace TypeBuilder{480 namespace Protocol { 481 481 482 482 … … 498 498 499 499 500 } // namespace TypeBuilder500 } // namespace Protocol 501 501 502 502 } // namespace Inspector … … 504 504 #endif // ENABLE(INSPECTOR) 505 505 506 #endif // !defined(InspectorTest TypeBuilders_h)507 ### End File: InspectorTest TypeBuilders.h508 509 ### Begin File: InspectorTest TypeBuilders.cpp506 #endif // !defined(InspectorTestProtocolTypes_h) 507 ### End File: InspectorTestProtocolTypes.h 508 509 ### Begin File: InspectorTestProtocolTypes.cpp 510 510 /* 511 511 * Copyright (C) 2013 Google Inc. All rights reserved. … … 539 539 540 540 #include "config.h" 541 #include "InspectorTest TypeBuilders.h"541 #include "InspectorTestProtocolTypes.h" 542 542 543 543 #if ENABLE(INSPECTOR) … … 547 547 namespace Inspector { 548 548 549 namespace TypeBuilder{549 namespace Protocol { 550 550 551 551 static const char* const enum_constant_values[] = { … … 558 558 559 559 560 } // namespace TypeBuilder560 } // namespace Protocol 561 561 562 562 } // namespace Inspector … … 564 564 #endif // ENABLE(INSPECTOR) 565 565 566 ### End File: InspectorTest TypeBuilders.cpp566 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/events-with-optional-parameters.json-result
r172687 r172930 72 72 #if ENABLE(INSPECTOR) 73 73 74 #include "InspectorTest TypeBuilders.h"74 #include "InspectorTestProtocolTypes.h" 75 75 #include <inspector/InspectorBackendDispatcher.h> 76 76 #include <wtf/PassRefPtr.h> … … 174 174 #if ENABLE(INSPECTOR) 175 175 176 #include "InspectorTest TypeBuilders.h"176 #include "InspectorTestProtocolTypes.h" 177 177 #include <inspector/InspectorFrontendChannel.h> 178 178 #include <inspector/InspectorValues.h> … … 188 188 public: 189 189 InspectorDatabaseFrontendDispatcher(InspectorFrontendChannel* inspectorFrontendChannel) : m_inspectorFrontendChannel(inspectorFrontendChannel) { } 190 void didExecuteOptionalParameters(PassRefPtr<Inspector:: TypeBuilder::Array<String>> columnNames, const String* const notes, const double* const timestamp, PassRefPtr<Inspector::InspectorObject> values, PassRefPtr<Inspector::InspectorValue> payload, PassRefPtr<Inspector::TypeBuilder::Database::Error> sqlError, const Inspector::TypeBuilder::Database::PrimaryColors* const screenColor, const String* const printColor);191 void didExecuteNoOptionalParameters(PassRefPtr<Inspector:: TypeBuilder::Array<String>> columnNames, const String& notes, double timestamp, PassRefPtr<Inspector::InspectorObject> values, PassRefPtr<Inspector::InspectorValue> payload, PassRefPtr<Inspector::TypeBuilder::Database::Error> sqlError, const Inspector::TypeBuilder::Database::PrimaryColors& screenColor, const String& printColor);190 void didExecuteOptionalParameters(PassRefPtr<Inspector::Protocol::Array<String>> columnNames, const String* const notes, const double* const timestamp, PassRefPtr<Inspector::InspectorObject> values, PassRefPtr<Inspector::InspectorValue> payload, PassRefPtr<Inspector::Protocol::Database::Error> sqlError, const Inspector::Protocol::Database::PrimaryColors* const screenColor, const String* const printColor); 191 void didExecuteNoOptionalParameters(PassRefPtr<Inspector::Protocol::Array<String>> columnNames, const String& notes, double timestamp, PassRefPtr<Inspector::InspectorObject> values, PassRefPtr<Inspector::InspectorValue> payload, PassRefPtr<Inspector::Protocol::Database::Error> sqlError, const Inspector::Protocol::Database::PrimaryColors& screenColor, const String& printColor); 192 192 private: 193 193 InspectorFrontendChannel* m_inspectorFrontendChannel; … … 243 243 244 244 #if ENABLE(SQL_DATABASE) 245 void InspectorDatabaseFrontendDispatcher::didExecuteOptionalParameters(PassRefPtr<Inspector:: TypeBuilder::Array<String>> columnNames, const String* const notes, const double* const timestamp, PassRefPtr<Inspector::InspectorObject> values, PassRefPtr<Inspector::InspectorValue> payload, PassRefPtr<Inspector::TypeBuilder::Database::Error> sqlError, const Inspector::TypeBuilder::Database::PrimaryColors* const screenColor, const String* const printColor)245 void InspectorDatabaseFrontendDispatcher::didExecuteOptionalParameters(PassRefPtr<Inspector::Protocol::Array<String>> columnNames, const String* const notes, const double* const timestamp, PassRefPtr<Inspector::InspectorObject> values, PassRefPtr<Inspector::InspectorValue> payload, PassRefPtr<Inspector::Protocol::Database::Error> sqlError, const Inspector::Protocol::Database::PrimaryColors* const screenColor, const String* const printColor) 246 246 { 247 247 RefPtr<InspectorObject> jsonMessage = InspectorObject::create(); … … 269 269 } 270 270 271 void InspectorDatabaseFrontendDispatcher::didExecuteNoOptionalParameters(PassRefPtr<Inspector:: TypeBuilder::Array<String>> columnNames, const String& notes, double timestamp, PassRefPtr<Inspector::InspectorObject> values, PassRefPtr<Inspector::InspectorValue> payload, PassRefPtr<Inspector::TypeBuilder::Database::Error> sqlError, const Inspector::TypeBuilder::Database::PrimaryColors& screenColor, const String& printColor)271 void InspectorDatabaseFrontendDispatcher::didExecuteNoOptionalParameters(PassRefPtr<Inspector::Protocol::Array<String>> columnNames, const String& notes, double timestamp, PassRefPtr<Inspector::InspectorObject> values, PassRefPtr<Inspector::InspectorValue> payload, PassRefPtr<Inspector::Protocol::Database::Error> sqlError, const Inspector::Protocol::Database::PrimaryColors& screenColor, const String& printColor) 272 272 { 273 273 RefPtr<InspectorObject> jsonMessage = InspectorObject::create(); … … 294 294 ### End File: InspectorTestFrontendDispatchers.cpp 295 295 296 ### Begin File: InspectorTest TypeBuilders.h297 /* 298 * Copyright (C) 2013 Google Inc. All rights reserved. 299 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 300 * Copyright (C) 2014 University of Washington. All rights reserved. 301 * 302 * Redistribution and use in source and binary forms, with or without 303 * modification, are permitted provided that the following conditions 304 * are met: 305 * 1. Redistributions of source code must retain the above copyright 306 * notice, this list of conditions and the following disclaimer. 307 * 2. Redistributions in binary form must reproduce the above copyright 308 * notice, this list of conditions and the following disclaimer in the 309 * documentation and/or other materials provided with the distribution. 310 * 311 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 312 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 313 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 314 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 315 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 316 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 317 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 318 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 319 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 320 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 321 * THE POSSIBILITY OF SUCH DAMAGE. 322 */ 323 324 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 325 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 326 327 #ifndef InspectorTest TypeBuilders_h328 #define InspectorTest TypeBuilders_h296 ### Begin File: InspectorTestProtocolTypes.h 297 /* 298 * Copyright (C) 2013 Google Inc. All rights reserved. 299 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 300 * Copyright (C) 2014 University of Washington. All rights reserved. 301 * 302 * Redistribution and use in source and binary forms, with or without 303 * modification, are permitted provided that the following conditions 304 * are met: 305 * 1. Redistributions of source code must retain the above copyright 306 * notice, this list of conditions and the following disclaimer. 307 * 2. Redistributions in binary form must reproduce the above copyright 308 * notice, this list of conditions and the following disclaimer in the 309 * documentation and/or other materials provided with the distribution. 310 * 311 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 312 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 313 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 314 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 315 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 316 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 317 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 318 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 319 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 320 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 321 * THE POSSIBILITY OF SUCH DAMAGE. 322 */ 323 324 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 325 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 326 327 #ifndef InspectorTestProtocolTypes_h 328 #define InspectorTestProtocolTypes_h 329 329 330 330 #if ENABLE(INSPECTOR) 331 331 332 #include <inspector/InspectorJS TypeBuilders.h>333 #include <inspector/Inspector TypeBuilder.h>332 #include <inspector/InspectorJSProtocolTypes.h> 333 #include <inspector/InspectorProtocolTypes.h> 334 334 #include <wtf/Assertions.h> 335 335 #include <wtf/PassRefPtr.h> … … 339 339 340 340 341 namespace TypeBuilder{341 namespace Protocol { 342 342 343 343 // Forward declarations. … … 435 435 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 436 436 } 437 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;437 typedef Inspector::Protocol::StructItemTraits ItemTraits; 438 438 }; 439 439 … … 443 443 444 444 445 } // namespace TypeBuilder445 } // namespace Protocol 446 446 447 447 } // namespace Inspector … … 449 449 #endif // ENABLE(INSPECTOR) 450 450 451 #endif // !defined(InspectorTest TypeBuilders_h)452 ### End File: InspectorTest TypeBuilders.h453 454 ### Begin File: InspectorTest TypeBuilders.cpp451 #endif // !defined(InspectorTestProtocolTypes_h) 452 ### End File: InspectorTestProtocolTypes.h 453 454 ### Begin File: InspectorTestProtocolTypes.cpp 455 455 /* 456 456 * Copyright (C) 2013 Google Inc. All rights reserved. … … 484 484 485 485 #include "config.h" 486 #include "InspectorTest TypeBuilders.h"486 #include "InspectorTestProtocolTypes.h" 487 487 488 488 #if ENABLE(INSPECTOR) … … 492 492 namespace Inspector { 493 493 494 namespace TypeBuilder{494 namespace Protocol { 495 495 496 496 static const char* const enum_constant_values[] = { … … 503 503 504 504 505 } // namespace TypeBuilder505 } // namespace Protocol 506 506 507 507 } // namespace Inspector … … 509 509 #endif // ENABLE(INSPECTOR) 510 510 511 ### End File: InspectorTest TypeBuilders.cpp511 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/same-type-id-different-domain.json-result
r172687 r172930 67 67 #if ENABLE(INSPECTOR) 68 68 69 #include "InspectorTest TypeBuilders.h"69 #include "InspectorTestProtocolTypes.h" 70 70 #include <inspector/InspectorBackendDispatcher.h> 71 71 #include <wtf/PassRefPtr.h> … … 169 169 #if ENABLE(INSPECTOR) 170 170 171 #include "InspectorTest TypeBuilders.h"171 #include "InspectorTestProtocolTypes.h" 172 172 #include <inspector/InspectorFrontendChannel.h> 173 173 #include <inspector/InspectorValues.h> … … 232 232 ### End File: InspectorTestFrontendDispatchers.cpp 233 233 234 ### Begin File: InspectorTest TypeBuilders.h235 /* 236 * Copyright (C) 2013 Google Inc. All rights reserved. 237 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 238 * Copyright (C) 2014 University of Washington. All rights reserved. 239 * 240 * Redistribution and use in source and binary forms, with or without 241 * modification, are permitted provided that the following conditions 242 * are met: 243 * 1. Redistributions of source code must retain the above copyright 244 * notice, this list of conditions and the following disclaimer. 245 * 2. Redistributions in binary form must reproduce the above copyright 246 * notice, this list of conditions and the following disclaimer in the 247 * documentation and/or other materials provided with the distribution. 248 * 249 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 250 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 251 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 252 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 253 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 254 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 255 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 256 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 257 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 258 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 259 * THE POSSIBILITY OF SUCH DAMAGE. 260 */ 261 262 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 263 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 264 265 #ifndef InspectorTest TypeBuilders_h266 #define InspectorTest TypeBuilders_h267 268 #if ENABLE(INSPECTOR) 269 270 #include <inspector/InspectorJS TypeBuilders.h>271 #include <inspector/Inspector TypeBuilder.h>234 ### Begin File: InspectorTestProtocolTypes.h 235 /* 236 * Copyright (C) 2013 Google Inc. All rights reserved. 237 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 238 * Copyright (C) 2014 University of Washington. All rights reserved. 239 * 240 * Redistribution and use in source and binary forms, with or without 241 * modification, are permitted provided that the following conditions 242 * are met: 243 * 1. Redistributions of source code must retain the above copyright 244 * notice, this list of conditions and the following disclaimer. 245 * 2. Redistributions in binary form must reproduce the above copyright 246 * notice, this list of conditions and the following disclaimer in the 247 * documentation and/or other materials provided with the distribution. 248 * 249 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 250 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 251 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 252 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 253 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 254 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 255 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 256 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 257 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 258 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 259 * THE POSSIBILITY OF SUCH DAMAGE. 260 */ 261 262 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 263 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 264 265 #ifndef InspectorTestProtocolTypes_h 266 #define InspectorTestProtocolTypes_h 267 268 #if ENABLE(INSPECTOR) 269 270 #include <inspector/InspectorJSProtocolTypes.h> 271 #include <inspector/InspectorProtocolTypes.h> 272 272 #include <wtf/Assertions.h> 273 273 #include <wtf/PassRefPtr.h> … … 277 277 278 278 279 namespace TypeBuilder{279 namespace Protocol { 280 280 281 281 … … 302 302 303 303 304 } // namespace TypeBuilder305 306 } // namespace Inspector 307 308 #endif // ENABLE(INSPECTOR) 309 310 #endif // !defined(InspectorTest TypeBuilders_h)311 ### End File: InspectorTest TypeBuilders.h312 313 ### Begin File: InspectorTest TypeBuilders.cpp304 } // namespace Protocol 305 306 } // namespace Inspector 307 308 #endif // ENABLE(INSPECTOR) 309 310 #endif // !defined(InspectorTestProtocolTypes_h) 311 ### End File: InspectorTestProtocolTypes.h 312 313 ### Begin File: InspectorTestProtocolTypes.cpp 314 314 /* 315 315 * Copyright (C) 2013 Google Inc. All rights reserved. … … 343 343 344 344 #include "config.h" 345 #include "InspectorTest TypeBuilders.h"345 #include "InspectorTestProtocolTypes.h" 346 346 347 347 #if ENABLE(INSPECTOR) … … 351 351 namespace Inspector { 352 352 353 namespace TypeBuilder{353 namespace Protocol { 354 354 355 355 static const char* const enum_constant_values[] = { … … 362 362 363 363 364 } // namespace TypeBuilder365 366 } // namespace Inspector 367 368 #endif // ENABLE(INSPECTOR) 369 370 ### End File: InspectorTest TypeBuilders.cpp364 } // namespace Protocol 365 366 } // namespace Inspector 367 368 #endif // ENABLE(INSPECTOR) 369 370 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result
r172687 r172930 67 67 #if ENABLE(INSPECTOR) 68 68 69 #include "InspectorTest TypeBuilders.h"69 #include "InspectorTestProtocolTypes.h" 70 70 #include <inspector/InspectorBackendDispatcher.h> 71 71 #include <wtf/PassRefPtr.h> … … 169 169 #if ENABLE(INSPECTOR) 170 170 171 #include "InspectorTest TypeBuilders.h"171 #include "InspectorTestProtocolTypes.h" 172 172 #include <inspector/InspectorFrontendChannel.h> 173 173 #include <inspector/InspectorValues.h> … … 232 232 ### End File: InspectorTestFrontendDispatchers.cpp 233 233 234 ### Begin File: InspectorTest TypeBuilders.h235 /* 236 * Copyright (C) 2013 Google Inc. All rights reserved. 237 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 238 * Copyright (C) 2014 University of Washington. All rights reserved. 239 * 240 * Redistribution and use in source and binary forms, with or without 241 * modification, are permitted provided that the following conditions 242 * are met: 243 * 1. Redistributions of source code must retain the above copyright 244 * notice, this list of conditions and the following disclaimer. 245 * 2. Redistributions in binary form must reproduce the above copyright 246 * notice, this list of conditions and the following disclaimer in the 247 * documentation and/or other materials provided with the distribution. 248 * 249 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 250 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 251 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 252 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 253 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 254 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 255 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 256 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 257 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 258 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 259 * THE POSSIBILITY OF SUCH DAMAGE. 260 */ 261 262 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 263 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 264 265 #ifndef InspectorTest TypeBuilders_h266 #define InspectorTest TypeBuilders_h267 268 #if ENABLE(INSPECTOR) 269 270 #include <inspector/InspectorJS TypeBuilders.h>271 #include <inspector/Inspector TypeBuilder.h>234 ### Begin File: InspectorTestProtocolTypes.h 235 /* 236 * Copyright (C) 2013 Google Inc. All rights reserved. 237 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 238 * Copyright (C) 2014 University of Washington. All rights reserved. 239 * 240 * Redistribution and use in source and binary forms, with or without 241 * modification, are permitted provided that the following conditions 242 * are met: 243 * 1. Redistributions of source code must retain the above copyright 244 * notice, this list of conditions and the following disclaimer. 245 * 2. Redistributions in binary form must reproduce the above copyright 246 * notice, this list of conditions and the following disclaimer in the 247 * documentation and/or other materials provided with the distribution. 248 * 249 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 250 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 251 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 252 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 253 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 254 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 255 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 256 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 257 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 258 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 259 * THE POSSIBILITY OF SUCH DAMAGE. 260 */ 261 262 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 263 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 264 265 #ifndef InspectorTestProtocolTypes_h 266 #define InspectorTestProtocolTypes_h 267 268 #if ENABLE(INSPECTOR) 269 270 #include <inspector/InspectorJSProtocolTypes.h> 271 #include <inspector/InspectorProtocolTypes.h> 272 272 #include <wtf/Assertions.h> 273 273 #include <wtf/PassRefPtr.h> … … 277 277 278 278 279 namespace TypeBuilder{279 namespace Protocol { 280 280 281 281 // Forward declarations. … … 332 332 { 333 333 COMPILE_ASSERT(!(STATE & TypeSet), property_type_already_set); 334 m_result->setString(ASCIILiteral("type"), Inspector:: TypeBuilder::getTestEnumConstantValue(static_cast<int>(value)));334 m_result->setString(ASCIILiteral("type"), Inspector::Protocol::getTestEnumConstantValue(static_cast<int>(value))); 335 335 return castState<TypeSet>(); 336 336 } … … 358 358 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 359 359 } 360 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;360 typedef Inspector::Protocol::StructItemTraits ItemTraits; 361 361 362 362 void setString(const String& value) … … 365 365 } 366 366 367 void setArray(PassRefPtr<Inspector:: TypeBuilder::Array<String>> value)367 void setArray(PassRefPtr<Inspector::Protocol::Array<String>> value) 368 368 { 369 369 InspectorObjectBase::setArray(ASCIILiteral("array"), value); … … 375 375 376 376 377 } // namespace TypeBuilder378 379 } // namespace Inspector 380 381 #endif // ENABLE(INSPECTOR) 382 383 #endif // !defined(InspectorTest TypeBuilders_h)384 ### End File: InspectorTest TypeBuilders.h385 386 ### Begin File: InspectorTest TypeBuilders.cpp377 } // namespace Protocol 378 379 } // namespace Inspector 380 381 #endif // ENABLE(INSPECTOR) 382 383 #endif // !defined(InspectorTestProtocolTypes_h) 384 ### End File: InspectorTestProtocolTypes.h 385 386 ### Begin File: InspectorTestProtocolTypes.cpp 387 387 /* 388 388 * Copyright (C) 2013 Google Inc. All rights reserved. … … 416 416 417 417 #include "config.h" 418 #include "InspectorTest TypeBuilders.h"418 #include "InspectorTestProtocolTypes.h" 419 419 420 420 #if ENABLE(INSPECTOR) … … 424 424 namespace Inspector { 425 425 426 namespace TypeBuilder{426 namespace Protocol { 427 427 428 428 static const char* const enum_constant_values[] = { … … 438 438 439 439 440 } // namespace TypeBuilder441 442 } // namespace Inspector 443 444 #endif // ENABLE(INSPECTOR) 445 446 ### End File: InspectorTest TypeBuilders.cpp440 } // namespace Protocol 441 442 } // namespace Inspector 443 444 #endif // ENABLE(INSPECTOR) 445 446 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-aliased-primitive-type.json-result
r172687 r172930 67 67 #if ENABLE(INSPECTOR) 68 68 69 #include "InspectorTest TypeBuilders.h"69 #include "InspectorTestProtocolTypes.h" 70 70 #include <inspector/InspectorBackendDispatcher.h> 71 71 #include <wtf/PassRefPtr.h> … … 169 169 #if ENABLE(INSPECTOR) 170 170 171 #include "InspectorTest TypeBuilders.h"171 #include "InspectorTestProtocolTypes.h" 172 172 #include <inspector/InspectorFrontendChannel.h> 173 173 #include <inspector/InspectorValues.h> … … 232 232 ### End File: InspectorTestFrontendDispatchers.cpp 233 233 234 ### Begin File: InspectorTest TypeBuilders.h235 /* 236 * Copyright (C) 2013 Google Inc. All rights reserved. 237 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 238 * Copyright (C) 2014 University of Washington. All rights reserved. 239 * 240 * Redistribution and use in source and binary forms, with or without 241 * modification, are permitted provided that the following conditions 242 * are met: 243 * 1. Redistributions of source code must retain the above copyright 244 * notice, this list of conditions and the following disclaimer. 245 * 2. Redistributions in binary form must reproduce the above copyright 246 * notice, this list of conditions and the following disclaimer in the 247 * documentation and/or other materials provided with the distribution. 248 * 249 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 250 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 251 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 252 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 253 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 254 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 255 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 256 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 257 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 258 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 259 * THE POSSIBILITY OF SUCH DAMAGE. 260 */ 261 262 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 263 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 264 265 #ifndef InspectorTest TypeBuilders_h266 #define InspectorTest TypeBuilders_h267 268 #if ENABLE(INSPECTOR) 269 270 #include <inspector/InspectorJS TypeBuilders.h>271 #include <inspector/Inspector TypeBuilder.h>234 ### Begin File: InspectorTestProtocolTypes.h 235 /* 236 * Copyright (C) 2013 Google Inc. All rights reserved. 237 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 238 * Copyright (C) 2014 University of Washington. All rights reserved. 239 * 240 * Redistribution and use in source and binary forms, with or without 241 * modification, are permitted provided that the following conditions 242 * are met: 243 * 1. Redistributions of source code must retain the above copyright 244 * notice, this list of conditions and the following disclaimer. 245 * 2. Redistributions in binary form must reproduce the above copyright 246 * notice, this list of conditions and the following disclaimer in the 247 * documentation and/or other materials provided with the distribution. 248 * 249 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 250 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 251 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 252 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 253 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 254 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 255 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 256 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 257 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 258 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 259 * THE POSSIBILITY OF SUCH DAMAGE. 260 */ 261 262 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 263 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 264 265 #ifndef InspectorTestProtocolTypes_h 266 #define InspectorTestProtocolTypes_h 267 268 #if ENABLE(INSPECTOR) 269 270 #include <inspector/InspectorJSProtocolTypes.h> 271 #include <inspector/InspectorProtocolTypes.h> 272 272 #include <wtf/Assertions.h> 273 273 #include <wtf/PassRefPtr.h> … … 277 277 278 278 279 namespace TypeBuilder{279 namespace Protocol { 280 280 281 281 … … 297 297 298 298 299 } // namespace TypeBuilder300 301 } // namespace Inspector 302 303 #endif // ENABLE(INSPECTOR) 304 305 #endif // !defined(InspectorTest TypeBuilders_h)306 ### End File: InspectorTest TypeBuilders.h307 308 ### Begin File: InspectorTest TypeBuilders.cpp299 } // namespace Protocol 300 301 } // namespace Inspector 302 303 #endif // ENABLE(INSPECTOR) 304 305 #endif // !defined(InspectorTestProtocolTypes_h) 306 ### End File: InspectorTestProtocolTypes.h 307 308 ### Begin File: InspectorTestProtocolTypes.cpp 309 309 /* 310 310 * Copyright (C) 2013 Google Inc. All rights reserved. … … 338 338 339 339 #include "config.h" 340 #include "InspectorTest TypeBuilders.h"340 #include "InspectorTestProtocolTypes.h" 341 341 342 342 #if ENABLE(INSPECTOR) … … 346 346 namespace Inspector { 347 347 348 namespace TypeBuilder{348 namespace Protocol { 349 349 350 350 static const char* const enum_constant_values[] = { … … 357 357 358 358 359 } // namespace TypeBuilder360 361 } // namespace Inspector 362 363 #endif // ENABLE(INSPECTOR) 364 365 ### End File: InspectorTest TypeBuilders.cpp359 } // namespace Protocol 360 361 } // namespace Inspector 362 363 #endif // ENABLE(INSPECTOR) 364 365 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-array-type.json-result
r172687 r172930 70 70 #if ENABLE(INSPECTOR) 71 71 72 #include "InspectorTest TypeBuilders.h"72 #include "InspectorTestProtocolTypes.h" 73 73 #include <inspector/InspectorBackendDispatcher.h> 74 74 #include <wtf/PassRefPtr.h> … … 172 172 #if ENABLE(INSPECTOR) 173 173 174 #include "InspectorTest TypeBuilders.h"174 #include "InspectorTestProtocolTypes.h" 175 175 #include <inspector/InspectorFrontendChannel.h> 176 176 #include <inspector/InspectorValues.h> … … 235 235 ### End File: InspectorTestFrontendDispatchers.cpp 236 236 237 ### Begin File: InspectorTest TypeBuilders.h238 /* 239 * Copyright (C) 2013 Google Inc. All rights reserved. 240 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 241 * Copyright (C) 2014 University of Washington. All rights reserved. 242 * 243 * Redistribution and use in source and binary forms, with or without 244 * modification, are permitted provided that the following conditions 245 * are met: 246 * 1. Redistributions of source code must retain the above copyright 247 * notice, this list of conditions and the following disclaimer. 248 * 2. Redistributions in binary form must reproduce the above copyright 249 * notice, this list of conditions and the following disclaimer in the 250 * documentation and/or other materials provided with the distribution. 251 * 252 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 253 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 254 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 255 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 256 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 257 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 258 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 259 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 260 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 261 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 262 * THE POSSIBILITY OF SUCH DAMAGE. 263 */ 264 265 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 266 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 267 268 #ifndef InspectorTest TypeBuilders_h269 #define InspectorTest TypeBuilders_h270 271 #if ENABLE(INSPECTOR) 272 273 #include <inspector/InspectorJS TypeBuilders.h>274 #include <inspector/Inspector TypeBuilder.h>237 ### Begin File: InspectorTestProtocolTypes.h 238 /* 239 * Copyright (C) 2013 Google Inc. All rights reserved. 240 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 241 * Copyright (C) 2014 University of Washington. All rights reserved. 242 * 243 * Redistribution and use in source and binary forms, with or without 244 * modification, are permitted provided that the following conditions 245 * are met: 246 * 1. Redistributions of source code must retain the above copyright 247 * notice, this list of conditions and the following disclaimer. 248 * 2. Redistributions in binary form must reproduce the above copyright 249 * notice, this list of conditions and the following disclaimer in the 250 * documentation and/or other materials provided with the distribution. 251 * 252 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 253 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 254 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 255 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 256 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 257 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 258 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 259 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 260 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 261 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 262 * THE POSSIBILITY OF SUCH DAMAGE. 263 */ 264 265 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 266 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 267 268 #ifndef InspectorTestProtocolTypes_h 269 #define InspectorTestProtocolTypes_h 270 271 #if ENABLE(INSPECTOR) 272 273 #include <inspector/InspectorJSProtocolTypes.h> 274 #include <inspector/InspectorProtocolTypes.h> 275 275 #include <wtf/Assertions.h> 276 276 #include <wtf/PassRefPtr.h> … … 280 280 281 281 282 namespace TypeBuilder{282 namespace Protocol { 283 283 284 284 // Forward declarations. … … 317 317 318 318 319 } // namespace TypeBuilder320 321 } // namespace Inspector 322 323 #endif // ENABLE(INSPECTOR) 324 325 #endif // !defined(InspectorTest TypeBuilders_h)326 ### End File: InspectorTest TypeBuilders.h327 328 ### Begin File: InspectorTest TypeBuilders.cpp319 } // namespace Protocol 320 321 } // namespace Inspector 322 323 #endif // ENABLE(INSPECTOR) 324 325 #endif // !defined(InspectorTestProtocolTypes_h) 326 ### End File: InspectorTestProtocolTypes.h 327 328 ### Begin File: InspectorTestProtocolTypes.cpp 329 329 /* 330 330 * Copyright (C) 2013 Google Inc. All rights reserved. … … 358 358 359 359 #include "config.h" 360 #include "InspectorTest TypeBuilders.h"360 #include "InspectorTestProtocolTypes.h" 361 361 362 362 #if ENABLE(INSPECTOR) … … 366 366 namespace Inspector { 367 367 368 namespace TypeBuilder{368 namespace Protocol { 369 369 370 370 static const char* const enum_constant_values[] = { … … 380 380 381 381 382 } // namespace TypeBuilder383 384 } // namespace Inspector 385 386 #endif // ENABLE(INSPECTOR) 387 388 ### End File: InspectorTest TypeBuilders.cpp382 } // namespace Protocol 383 384 } // namespace Inspector 385 386 #endif // ENABLE(INSPECTOR) 387 388 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-enum-type.json-result
r172687 r172930 71 71 #if ENABLE(INSPECTOR) 72 72 73 #include "InspectorTest TypeBuilders.h"73 #include "InspectorTestProtocolTypes.h" 74 74 #include <inspector/InspectorBackendDispatcher.h> 75 75 #include <wtf/PassRefPtr.h> … … 173 173 #if ENABLE(INSPECTOR) 174 174 175 #include "InspectorTest TypeBuilders.h"175 #include "InspectorTestProtocolTypes.h" 176 176 #include <inspector/InspectorFrontendChannel.h> 177 177 #include <inspector/InspectorValues.h> … … 236 236 ### End File: InspectorTestFrontendDispatchers.cpp 237 237 238 ### Begin File: InspectorTest TypeBuilders.h239 /* 240 * Copyright (C) 2013 Google Inc. All rights reserved. 241 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 242 * Copyright (C) 2014 University of Washington. All rights reserved. 243 * 244 * Redistribution and use in source and binary forms, with or without 245 * modification, are permitted provided that the following conditions 246 * are met: 247 * 1. Redistributions of source code must retain the above copyright 248 * notice, this list of conditions and the following disclaimer. 249 * 2. Redistributions in binary form must reproduce the above copyright 250 * notice, this list of conditions and the following disclaimer in the 251 * documentation and/or other materials provided with the distribution. 252 * 253 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 254 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 255 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 256 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 257 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 258 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 259 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 260 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 261 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 262 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 263 * THE POSSIBILITY OF SUCH DAMAGE. 264 */ 265 266 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 267 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 268 269 #ifndef InspectorTest TypeBuilders_h270 #define InspectorTest TypeBuilders_h271 272 #if ENABLE(INSPECTOR) 273 274 #include <inspector/InspectorJS TypeBuilders.h>275 #include <inspector/Inspector TypeBuilder.h>238 ### Begin File: InspectorTestProtocolTypes.h 239 /* 240 * Copyright (C) 2013 Google Inc. All rights reserved. 241 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 242 * Copyright (C) 2014 University of Washington. All rights reserved. 243 * 244 * Redistribution and use in source and binary forms, with or without 245 * modification, are permitted provided that the following conditions 246 * are met: 247 * 1. Redistributions of source code must retain the above copyright 248 * notice, this list of conditions and the following disclaimer. 249 * 2. Redistributions in binary form must reproduce the above copyright 250 * notice, this list of conditions and the following disclaimer in the 251 * documentation and/or other materials provided with the distribution. 252 * 253 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 254 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 255 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 256 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 257 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 258 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 259 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 260 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 261 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 262 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 263 * THE POSSIBILITY OF SUCH DAMAGE. 264 */ 265 266 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 267 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 268 269 #ifndef InspectorTestProtocolTypes_h 270 #define InspectorTestProtocolTypes_h 271 272 #if ENABLE(INSPECTOR) 273 274 #include <inspector/InspectorJSProtocolTypes.h> 275 #include <inspector/InspectorProtocolTypes.h> 276 276 #include <wtf/Assertions.h> 277 277 #include <wtf/PassRefPtr.h> … … 281 281 282 282 283 namespace TypeBuilder{283 namespace Protocol { 284 284 285 285 // Forward declarations. … … 319 319 320 320 321 } // namespace TypeBuilder322 323 } // namespace Inspector 324 325 #endif // ENABLE(INSPECTOR) 326 327 #endif // !defined(InspectorTest TypeBuilders_h)328 ### End File: InspectorTest TypeBuilders.h329 330 ### Begin File: InspectorTest TypeBuilders.cpp321 } // namespace Protocol 322 323 } // namespace Inspector 324 325 #endif // ENABLE(INSPECTOR) 326 327 #endif // !defined(InspectorTestProtocolTypes_h) 328 ### End File: InspectorTestProtocolTypes.h 329 330 ### Begin File: InspectorTestProtocolTypes.cpp 331 331 /* 332 332 * Copyright (C) 2013 Google Inc. All rights reserved. … … 360 360 361 361 #include "config.h" 362 #include "InspectorTest TypeBuilders.h"362 #include "InspectorTestProtocolTypes.h" 363 363 364 364 #if ENABLE(INSPECTOR) … … 368 368 namespace Inspector { 369 369 370 namespace TypeBuilder{370 namespace Protocol { 371 371 372 372 static const char* const enum_constant_values[] = { … … 386 386 387 387 388 } // namespace TypeBuilder389 390 } // namespace Inspector 391 392 #endif // ENABLE(INSPECTOR) 393 394 ### End File: InspectorTest TypeBuilders.cpp388 } // namespace Protocol 389 390 } // namespace Inspector 391 392 #endif // ENABLE(INSPECTOR) 393 394 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result
r172897 r172930 67 67 #if ENABLE(INSPECTOR) 68 68 69 #include "InspectorTest TypeBuilders.h"69 #include "InspectorTestProtocolTypes.h" 70 70 #include <inspector/InspectorBackendDispatcher.h> 71 71 #include <wtf/PassRefPtr.h> … … 169 169 #if ENABLE(INSPECTOR) 170 170 171 #include "InspectorTest TypeBuilders.h"171 #include "InspectorTestProtocolTypes.h" 172 172 #include <inspector/InspectorFrontendChannel.h> 173 173 #include <inspector/InspectorValues.h> … … 232 232 ### End File: InspectorTestFrontendDispatchers.cpp 233 233 234 ### Begin File: InspectorTest TypeBuilders.h234 ### Begin File: InspectorTestProtocolTypes.h 235 235 /* 236 236 * Copyright (C) 2013 Google Inc. All rights reserved. … … 263 263 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 264 264 265 #ifndef InspectorTest TypeBuilders_h266 #define InspectorTest TypeBuilders_h265 #ifndef InspectorTestProtocolTypes_h 266 #define InspectorTestProtocolTypes_h 267 267 268 268 #if ENABLE(INSPECTOR) 269 269 270 #include <inspector/InspectorJS TypeBuilders.h>271 #include <inspector/Inspector TypeBuilder.h>270 #include <inspector/InspectorJSProtocolTypes.h> 271 #include <inspector/InspectorProtocolTypes.h> 272 272 #include <wtf/Assertions.h> 273 273 #include <wtf/PassRefPtr.h> … … 277 277 278 278 279 namespace TypeBuilder{279 namespace Protocol { 280 280 281 281 // Forward declarations. … … 372 372 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 373 373 } 374 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;374 typedef Inspector::Protocol::StructItemTraits ItemTraits; 375 375 }; 376 376 … … 421 421 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 422 422 } 423 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;424 425 void setColumnNames(PassRefPtr<Inspector:: TypeBuilder::Array<String>> value)423 typedef Inspector::Protocol::StructItemTraits ItemTraits; 424 425 void setColumnNames(PassRefPtr<Inspector::Protocol::Array<String>> value) 426 426 { 427 427 InspectorObjectBase::setArray(ASCIILiteral("columnNames"), value); … … 448 448 } 449 449 450 void setError(PassRefPtr<Inspector:: TypeBuilder::Database::Error> value)450 void setError(PassRefPtr<Inspector::Protocol::Database::Error> value) 451 451 { 452 452 InspectorObjectBase::setObject(ASCIILiteral("error"), value); … … 485 485 public: 486 486 487 Builder<STATE | ColumnNamesSet>& setColumnNames(PassRefPtr<Inspector:: TypeBuilder::Array<String>> value)487 Builder<STATE | ColumnNamesSet>& setColumnNames(PassRefPtr<Inspector::Protocol::Array<String>> value) 488 488 { 489 489 COMPILE_ASSERT(!(STATE & ColumnNamesSet), property_columnNames_already_set); … … 520 520 } 521 521 522 Builder<STATE | ErrorSet>& setError(PassRefPtr<Inspector:: TypeBuilder::Database::Error> value)522 Builder<STATE | ErrorSet>& setError(PassRefPtr<Inspector::Protocol::Database::Error> value) 523 523 { 524 524 COMPILE_ASSERT(!(STATE & ErrorSet), property_error_already_set); … … 554 554 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 555 555 } 556 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;556 typedef Inspector::Protocol::StructItemTraits ItemTraits; 557 557 }; 558 558 … … 649 649 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 650 650 } 651 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;651 typedef Inspector::Protocol::StructItemTraits ItemTraits; 652 652 }; 653 653 … … 687 687 public: 688 688 689 Builder<STATE | ColumnNamesSet>& setColumnNames(PassRefPtr<Inspector:: TypeBuilder::Array<String>> value)689 Builder<STATE | ColumnNamesSet>& setColumnNames(PassRefPtr<Inspector::Protocol::Array<String>> value) 690 690 { 691 691 COMPILE_ASSERT(!(STATE & ColumnNamesSet), property_columnNames_already_set); … … 722 722 } 723 723 724 Builder<STATE | ErrorSet>& setError(PassRefPtr<Inspector:: TypeBuilder::Database::Error> value)724 Builder<STATE | ErrorSet>& setError(PassRefPtr<Inspector::Protocol::Database::Error> value) 725 725 { 726 726 COMPILE_ASSERT(!(STATE & ErrorSet), property_error_already_set); … … 756 756 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 757 757 } 758 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;758 typedef Inspector::Protocol::StructItemTraits ItemTraits; 759 759 }; 760 760 … … 763 763 764 764 765 } // namespace TypeBuilder765 } // namespace Protocol 766 766 767 767 } // namespace Inspector … … 769 769 #endif // ENABLE(INSPECTOR) 770 770 771 #endif // !defined(InspectorTest TypeBuilders_h)772 ### End File: InspectorTest TypeBuilders.h773 774 ### Begin File: InspectorTest TypeBuilders.cpp771 #endif // !defined(InspectorTestProtocolTypes_h) 772 ### End File: InspectorTestProtocolTypes.h 773 774 ### Begin File: InspectorTestProtocolTypes.cpp 775 775 /* 776 776 * Copyright (C) 2013 Google Inc. All rights reserved. … … 804 804 805 805 #include "config.h" 806 #include "InspectorTest TypeBuilders.h"806 #include "InspectorTestProtocolTypes.h" 807 807 808 808 #if ENABLE(INSPECTOR) … … 812 812 namespace Inspector { 813 813 814 namespace TypeBuilder{814 namespace Protocol { 815 815 816 816 static const char* const enum_constant_values[] = { … … 823 823 824 824 825 } // namespace TypeBuilder825 } // namespace Protocol 826 826 827 827 } // namespace Inspector … … 829 829 #endif // ENABLE(INSPECTOR) 830 830 831 ### End File: InspectorTest TypeBuilders.cpp831 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result
r172687 r172930 71 71 #if ENABLE(INSPECTOR) 72 72 73 #include "InspectorTest TypeBuilders.h"73 #include "InspectorTestProtocolTypes.h" 74 74 #include <inspector/InspectorBackendDispatcher.h> 75 75 #include <wtf/PassRefPtr.h> … … 173 173 #if ENABLE(INSPECTOR) 174 174 175 #include "InspectorTest TypeBuilders.h"175 #include "InspectorTestProtocolTypes.h" 176 176 #include <inspector/InspectorFrontendChannel.h> 177 177 #include <inspector/InspectorValues.h> … … 236 236 ### End File: InspectorTestFrontendDispatchers.cpp 237 237 238 ### Begin File: InspectorTest TypeBuilders.h238 ### Begin File: InspectorTestProtocolTypes.h 239 239 /* 240 240 * Copyright (C) 2013 Google Inc. All rights reserved. … … 267 267 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 268 268 269 #ifndef InspectorTest TypeBuilders_h270 #define InspectorTest TypeBuilders_h269 #ifndef InspectorTestProtocolTypes_h 270 #define InspectorTestProtocolTypes_h 271 271 272 272 #if ENABLE(INSPECTOR) 273 273 274 #include <inspector/InspectorJS TypeBuilders.h>275 #include <inspector/Inspector TypeBuilder.h>274 #include <inspector/InspectorJSProtocolTypes.h> 275 #include <inspector/InspectorProtocolTypes.h> 276 276 #include <wtf/Assertions.h> 277 277 #include <wtf/PassRefPtr.h> … … 281 281 282 282 283 namespace TypeBuilder{283 namespace Protocol { 284 284 285 285 // Forward declarations. … … 355 355 } 356 356 357 Builder<STATE | AnimalsSet>& setAnimals(Inspector:: TypeBuilder::Test::CastedAnimals value)357 Builder<STATE | AnimalsSet>& setAnimals(Inspector::Protocol::Test::CastedAnimals value) 358 358 { 359 359 COMPILE_ASSERT(!(STATE & AnimalsSet), property_animals_already_set); 360 m_result->setString(ASCIILiteral("animals"), Inspector:: TypeBuilder::getTestEnumConstantValue(static_cast<int>(value)));360 m_result->setString(ASCIILiteral("animals"), Inspector::Protocol::getTestEnumConstantValue(static_cast<int>(value))); 361 361 return castState<AnimalsSet>(); 362 362 } … … 369 369 } 370 370 371 Builder<STATE | TreeSet>& setTree(PassRefPtr<Inspector:: TypeBuilder::Test::RecursiveObject1> value)371 Builder<STATE | TreeSet>& setTree(PassRefPtr<Inspector::Protocol::Test::RecursiveObject1> value) 372 372 { 373 373 COMPILE_ASSERT(!(STATE & TreeSet), property_tree_already_set); … … 402 402 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 403 403 } 404 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;404 typedef Inspector::Protocol::StructItemTraits ItemTraits; 405 405 }; 406 406 … … 465 465 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 466 466 } 467 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;468 469 void setObj(PassRefPtr<Inspector:: TypeBuilder::Test::RecursiveObject2> value)467 typedef Inspector::Protocol::StructItemTraits ItemTraits; 468 469 void setObj(PassRefPtr<Inspector::Protocol::Test::RecursiveObject2> value) 470 470 { 471 471 InspectorObjectBase::setObject(ASCIILiteral("obj"), value); … … 519 519 return Builder<NoFieldsSet>(Inspector::InspectorObject::create()); 520 520 } 521 typedef Inspector:: TypeBuilder::StructItemTraits ItemTraits;522 523 void setObj(PassRefPtr<Inspector:: TypeBuilder::Test::RecursiveObject1> value)521 typedef Inspector::Protocol::StructItemTraits ItemTraits; 522 523 void setObj(PassRefPtr<Inspector::Protocol::Test::RecursiveObject1> value) 524 524 { 525 525 InspectorObjectBase::setObject(ASCIILiteral("obj"), value); … … 529 529 } // Test 530 530 531 template<> struct BindingTraits<Inspector:: TypeBuilder::Test::CastedAnimals> {531 template<> struct BindingTraits<Inspector::Protocol::Test::CastedAnimals> { 532 532 #if !ASSERT_DISABLED 533 533 static void assertValueHasExpectedType(Inspector::InspectorValue*); 534 534 #endif // !ASSERT_DISABLED 535 535 }; 536 template<> struct BindingTraits<Inspector:: TypeBuilder::Test::TypeNeedingCast> {537 static PassRefPtr<Inspector:: TypeBuilder::Test::TypeNeedingCast> runtimeCast(PassRefPtr<Inspector::InspectorValue> value);536 template<> struct BindingTraits<Inspector::Protocol::Test::TypeNeedingCast> { 537 static PassRefPtr<Inspector::Protocol::Test::TypeNeedingCast> runtimeCast(PassRefPtr<Inspector::InspectorValue> value); 538 538 #if !ASSERT_DISABLED 539 539 static void assertValueHasExpectedType(Inspector::InspectorValue*); 540 540 #endif // !ASSERT_DISABLED 541 541 }; 542 template<> struct BindingTraits<Inspector:: TypeBuilder::Test::RecursiveObject1> {542 template<> struct BindingTraits<Inspector::Protocol::Test::RecursiveObject1> { 543 543 #if !ASSERT_DISABLED 544 544 static void assertValueHasExpectedType(Inspector::InspectorValue*); 545 545 #endif // !ASSERT_DISABLED 546 546 }; 547 template<> struct BindingTraits<Inspector:: TypeBuilder::Test::RecursiveObject2> {547 template<> struct BindingTraits<Inspector::Protocol::Test::RecursiveObject2> { 548 548 #if !ASSERT_DISABLED 549 549 static void assertValueHasExpectedType(Inspector::InspectorValue*); … … 551 551 }; 552 552 553 } // namespace TypeBuilder553 } // namespace Protocol 554 554 555 555 } // namespace Inspector … … 557 557 #endif // ENABLE(INSPECTOR) 558 558 559 #endif // !defined(InspectorTest TypeBuilders_h)560 ### End File: InspectorTest TypeBuilders.h561 562 ### Begin File: InspectorTest TypeBuilders.cpp559 #endif // !defined(InspectorTestProtocolTypes_h) 560 ### End File: InspectorTestProtocolTypes.h 561 562 ### Begin File: InspectorTestProtocolTypes.cpp 563 563 /* 564 564 * Copyright (C) 2013 Google Inc. All rights reserved. … … 592 592 593 593 #include "config.h" 594 #include "InspectorTest TypeBuilders.h"594 #include "InspectorTestProtocolTypes.h" 595 595 596 596 #if ENABLE(INSPECTOR) … … 600 600 namespace Inspector { 601 601 602 namespace TypeBuilder{602 namespace Protocol { 603 603 604 604 static const char* const enum_constant_values[] = { … … 619 619 620 620 #if !ASSERT_DISABLED 621 void BindingTraits<Inspector:: TypeBuilder::Test::CastedAnimals>::assertValueHasExpectedType(Inspector::InspectorValue* value)621 void BindingTraits<Inspector::Protocol::Test::CastedAnimals>::assertValueHasExpectedType(Inspector::InspectorValue* value) 622 622 { 623 623 String s; … … 629 629 630 630 #if !ASSERT_DISABLED 631 void BindingTraits<Inspector:: TypeBuilder::Test::TypeNeedingCast>::assertValueHasExpectedType(Inspector::InspectorValue* value)631 void BindingTraits<Inspector::Protocol::Test::TypeNeedingCast>::assertValueHasExpectedType(Inspector::InspectorValue* value) 632 632 { 633 633 RefPtr<InspectorObject> object; … … 647 647 InspectorObject::iterator animalsPos = object->find(ASCIILiteral("animals")); 648 648 ASSERT(animalsPos != object->end()); 649 BindingTraits<Inspector:: TypeBuilder::Test::CastedAnimals>::assertValueHasExpectedType(animalsPos->value.get());649 BindingTraits<Inspector::Protocol::Test::CastedAnimals>::assertValueHasExpectedType(animalsPos->value.get()); 650 650 } 651 651 { … … 657 657 InspectorObject::iterator treePos = object->find(ASCIILiteral("tree")); 658 658 ASSERT(treePos != object->end()); 659 BindingTraits<Inspector:: TypeBuilder::Test::RecursiveObject1>::assertValueHasExpectedType(treePos->value.get());659 BindingTraits<Inspector::Protocol::Test::RecursiveObject1>::assertValueHasExpectedType(treePos->value.get()); 660 660 } 661 661 … … 666 666 #endif // !ASSERT_DISABLED 667 667 668 PassRefPtr<Inspector:: TypeBuilder::Test::TypeNeedingCast> BindingTraits<Inspector::TypeBuilder::Test::TypeNeedingCast>::runtimeCast(PassRefPtr<Inspector::InspectorValue> value)668 PassRefPtr<Inspector::Protocol::Test::TypeNeedingCast> BindingTraits<Inspector::Protocol::Test::TypeNeedingCast>::runtimeCast(PassRefPtr<Inspector::InspectorValue> value) 669 669 { 670 670 RefPtr<Inspector::InspectorObject> object; … … 672 672 ASSERT_UNUSED(castRes, castRes); 673 673 #if !ASSERT_DISABLED 674 BindingTraits<Inspector:: TypeBuilder::Test::TypeNeedingCast>::assertValueHasExpectedType(object.get());674 BindingTraits<Inspector::Protocol::Test::TypeNeedingCast>::assertValueHasExpectedType(object.get()); 675 675 #endif // !ASSERT_DISABLED 676 COMPILE_ASSERT(sizeof(Inspector:: TypeBuilder::Test::TypeNeedingCast) == sizeof(Inspector::InspectorObjectBase), type_cast_problem);677 return static_cast<Inspector:: TypeBuilder::Test::TypeNeedingCast*>(static_cast<Inspector::InspectorObjectBase*>(object.get()));676 COMPILE_ASSERT(sizeof(Inspector::Protocol::Test::TypeNeedingCast) == sizeof(Inspector::InspectorObjectBase), type_cast_problem); 677 return static_cast<Inspector::Protocol::Test::TypeNeedingCast*>(static_cast<Inspector::InspectorObjectBase*>(object.get())); 678 678 } 679 679 680 680 681 681 #if !ASSERT_DISABLED 682 void BindingTraits<Inspector:: TypeBuilder::Test::RecursiveObject1>::assertValueHasExpectedType(Inspector::InspectorValue* value)682 void BindingTraits<Inspector::Protocol::Test::RecursiveObject1>::assertValueHasExpectedType(Inspector::InspectorValue* value) 683 683 { 684 684 RefPtr<InspectorObject> object; … … 690 690 InspectorObject::iterator objPos = object->find(ASCIILiteral("obj")); 691 691 if (objPos != object->end()) { 692 BindingTraits<Inspector:: TypeBuilder::Test::RecursiveObject2>::assertValueHasExpectedType(objPos->value.get());692 BindingTraits<Inspector::Protocol::Test::RecursiveObject2>::assertValueHasExpectedType(objPos->value.get()); 693 693 ++foundPropertiesCount; 694 694 } … … 700 700 701 701 #if !ASSERT_DISABLED 702 void BindingTraits<Inspector:: TypeBuilder::Test::RecursiveObject2>::assertValueHasExpectedType(Inspector::InspectorValue* value)702 void BindingTraits<Inspector::Protocol::Test::RecursiveObject2>::assertValueHasExpectedType(Inspector::InspectorValue* value) 703 703 { 704 704 RefPtr<InspectorObject> object; … … 710 710 InspectorObject::iterator objPos = object->find(ASCIILiteral("obj")); 711 711 if (objPos != object->end()) { 712 BindingTraits<Inspector:: TypeBuilder::Test::RecursiveObject1>::assertValueHasExpectedType(objPos->value.get());712 BindingTraits<Inspector::Protocol::Test::RecursiveObject1>::assertValueHasExpectedType(objPos->value.get()); 713 713 ++foundPropertiesCount; 714 714 } … … 719 719 #endif // !ASSERT_DISABLED 720 720 721 } // namespace TypeBuilder721 } // namespace Protocol 722 722 723 723 } // namespace Inspector … … 725 725 #endif // ENABLE(INSPECTOR) 726 726 727 ### End File: InspectorTest TypeBuilders.cpp727 ### End File: InspectorTestProtocolTypes.cpp -
trunk/Source/JavaScriptCore/runtime/TypeProfiler.cpp
r172820 r172930 27 27 #include "TypeProfiler.h" 28 28 29 #include "InspectorJS TypeBuilders.h"29 #include "InspectorJSProtocolTypes.h" 30 30 #include "TypeLocation.h" 31 31 … … 66 66 } 67 67 68 void TypeProfiler::getTypesForVariableAtOffsetForInspector(TypeProfilerSearchDescriptor descriptor, unsigned divot, intptr_t sourceID, RefPtr<Inspector:: TypeBuilder::Runtime::TypeDescription>& description)68 void TypeProfiler::getTypesForVariableAtOffsetForInspector(TypeProfilerSearchDescriptor descriptor, unsigned divot, intptr_t sourceID, RefPtr<Inspector::Protocol::Runtime::TypeDescription>& description) 69 69 { 70 70 TypeLocation* location = findLocation(divot, sourceID, descriptor); -
trunk/Source/JavaScriptCore/runtime/TypeProfiler.h
r172820 r172930 34 34 #include <wtf/text/WTFString.h> 35 35 36 namespace Inspector { namespace TypeBuilder{ namespace Runtime {36 namespace Inspector { namespace Protocol { namespace Runtime { 37 37 class TypeDescription; 38 38 }}} … … 96 96 public: 97 97 void logTypesForTypeLocation(TypeLocation*); 98 void getTypesForVariableAtOffsetForInspector(TypeProfilerSearchDescriptor, unsigned divot, intptr_t sourceID, RefPtr<Inspector:: TypeBuilder::Runtime::TypeDescription>&);98 void getTypesForVariableAtOffsetForInspector(TypeProfilerSearchDescriptor, unsigned divot, intptr_t sourceID, RefPtr<Inspector::Protocol::Runtime::TypeDescription>&); 99 99 void insertNewLocation(TypeLocation*); 100 100 FunctionHasExecutedCache* functionHasExecutedCache() { return &m_functionHasExecutedCache; } -
trunk/Source/JavaScriptCore/runtime/TypeSet.cpp
r172804 r172930 27 27 #include "TypeSet.h" 28 28 29 #include "InspectorJS TypeBuilders.h"29 #include "InspectorJSProtocolTypes.h" 30 30 #include "JSCJSValue.h" 31 31 #include "JSCJSValueInlines.h" … … 214 214 } 215 215 216 PassRefPtr<Inspector:: TypeBuilder::Array<String>> TypeSet::allPrimitiveTypeNames() const217 { 218 RefPtr<Inspector:: TypeBuilder::Array<String>> seen = Inspector::TypeBuilder::Array<String>::create();216 PassRefPtr<Inspector::Protocol::Array<String>> TypeSet::allPrimitiveTypeNames() const 217 { 218 RefPtr<Inspector::Protocol::Array<String>> seen = Inspector::Protocol::Array<String>::create(); 219 219 if (m_seenTypes & TypeUndefined) 220 220 seen->addItem("Undefined"); … … 233 233 } 234 234 235 PassRefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Runtime::StructureDescription>> TypeSet::allStructureRepresentations() const236 { 237 RefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Runtime::StructureDescription>> description = Inspector::TypeBuilder::Array<Inspector::TypeBuilder::Runtime::StructureDescription>::create();235 PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::StructureDescription>> TypeSet::allStructureRepresentations() const 236 { 237 RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::StructureDescription>> description = Inspector::Protocol::Array<Inspector::Protocol::Runtime::StructureDescription>::create(); 238 238 239 239 for (size_t i = 0; i < m_structureHistory.size(); i++) … … 361 361 } 362 362 363 PassRefPtr<Inspector:: TypeBuilder::Runtime::StructureDescription> StructureShape::inspectorRepresentation()364 { 365 RefPtr<Inspector:: TypeBuilder::Runtime::StructureDescription> base = Inspector::TypeBuilder::Runtime::StructureDescription::create();366 RefPtr<Inspector:: TypeBuilder::Runtime::StructureDescription> currentObject = base;363 PassRefPtr<Inspector::Protocol::Runtime::StructureDescription> StructureShape::inspectorRepresentation() 364 { 365 RefPtr<Inspector::Protocol::Runtime::StructureDescription> base = Inspector::Protocol::Runtime::StructureDescription::create(); 366 RefPtr<Inspector::Protocol::Runtime::StructureDescription> currentObject = base; 367 367 RefPtr<StructureShape> currentShape = this; 368 368 369 369 while (currentShape) { 370 auto fields = Inspector:: TypeBuilder::Array<String>::create();370 auto fields = Inspector::Protocol::Array<String>::create(); 371 371 for (auto it = currentShape->m_fields.begin(), end = currentShape->m_fields.end(); it != end; ++it) 372 372 fields->addItem((*it).get()); … … 376 376 377 377 if (currentShape->m_proto) { 378 RefPtr<Inspector:: TypeBuilder::Runtime::StructureDescription> nextObject = Inspector::TypeBuilder::Runtime::StructureDescription::create();378 RefPtr<Inspector::Protocol::Runtime::StructureDescription> nextObject = Inspector::Protocol::Runtime::StructureDescription::create(); 379 379 currentObject->setPrototypeStructure(nextObject); 380 380 currentObject = nextObject; -
trunk/Source/JavaScriptCore/runtime/TypeSet.h
r172804 r172930 34 34 35 35 namespace Inspector { 36 namespace TypeBuilder{36 namespace Protocol { 37 37 template<typename T> class Array; 38 38 … … 71 71 void addProperty(RefPtr<StringImpl>); 72 72 String stringRepresentation(); 73 PassRefPtr<Inspector:: TypeBuilder::Runtime::StructureDescription> inspectorRepresentation();73 PassRefPtr<Inspector::Protocol::Runtime::StructureDescription> inspectorRepresentation(); 74 74 void setConstructorName(String name) { m_constructorName = (name.isEmpty() ? "Object" : name); } 75 75 String constructorName() { return m_constructorName; } … … 95 95 JS_EXPORT_PRIVATE String seenTypes() const; 96 96 String displayName() const; 97 PassRefPtr<Inspector:: TypeBuilder::Array<String>> allPrimitiveTypeNames() const;98 PassRefPtr<Inspector:: TypeBuilder::Array<Inspector::TypeBuilder::Runtime::StructureDescription>> allStructureRepresentations() const;97 PassRefPtr<Inspector::Protocol::Array<String>> allPrimitiveTypeNames() const; 98 PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::StructureDescription>> allStructureRepresentations() const; 99 99 100 100 private:
Note:
See TracChangeset
for help on using the changeset viewer.