All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.javascript.jscomp.DevirtualizeMethods.class Maven / Gradle / Ivy

Go to download

Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.

The newest version!
????7`
java/lang/Object()V		
0com/google/javascript/jscomp/DevirtualizeMethodscompiler/Lcom/google/javascript/jscomp/AbstractCompiler;	refMap9Lcom/google/javascript/jscomp/OptimizeCalls$ReferenceMap;%`process` should only be called once.
$com/google/common/base/Preconditions
checkState(ZLjava/lang/Object;)V
7com/google/javascript/jscomp/OptimizeCalls$ReferenceMapgetPropReferences()Ljava/lang/Iterable; !"#$java/lang/Iterableiterator()Ljava/util/Iterator;&'()*java/util/IteratorhasNext()Z&,-.next()Ljava/lang/Object;0java/util/Map$Entry/23.getKey5java/lang/String/78.getValue:java/util/List
<=>processReferenceList%(Ljava/lang/String;Ljava/util/List;)V
@ABgetFunctionNodesC(Ljava/util/List;)Lcom/google/common/collect/ImmutableListMultimap;
DEFG*/com/google/common/collect/ImmutableListMultimapisEmpty
DIJKkeySet*()Lcom/google/common/collect/ImmutableSet;
MNOPQ#com/google/common/collect/Iterablesget)(Ljava/lang/Iterable;I)Ljava/lang/Object;S com/google/javascript/rhino/Node9UVWstream()Ljava/util/stream/Stream;YZ[testQ(Lcom/google/common/collect/ImmutableListMultimap;)Ljava/util/function/Predicate;]^_`ajava/util/stream/Streamfilter9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
cdefg'com/google/common/collect/ImmutableListtoImmutableList()Ljava/util/stream/Collector;]ijkcollect0(Ljava/util/stream/Collector;)Ljava/lang/Object;
cE
nUo&com/google/common/collect/ImmutableSetqZrd(Lcom/google/javascript/jscomp/DevirtualizeMethods;Ljava/lang/String;)Ljava/util/function/Predicate;]tuvallMatch!(Ljava/util/function/Predicate;)Z
Dxyzvalues1()Lcom/google/common/collect/ImmutableCollection;
|U}-com/google/common/collect/ImmutableCollectionZ?R(Lcom/google/javascript/jscomp/DevirtualizeMethods;)Ljava/util/function/Predicate;
cU?Z?t(Lcom/google/javascript/jscomp/DevirtualizeMethods;Lcom/google/javascript/rhino/Node;)Ljava/util/function/Predicate;
???allDefinitionsEquivalent(Ljava/util/Collection;)Z
???rewrittenMethodNameOf&(Ljava/lang/String;)Ljava/lang/String;
?????%com/google/javascript/jscomp/NodeUtilgetBestJSDocInfoK(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
????*%com/google/javascript/rhino/JSDocInfo
isConstant
c?#?2()Lcom/google/common/collect/UnmodifiableIterator;
???rewriteCall8(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Z)V
???rewriteDefinition
R???	getParent$()Lcom/google/javascript/rhino/Node;
R???getGrandparent	?????2com/google/javascript/jscomp/DevirtualizeMethods$1,$SwitchMap$com$google$javascript$rhino$Token[I
R???getToken%()Lcom/google/javascript/rhino/Token;
?????!com/google/javascript/rhino/Tokenordinal()I
????!isEs6ConstructorMemberFunctionDef%(Lcom/google/javascript/rhino/Node;)Z
R???isFirstChildOf
????isExprAssign
R???getLastChild
R??*
isFunction
????isPrototypeProperty
R???
getFirstChild
???isDefinitelyCtorOrInterface
R??*isObjectLit
??
checkArgument
R???isSecondChildOf
????isPrototypeAssignment
R???getQualifiedName()Ljava/lang/String;
???getGlobalScope&()Lcom/google/javascript/jscomp/Scope;
?????"com/google/javascript/jscomp/ScopegetVar>(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar;? com/google/javascript/jscomp/Var
???*isClass
????getJSDocInfo)()Lcom/google/javascript/rhino/JSDocInfo;
???*isConstructorOrInterface?"java/lang/IllegalArgumentException
R???toString
???(Ljava/lang/String;)V
-com/google/javascript/jscomp/AbstractCompilergetCodingConvention1()Lcom/google/javascript/jscomp/CodingConvention;	
-com/google/javascript/jscomp/CodingConvention
isExported(Ljava/lang/String;Z)Z

?#isPrototypeOrStaticMethodDefinition
R*isArrowFunction
?isScopingOrBranchingConstruct
R?
?localNameIsDeclaredByClassapply$()Lcom/google/common/base/Predicate;
 !!com/google/common/base/Predicates
alwaysTrue
?#$%hasi(Lcom/google/javascript/rhino/Node;Lcom/google/common/base/Predicate;Lcom/google/common/base/Predicate;)Z
?'(?'doesFunctionReferenceOwnArgumentsObject
?*+?isInvocationTarget
R-.*isCall
012
getChunkGraph-()Lcom/google/javascript/jscomp/JSChunkGraph;
456chunkForNodeJ(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/JSChunk;
89:;<)com/google/javascript/jscomp/JSChunkGraph	dependsOnO(Lcom/google/javascript/jscomp/JSChunk;Lcom/google/javascript/jscomp/JSChunk;)Z>E?java/util/Collection>U?
RCD*	isGetProp
RFG?detach
RIJKreplaceWith%(Lcom/google/javascript/rhino/Node;)V
MNOPQcom/google/javascript/rhino/IRname6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
RSTUcopyTypeFromF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
RWXUsrcref	RZ[\IS_CONSTANT_NAME'Lcom/google/javascript/rhino/Node$Prop;
R^_`putBooleanProp+(Lcom/google/javascript/rhino/Node$Prop;Z)V
RbcKaddChildToFront
Ref*isSuper	?hijTHIS#Lcom/google/javascript/rhino/Token;
RlmnsetToken&(Lcom/google/javascript/rhino/Token;)V	Rpq\	FREE_CALL
stKreportChangeToEnclosingScope
?vwUgetEnclosingStatement
RyzUsrcrefIfMissing
M|}Uvar
R?KinsertBefore
R???setJSDocInfoK(Lcom/google/javascript/rhino/JSDocInfo;)Lcom/google/javascript/rhino/Node;???makeConcatWithConstants
R???getSecondChild
???replaceReferencesToThis7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)V
????
deleteNodeT(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;)V
R???getNext
R??*isThis
???UgetEnclosingScript
R???
getInputId'()Lcom/google/javascript/rhino/InputId;
???getInputS(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput;
?????*com/google/javascript/jscomp/CompilerInputgetChunk(()Lcom/google/javascript/jscomp/JSChunk;?
????isControlStructure
R??*isAnd
R??*isOr
R??*isBlock
RE
????isStatement
???areNodesEqualForInliningG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
???isEligibleCallSite
???isEligibleDefinitionSite7(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Z
D???containsKey(Ljava/lang/Object;)Z?@com/google/javascript/jscomp/OptimizeCalls$CallGraphCompilerPass2(Lcom/google/javascript/jscomp/AbstractCompiler;)VCodeLineNumberTableLocalVariableTablethis2Lcom/google/javascript/jscomp/DevirtualizeMethods;MethodParametersprocess?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/OptimizeCalls$ReferenceMap;)VreferenceGroupLjava/util/Map$Entry;externs"Lcom/google/javascript/rhino/Node;rootLocalVariableTypeTablebLjava/util/Map$Entry;>;
StackMapTablecallSiteLjava/lang/String;sitesLjava/util/List;functionsBySite1Lcom/google/common/collect/ImmutableListMultimap;canonicalDefinitionSite	callSites)Lcom/google/common/collect/ImmutableList;devirtualizedName	bestJSDoc'Lcom/google/javascript/rhino/JSDocInfo;isConstantNameZ4Ljava/util/List;wLcom/google/common/collect/ImmutableListMultimap;MLcom/google/common/collect/ImmutableList;	SignatureI(Ljava/lang/String;Ljava/util/List;)Vnodeparentgrandparentreceiverqname"Lcom/google/javascript/jscomp/Var;jsdocdefinitionSitecodingConvention/Lcom/google/javascript/jscomp/CodingConvention;isEligibleDefinitionFunctionancestordefinitionFunctionaccess
invocation
chunkGraph+Lcom/google/javascript/jscomp/JSChunkGraph;definitionModule&Lcom/google/javascript/jscomp/JSChunk;
callModule$com/google/javascript/jscomp/JSChunkRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;definitionsLjava/util/Collection;
definition:Ljava/util/Collection;=(Ljava/util/Collection;)Zgetprop
newMethodNamecallnewReceiverfunctionsubtreeToRemove
nameSource	statementnewNameNode
newVarNode
originalJSDocselfName	paramListnewNamechildscriptinput,Lcom/google/javascript/jscomp/CompilerInput;originalMethodNameclazz!lambda$allDefinitionsEquivalent$3dlambda$processReferenceList$2clambda$processReferenceList$1slambda$processReferenceList$0V(Lcom/google/common/collect/ImmutableListMultimap;Lcom/google/javascript/rhino/Node;)Z
SourceFileDevirtualizeMethods.javaNestMembersBootstrapMethods.
/0123"java/lang/invoke/LambdaMetafactorymetafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;?6
7'(?:
;%?=
>??@
A#?dD
E!?G
HIJ?K$java/lang/invoke/StringConcatFactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;M$selfOJSCompiler_StaticMethods_InnerClassesR*com/google/javascript/jscomp/OptimizeCallsReferenceMapU
java/util/MapEntryX%com/google/javascript/rhino/Node$PropPropCallGraphCompilerPass\%java/lang/invoke/MethodHandles$Lookup^java/lang/invoke/MethodHandlesLookup ???F
*?*+???\]	^?
??
?????S*?
???*-?
-??:?%?*?+?/:*?1?4?6?9?;??ұ?bdf7gOhRi?47??S??S??S??S?7???@?&?0?
??=>?(?,??N-?C??-?H?L?R:,?T-?X?\?b?h?c:?l??-?H?m*+?p?s??-?w?{*?~?s????*???s??*-?w????+??:??:?????6??:		?%?	?+?R:
*
?????*????nlmn
tvw&y+z8{@|A?W?X?m?n?{????????????????????????f
?
??
????P??????????8????P???I???5??? ??????8????*
?
D?3Rc?4?@?&?"?	P?????a?+??M+??N,?-????+????.?$W+?????+,???-???
,?öƚ?+?ə?*+?̶ϙ??,??,??,-?ؙ-?̸ۙ
+?̶ƚ????b??
???8???A?C?L?S?\?^?e?g?r?t?v?~????????????*?????????
????
?RR##??????B+??M,??*?
??,????N-??-???-??:????????:??	???? ?'?)?/?4?6?>?@??4B??B??=??(}?/????4????	??????X??,????.? ???Y,?????*??N-+???*,?????&	?(?+7?JL	T
V
?*X??XP?X??????(?	?	P?????W+??+??+???+??M,?$,???,??,???,??M???+???"??+?&????> #$'!(#/103%;4J7L:S=U@? %??W??W????R?????? M+??N+?)?
-?,??*??/:*,?3:*+?3:?????7????2MNXkl%m,n6p;q=rIsKv?HM??M??M??H??/?%(,!??R? 8
@%(@,!?	??????/+?=??+?L?RM,??,??+?@*,?A?s??{	|??? /??/	
??/??????"o+?B+??+??:?,??+??:?EW+?H,?L+?R+?V:??Y?]?a?d??g?k?o?]*??r??>?????$?*?8?<?E?L?T?\?e?n??Ho??o
?o?o??a?Q??87???ERRR?

????a
??+????.?=..+????:+:+?u:?+??:+:+:???Y+?????+?u:,?L?x:?{?x:		?~??Y?]+??:
	
??W?EW?a,??:??:?L?x?a*??r*????*????*???*?	?r??v?$?-?0?6?9???B?E?H?T?Z?e?q?x?|?????????????????????????????-?6?0	??	?E?B????????????T??T??T??Z??e??q?	?e?
?H??A??$?RRR?0RRR?
??????R+?ƙ+???+??N-?<-??:-???#,?L-?V-?R:-?H*??r?	*-,??N??Ʊ?6
?????%?3?9?B?E?K?N?Q??>3?0-?=?R??R??RP???R?0R??	?P56?f+??M*?,????N-?????*???????
???1*???????
??s)*???*???*???*?ƚ
*??????(?)???#@??
??g*?*??*?̶???*??????&()*+.? ??? !??H
*?,+?????? 
??

?
"?#??E*,+?????? ????$?%??E*+,?¬??? ??P?&?
'(?M*+?ƚ???y???&??@)*+?,J-458-498-4<8-4?8-4B8-4C8FLFNP2QS/TV	?WRY@?QZ[]_




© 2015 - 2024 Weber Informatics LLC | Privacy Policy