Bug 1614622 part 8 - Remove optimization tracking files. r=djvj

Differential Revision: https://phabricator.services.mozilla.com/D62877

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jan de Mooij 2020-02-17 09:17:46 +00:00
parent 5c0973b9b0
commit 5d00b77203
15 changed files with 1 additions and 312 deletions

View File

@ -1,6 +1,5 @@
component_engine = ('Core', 'JavaScript Engine')
component_gc = ('Core', 'JavaScript: GC')
component_jit = ('Core', 'JavaScript Engine: JIT')
with Files("**"):
BUG_COMPONENT = component_engine
@ -9,9 +8,6 @@ for header in ('GCAnnotations.h', 'GCAPI.h', 'HeapAPI.h', 'RootingAPI.h', 'Slice
with Files('public/' + header):
BUG_COMPONENT = component_gc
with Files('public/TrackedOptimizationInfo.h'):
BUG_COMPONENT = component_jit
with Files("src/**"):
SCHEDULES.inclusive += ['jittest', 'jsreftest']

View File

@ -1,207 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef js_TrackedOptimizationInfo_h
#define js_TrackedOptimizationInfo_h
#include "mozilla/Maybe.h"
namespace JS {
#define TRACKED_STRATEGY_LIST(_) \
_(GetProp_ArgumentsLength) \
_(GetProp_ArgumentsCallee) \
_(GetProp_InferredConstant) \
_(GetProp_Constant) \
_(GetProp_NotDefined) \
_(GetProp_StaticName) \
_(GetProp_TypedObject) \
_(GetProp_DefiniteSlot) \
_(GetProp_CommonGetter) \
_(GetProp_InlineAccess) \
_(GetProp_InlineProtoAccess) \
_(GetProp_Innerize) \
_(GetProp_InlineCache) \
_(GetProp_ModuleNamespace) \
\
_(SetProp_CommonSetter) \
_(SetProp_TypedObject) \
_(SetProp_DefiniteSlot) \
_(SetProp_InlineAccess) \
_(SetProp_InlineCache) \
\
_(GetElem_TypedObject) \
_(GetElem_CallSiteObject) \
_(GetElem_Dense) \
_(GetElem_TypedArray) \
_(GetElem_String) \
_(GetElem_Arguments) \
_(GetElem_ArgumentsInlinedConstant) \
_(GetElem_ArgumentsInlinedSwitch) \
_(GetElem_InlineCache) \
\
_(SetElem_TypedObject) \
_(SetElem_TypedArray) \
_(SetElem_Dense) \
_(SetElem_Arguments) \
_(SetElem_InlineCache) \
\
_(BinaryArith_Concat) \
_(BinaryArith_SpecializedTypes) \
_(BinaryArith_SpecializedOnBaselineTypes) \
_(BinaryArith_Call) \
\
_(UnaryArith_SpecializedTypes) \
_(UnaryArith_SpecializedOnBaselineTypes) \
_(UnaryArith_InlineCache) \
\
_(InlineCache_OptimizedStub) \
\
_(NewArray_TemplateObject) \
_(NewArray_Call) \
\
_(NewObject_TemplateObject) \
_(NewObject_Call) \
\
_(Compare_SpecializedTypes) \
_(Compare_Bitwise) \
_(Compare_SpecializedOnBaselineTypes) \
_(Compare_Call) \
_(Compare_Character) \
\
_(Call_Inline)
// Ordering is important below. All outcomes before GenericSuccess will be
// considered failures, and all outcomes after GenericSuccess will be
// considered successes.
#define TRACKED_OUTCOME_LIST(_) \
_(GenericFailure) \
_(Disabled) \
_(NoTypeInfo) \
_(NoShapeInfo) \
_(UnknownProperties) \
_(Singleton) \
_(NotSingleton) \
_(NotFixedSlot) \
_(InconsistentFixedSlot) \
_(NotObject) \
_(NotStruct) \
_(NotUndefined) \
_(StructNoField) \
_(NeedsTypeBarrier) \
_(InDictionaryMode) \
_(MultiProtoPaths) \
_(NonWritableProperty) \
_(ProtoIndexedProps) \
_(ArrayBadFlags) \
_(ArrayDoubleConversion) \
_(ArrayRange) \
_(ArraySeenNegativeIndex) \
_(ArraySeenNonIntegerIndex) \
_(TypedObjectHasDetachedBuffer) \
_(TypedObjectArrayRange) \
_(AccessNotDense) \
_(AccessNotTypedObject) \
_(AccessNotTypedArray) \
_(AccessNotString) \
_(OperandNotString) \
_(OperandNotNumber) \
_(OperandNotSimpleArith) \
_(OperandNotEasilyCoercibleToString) \
_(OutOfBounds) \
_(IndexType) \
_(NotModuleNamespace) \
_(UnknownProperty) \
_(NoTemplateObject) \
_(LengthTooBig) \
_(SpeculationOnInputTypesFailed) \
_(RelationalCompare) \
_(OperandTypeNotBitwiseComparable) \
_(OperandMaybeEmulatesUndefined) \
_(LoosyUndefinedNullCompare) \
_(LoosyInt32BooleanCompare) \
_(CallsValueOf) \
_(StrictCompare) \
_(InitHole) \
\
_(CantInlineGeneric) \
_(CantInlineNoTarget) \
_(CantInlineNotInterpreted) \
_(CantInlineNoBaseline) \
_(CantInlineNoJitScript) \
_(CantInlineLazy) \
_(CantInlineNotConstructor) \
_(CantInlineClassConstructor) \
_(CantInlineDisabledIon) \
_(CantInlineTooManyArgs) \
_(CantInlineNeedsArgsObj) \
_(CantInlineDebuggee) \
_(CantInlineExceededDepth) \
_(CantInlineExceededTotalBytecodeLength) \
_(CantInlineBigCaller) \
_(CantInlineBigCallee) \
_(CantInlineBigCalleeInlinedBytecodeLength) \
_(CantInlineCrossRealm) \
_(CantInlineNotHot) \
_(CantInlineNotInDispatch) \
_(CantInlineUnreachable) \
_(CantInlineNativeBadForm) \
_(CantInlineNativeBadType) \
_(CantInlineNativeNoTemplateObj) \
_(CantInlineBound) \
_(CantInlineNativeNoSpecialization) \
_(CantInlineUnexpectedNewTarget) \
_(HasCommonInliningPath) \
\
_(GenericSuccess) \
_(Inlined) \
_(DOM) \
_(Monomorphic) \
_(Polymorphic)
#define TRACKED_TYPESITE_LIST(_) \
_(Receiver) \
_(Operand) \
_(Index) \
_(Value) \
_(Call_Target) \
_(Call_This) \
_(Call_Arg) \
_(Call_Return)
enum class TrackedStrategy : uint32_t {
#define STRATEGY_OP(name) name,
TRACKED_STRATEGY_LIST(STRATEGY_OP)
#undef STRATEGY_OPT
Count
};
enum class TrackedOutcome : uint32_t {
#define OUTCOME_OP(name) name,
TRACKED_OUTCOME_LIST(OUTCOME_OP)
#undef OUTCOME_OP
Count
};
enum class TrackedTypeSite : uint32_t {
#define TYPESITE_OP(name) name,
TRACKED_TYPESITE_LIST(TYPESITE_OP)
#undef TYPESITE_OP
Count
};
JS_PUBLIC_API const char* TrackedStrategyString(TrackedStrategy strategy);
JS_PUBLIC_API const char* TrackedOutcomeString(TrackedOutcome outcome);
JS_PUBLIC_API const char* TrackedTypeSiteString(TrackedTypeSite site);
} // namespace JS
#endif // js_TrackedOptimizationInfo_h

View File

@ -53,10 +53,6 @@ using mozilla::DebugOnly;
using mozilla::Maybe;
using mozilla::Nothing;
using JS::TrackedOutcome;
using JS::TrackedStrategy;
using JS::TrackedTypeSite;
class jit::BaselineFrameInspector {
public:
TypeSet::Type thisType;

View File

@ -20,7 +20,6 @@
#include "jit/MIR.h"
#include "jit/MIRGenerator.h"
#include "jit/MIRGraph.h"
#include "jit/OptimizationTracking.h"
#include "jit/TIOracle.h"
namespace js {

View File

@ -10,7 +10,7 @@
#include "jit/CompactBuffer.h"
#include "jit/CompileInfo.h"
#include "jit/ExecutableAllocator.h"
#include "jit/OptimizationTracking.h"
#include "jit/shared/Assembler-shared.h"
namespace js {
namespace jit {

View File

@ -48,7 +48,6 @@ using mozilla::Maybe;
using JS::RegExpFlag;
using JS::RegExpFlags;
using JS::TrackedOutcome;
namespace js {
namespace jit {

View File

@ -1,67 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jit/OptimizationTracking.h"
#include "ds/Sort.h"
#include "jit/IonBuilder.h"
#include "jit/JitcodeMap.h"
#include "jit/JitSpewer.h"
#include "js/TrackedOptimizationInfo.h"
#include "util/Text.h"
#include "vm/ObjectGroup-inl.h"
#include "vm/TypeInference-inl.h"
using namespace js;
using namespace js::jit;
using mozilla::Maybe;
using mozilla::Nothing;
using mozilla::Some;
using JS::TrackedOutcome;
using JS::TrackedStrategy;
using JS::TrackedTypeSite;
JS_PUBLIC_API const char* JS::TrackedStrategyString(TrackedStrategy strategy) {
switch (strategy) {
#define STRATEGY_CASE(name) \
case TrackedStrategy::name: \
return #name;
TRACKED_STRATEGY_LIST(STRATEGY_CASE)
#undef STRATEGY_CASE
default:
MOZ_CRASH("bad strategy");
}
}
JS_PUBLIC_API const char* JS::TrackedOutcomeString(TrackedOutcome outcome) {
switch (outcome) {
#define OUTCOME_CASE(name) \
case TrackedOutcome::name: \
return #name;
TRACKED_OUTCOME_LIST(OUTCOME_CASE)
#undef OUTCOME_CASE
default:
MOZ_CRASH("bad outcome");
}
}
JS_PUBLIC_API const char* JS::TrackedTypeSiteString(TrackedTypeSite site) {
switch (site) {
#define TYPESITE_CASE(name) \
case TrackedTypeSite::name: \
return #name;
TRACKED_TYPESITE_LIST(TYPESITE_CASE)
#undef TYPESITE_CASE
default:
MOZ_CRASH("bad type site");
}
}

View File

@ -1,20 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef jit_OptimizationTracking_h
#define jit_OptimizationTracking_h
#include "mozilla/Maybe.h"
#include "jit/CompactBuffer.h"
#include "jit/CompileInfo.h"
#include "jit/JitAllocPolicy.h"
#include "jit/JitSpewer.h"
#include "jit/shared/Assembler-shared.h"
#include "js/TrackedOptimizationInfo.h"
#include "vm/TypeInference.h"
#endif // jit_OptimizationTracking_h

View File

@ -71,7 +71,6 @@ UNIFIED_SOURCES += [
'MIR.cpp',
'MIRGraph.cpp',
'MoveResolver.cpp',
'OptimizationTracking.cpp',
'PerfSpewer.cpp',
'ProcessExecutableMemory.cpp',
'RangeAnalysis.cpp',

View File

@ -17,7 +17,6 @@
#include "jit/MacroAssembler.h"
#include "jit/MIR.h"
#include "jit/MIRGenerator.h"
#include "jit/OptimizationTracking.h"
#include "js/Conversions.h"
#include "util/Memory.h"
#include "vm/TraceLogging.h"

View File

@ -18,7 +18,6 @@
#include "jit/MacroAssembler.h"
#include "jit/MIRGenerator.h"
#include "jit/MIRGraph.h"
#include "jit/OptimizationTracking.h"
#include "jit/Safepoints.h"
#include "jit/Snapshots.h"
#include "jit/VMFunctions.h"

View File

@ -188,7 +188,6 @@ EXPORTS.js += [
'../public/TraceKind.h',
'../public/TraceLoggerAPI.h',
'../public/TracingAPI.h',
'../public/TrackedOptimizationInfo.h',
'../public/Transcoding.h',
'../public/TypeDecls.h',
'../public/UbiNode.h',

View File

@ -26,7 +26,6 @@
#include "jit/Ion.h"
#include "jit/IonAnalysis.h"
#include "jit/JitRealm.h"
#include "jit/OptimizationTracking.h"
#include "js/MemoryMetrics.h"
#include "js/UniquePtr.h"
#include "util/DiagnosticAssertions.h"

View File

@ -10,7 +10,6 @@
#include "ProfileBuffer.h"
#include "ProfilerMarkerPayload.h"
#include "js/TrackedOptimizationInfo.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "mozilla/Logging.h"

View File

@ -12,7 +12,6 @@
#include "gtest/MozGtestFriend.h"
#include "js/ProfilingCategory.h"
#include "js/ProfilingFrameIterator.h"
#include "js/TrackedOptimizationInfo.h"
#include "mozilla/HashFunctions.h"
#include "mozilla/HashTable.h"
#include "mozilla/Maybe.h"