source: webkit/trunk/Source/JavaScriptCore/DerivedSources.make@ 174455

Last change on this file since 174455 was 173198, checked in by Brian Burg, 11 years ago

Web Inspector: remove ProfilerAgent and legacy profiler files in the frontend
https://bugs.webkit.org/show_bug.cgi?id=136462

Reviewed by Timothy Hatcher.

Source/JavaScriptCore:

It's not used by the frontend anymore.

  • inspector/JSConsoleClient.cpp:

(Inspector::JSConsoleClient::JSConsoleClient): Stub out console.profile/profileEnd
methods since they didn't work for JSContexts anyway.
(Inspector::JSConsoleClient::profile):
(Inspector::JSConsoleClient::profileEnd):

  • inspector/JSConsoleClient.h:
  • inspector/JSGlobalObjectInspectorController.cpp:

(Inspector::JSGlobalObjectInspectorController::JSGlobalObjectInspectorController):

  • inspector/agents/InspectorProfilerAgent.cpp: Removed.
  • inspector/agents/InspectorProfilerAgent.h: Removed.
  • inspector/agents/JSGlobalObjectProfilerAgent.cpp: Removed.
  • inspector/agents/JSGlobalObjectProfilerAgent.h: Removed.
  • inspector/protocol/Profiler.json: Removed.

Source/WebCore:

It's not used by the frontend anymore.

No new tests, no behavior changed.

  • CMakeLists.txt:
  • ForwardingHeaders/inspector/agents/InspectorProfilerAgent.h: Removed.
  • WebCore.order:
  • WebCore.vcxproj/WebCore.vcxproj:
  • WebCore.vcxproj/WebCore.vcxproj.filters:
  • WebCore.xcodeproj/project.pbxproj:
  • inspector/InspectorAllInOne.cpp:
  • inspector/InspectorController.cpp:

(WebCore::InspectorController::InspectorController):

  • inspector/InspectorController.h:
  • inspector/InspectorInstrumentation.cpp:

(WebCore::InspectorInstrumentation::didCommitLoadImpl):

  • inspector/InstrumentingAgents.cpp:

(WebCore::InstrumentingAgents::InstrumentingAgents):
(WebCore::InstrumentingAgents::reset):

  • inspector/InstrumentingAgents.h:

(WebCore::InstrumentingAgents::inspectorProfilerAgent): Deleted.
(WebCore::InstrumentingAgents::setInspectorProfilerAgent): Deleted.

  • inspector/PageProfilerAgent.cpp: Removed.
  • inspector/PageProfilerAgent.h: Removed.
  • inspector/TimelineRecordFactory.cpp: Moved these builders to their only callsite.

(WebCore::buildInspectorObject):
(WebCore::buildProfileInspectorObject):
(WebCore::TimelineRecordFactory::appendProfile):

  • inspector/WebProfilerAgent.cpp: Removed.
  • inspector/WebProfilerAgent.h: Removed.
  • inspector/WorkerInspectorController.cpp:

(WebCore::WorkerInspectorController::WorkerInspectorController):

  • inspector/WorkerProfilerAgent.cpp: Removed.
  • inspector/WorkerProfilerAgent.h: Removed.
  • inspector/protocol/Timeline.json:

Source/WebInspectorUI:

The legacy profiler manager didn't do anything, and its views and models
have been superseded by new views and models based on the Timeline classes.

  • .eslintrc:
  • UserInterface/Base/Main.js:

(WebInspector.loaded):
(WebInspector.openURL): Remove profile URL handling code.

  • UserInterface/Controllers/LegacyProfileManager.js: Removed.
  • UserInterface/Main.html:
  • UserInterface/Protocol/ConsoleObserver.js:

(WebInspector.ConsoleObserver.prototype.messageAdded):

  • UserInterface/Protocol/InspectorFrontendAPI.js:

(InspectorFrontendAPI.isProfilingJavaScript): Deleted.
(InspectorFrontendAPI.startProfilingJavaScript): Deleted.
(InspectorFrontendAPI.stopProfilingJavaScript): Deleted.

  • UserInterface/Protocol/LegacyProfilerObserver.js: Removed.
  • UserInterface/Views/LegacyBottomUpProfileDataGridTree.js: Removed.
  • UserInterface/Views/LegacyJavaScriptProfileObject.js: Removed.
  • UserInterface/Views/LegacyJavaScriptProfileType.js: Removed.
  • UserInterface/Views/LegacyJavaScriptProfileView.css: Removed.
  • UserInterface/Views/LegacyJavaScriptProfileView.js: Removed.
  • UserInterface/Views/LegacyProfileDataGridTree.js: Removed.
  • UserInterface/Views/LegacyProfileObject.js: Removed.
  • UserInterface/Views/LegacyProfileType.js: Removed.
  • UserInterface/Views/LegacyProfileView.css: Removed.
  • UserInterface/Views/LegacyProfileView.js: Removed.
  • UserInterface/Views/LegacyTopDownProfileDataGridTree.js: Removed.
  • Property svn:eol-style set to native
File size: 7.3 KB
Line 
1# Copyright (C) 2006, 2007, 2008, 2009, 2011, 2013 Apple Inc. All rights reserved.
2#
3# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions
5# are met:
6#
7# 1. Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.
9# 2. Redistributions in binary form must reproduce the above copyright
10# notice, this list of conditions and the following disclaimer in the
11# documentation and/or other materials provided with the distribution.
12# 3. Neither the name of Apple Inc. ("Apple") nor the names of
13# its contributors may be used to endorse or promote products derived
14# from this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
17# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19# DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
20# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
27VPATH = \
28 $(JavaScriptCore) \
29 $(JavaScriptCore)/parser \
30 $(JavaScriptCore)/runtime \
31 $(JavaScriptCore)/interpreter \
32 $(JavaScriptCore)/jit \
33 $(JavaScriptCore)/builtins \
34#
35
36.PHONY : all
37all : \
38 ArrayConstructor.lut.h \
39 ArrayPrototype.lut.h \
40 BooleanPrototype.lut.h \
41 DateConstructor.lut.h \
42 DatePrototype.lut.h \
43 ErrorPrototype.lut.h \
44 JSDataViewPrototype.lut.h \
45 JSONObject.lut.h \
46 JSGlobalObject.lut.h \
47 JSPromisePrototype.lut.h \
48 JSPromiseConstructor.lut.h \
49 KeywordLookup.h \
50 Lexer.lut.h \
51 NamePrototype.lut.h \
52 NumberConstructor.lut.h \
53 NumberPrototype.lut.h \
54 ObjectConstructor.lut.h \
55 RegExpConstructor.lut.h \
56 RegExpPrototype.lut.h \
57 RegExpJitTables.h \
58 RegExpObject.lut.h \
59 StringConstructor.lut.h \
60 udis86_itab.h \
61 Bytecodes.h \
62 InitBytecodes.asm \
63 JSCBuiltins \
64#
65
66# builtin functions
67.PHONY: JSCBuiltins
68
69# Windows has specific needs for specifying the path to its interpreters
70ifeq ($(OS),Windows_NT)
71 PYTHON = /usr/bin/python
72 PERL = /usr/bin/perl
73else
74 PYTHON = python
75 PERL = perl
76endif
77# --------
78
79JSCBuiltins: $(JavaScriptCore)/generate-js-builtins JSCBuiltins.h JSCBuiltins.cpp
80JSCBuiltins.h: $(JavaScriptCore)/generate-js-builtins $(JavaScriptCore)/builtins/*.js
81 $(PYTHON) $^ $@
82
83JSCBuiltins.cpp: JSCBuiltins.h
84
85# lookup tables for classes
86
87%.lut.h: create_hash_table %.cpp
88 $^ -i > $@
89Lexer.lut.h: create_hash_table Keywords.table
90 $^ > $@
91
92# character tables for Yarr
93
94RegExpJitTables.h: create_regex_tables
95 $(PYTHON) $^ > $@
96
97KeywordLookup.h: KeywordLookupGenerator.py Keywords.table
98 $(PYTHON) $^ > $@
99
100# udis86 instruction tables
101
102udis86_itab.h: $(JavaScriptCore)/disassembler/udis86/itab.py $(JavaScriptCore)/disassembler/udis86/optable.xml
103 (PYTHONPATH=$(JavaScriptCore)/disassembler/udis86 $(PYTHON) $(JavaScriptCore)/disassembler/udis86/itab.py $(JavaScriptCore)/disassembler/udis86/optable.xml || exit 1)
104
105# Bytecode files
106
107Bytecodes.h: $(JavaScriptCore)/generate-bytecode-files $(JavaScriptCore)/bytecode/BytecodeList.json
108 $(PYTHON) $(JavaScriptCore)/generate-bytecode-files --bytecodes_h Bytecodes.h $(JavaScriptCore)/bytecode/BytecodeList.json
109
110InitBytecodes.asm: $(JavaScriptCore)/generate-bytecode-files $(JavaScriptCore)/bytecode/BytecodeList.json
111 $(PYTHON) $(JavaScriptCore)/generate-bytecode-files --init_bytecodes_asm InitBytecodes.asm $(JavaScriptCore)/bytecode/BytecodeList.json
112
113# Inspector interfaces
114
115INSPECTOR_DOMAINS = \
116 $(JavaScriptCore)/inspector/protocol/Console.json \
117 $(JavaScriptCore)/inspector/protocol/Debugger.json \
118 $(JavaScriptCore)/inspector/protocol/GenericTypes.json \
119 $(JavaScriptCore)/inspector/protocol/InspectorDomain.json \
120 $(JavaScriptCore)/inspector/protocol/Runtime.json \
121#
122
123INSPECTOR_GENERATOR_SCRIPTS = \
124 $(JavaScriptCore)/inspector/scripts/codegen/__init__.py \
125 $(JavaScriptCore)/inspector/scripts/codegen/generate_backend_commands.py \
126 $(JavaScriptCore)/inspector/scripts/codegen/generate_backend_dispatcher_header.py \
127 $(JavaScriptCore)/inspector/scripts/codegen/generate_backend_dispatcher_implementation.py \
128 $(JavaScriptCore)/inspector/scripts/codegen/generate_frontend_dispatcher_header.py \
129 $(JavaScriptCore)/inspector/scripts/codegen/generate_frontend_dispatcher_implementation.py \
130 $(JavaScriptCore)/inspector/scripts/codegen/generate_protocol_types_header.py \
131 $(JavaScriptCore)/inspector/scripts/codegen/generate_protocol_types_implementation.py \
132 $(JavaScriptCore)/inspector/scripts/codegen/generator_templates.py \
133 $(JavaScriptCore)/inspector/scripts/codegen/generator.py \
134 $(JavaScriptCore)/inspector/scripts/codegen/models.py \
135 $(JavaScriptCore)/inspector/scripts/generate-combined-inspector-json.py \
136 $(JavaScriptCore)/inspector/scripts/generate-inspector-protocol-bindings.py \
137#
138
139all : \
140 InspectorJS.json \
141 InspectorJSFrontendDispatchers.h \
142 InjectedScriptSource.h \
143#
144
145# The combined JSON file depends on the actual set of domains and their file contents, so that
146# adding, modifying, or removing domains will trigger regeneration of inspector files.
147
148.PHONY: force
149EnabledInspectorDomains : force
150 echo '$(INSPECTOR_DOMAINS)' | cmp -s - $@ || echo '$(INSPECTOR_DOMAINS)' > $@
151
152InspectorJS.json : inspector/scripts/generate-combined-inspector-json.py $(INSPECTOR_DOMAINS) EnabledInspectorDomains
153 $(PYTHON) $(JavaScriptCore)/inspector/scripts/generate-combined-inspector-json.py $(INSPECTOR_DOMAINS) > ./InspectorJS.json
154
155# Inspector Backend Dispatchers, Frontend Dispatchers, Type Builders
156InspectorJSFrontendDispatchers.h : InspectorJS.json $(INSPECTOR_GENERATOR_SCRIPTS)
157 $(PYTHON) $(JavaScriptCore)/inspector/scripts/generate-inspector-protocol-bindings.py --framework JavaScriptCore --outputDir . ./InspectorJS.json
158
159InjectedScriptSource.h : inspector/InjectedScriptSource.js $(JavaScriptCore)/inspector/scripts/jsmin.py $(JavaScriptCore)/inspector/scripts/xxd.pl
160 echo "//# sourceURL=__WebInspectorInjectedScript__" > ./InjectedScriptSource.min.js
161 $(PYTHON) $(JavaScriptCore)/inspector/scripts/jsmin.py < $(JavaScriptCore)/inspector/InjectedScriptSource.js >> ./InjectedScriptSource.min.js
162 $(PERL) $(JavaScriptCore)/inspector/scripts/xxd.pl InjectedScriptSource_js ./InjectedScriptSource.min.js InjectedScriptSource.h
163 rm -f ./InjectedScriptSource.min.js
164
165# Web Replay inputs generator
166
167INPUT_GENERATOR_SCRIPTS = \
168 $(JavaScriptCore)/replay/scripts/CodeGeneratorReplayInputs.py \
169 $(JavaScriptCore)/replay/scripts/CodeGeneratorReplayInputsTemplates.py \
170#
171
172INPUT_GENERATOR_SPECIFICATIONS = \
173 $(JavaScriptCore)/replay/JSInputs.json \
174#
175
176all : JSReplayInputs.h
177
178JSReplayInputs.h : $(INPUT_GENERATOR_SPECIFICATIONS) $(INPUT_GENERATOR_SCRIPTS)
179 $(PYTHON) $(JavaScriptCore)/replay/scripts/CodeGeneratorReplayInputs.py --outputDir . --framework JavaScriptCore $(INPUT_GENERATOR_SPECIFICATIONS)
Note: See TracBrowser for help on using the repository browser.