Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: src/hydrogen-instructions.h

Issue 14971005: Remove HIsNilAndBranch (it's now unused) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 V(HasCachedArrayIndexAndBranch) \ 120 V(HasCachedArrayIndexAndBranch) \
121 V(HasInstanceTypeAndBranch) \ 121 V(HasInstanceTypeAndBranch) \
122 V(InductionVariableAnnotation) \ 122 V(InductionVariableAnnotation) \
123 V(In) \ 123 V(In) \
124 V(InnerAllocatedObject) \ 124 V(InnerAllocatedObject) \
125 V(InstanceOf) \ 125 V(InstanceOf) \
126 V(InstanceOfKnownGlobal) \ 126 V(InstanceOfKnownGlobal) \
127 V(InstanceSize) \ 127 V(InstanceSize) \
128 V(InvokeFunction) \ 128 V(InvokeFunction) \
129 V(IsConstructCallAndBranch) \ 129 V(IsConstructCallAndBranch) \
130 V(IsNilAndBranch) \
131 V(IsObjectAndBranch) \ 130 V(IsObjectAndBranch) \
132 V(IsStringAndBranch) \ 131 V(IsStringAndBranch) \
133 V(IsSmiAndBranch) \ 132 V(IsSmiAndBranch) \
134 V(IsUndetectableAndBranch) \ 133 V(IsUndetectableAndBranch) \
135 V(LeaveInlined) \ 134 V(LeaveInlined) \
136 V(LoadContextSlot) \ 135 V(LoadContextSlot) \
137 V(LoadExternalArrayPointer) \ 136 V(LoadExternalArrayPointer) \
138 V(LoadFunctionPrototype) \ 137 V(LoadFunctionPrototype) \
139 V(LoadGlobalCell) \ 138 V(LoadGlobalCell) \
140 V(LoadGlobalGeneric) \ 139 V(LoadGlobalGeneric) \
(...skipping 3773 matching lines...) Expand 10 before | Expand all | Expand 10 after
3914 } 3913 }
3915 3914
3916 DECLARE_CONCRETE_INSTRUCTION(CompareConstantEqAndBranch); 3915 DECLARE_CONCRETE_INSTRUCTION(CompareConstantEqAndBranch);
3917 3916
3918 private: 3917 private:
3919 const Token::Value op_; 3918 const Token::Value op_;
3920 const int right_; 3919 const int right_;
3921 }; 3920 };
3922 3921
3923 3922
3924 class HIsNilAndBranch: public HUnaryControlInstruction {
3925 public:
3926 HIsNilAndBranch(HValue* value, EqualityKind kind, NilValue nil)
3927 : HUnaryControlInstruction(value, NULL, NULL), kind_(kind), nil_(nil) { }
3928
3929 EqualityKind kind() const { return kind_; }
3930 NilValue nil() const { return nil_; }
3931
3932 virtual void PrintDataTo(StringStream* stream);
3933
3934 virtual Representation RequiredInputRepresentation(int index) {
3935 return Representation::Tagged();
3936 }
3937 virtual Representation observed_input_representation(int index) {
3938 return Representation::Tagged();
3939 }
3940
3941 DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch)
3942
3943 private:
3944 EqualityKind kind_;
3945 NilValue nil_;
3946 };
3947
3948
3949 class HIsObjectAndBranch: public HUnaryControlInstruction { 3923 class HIsObjectAndBranch: public HUnaryControlInstruction {
3950 public: 3924 public:
3951 explicit HIsObjectAndBranch(HValue* value) 3925 explicit HIsObjectAndBranch(HValue* value)
3952 : HUnaryControlInstruction(value, NULL, NULL) { } 3926 : HUnaryControlInstruction(value, NULL, NULL) { }
3953 3927
3954 virtual Representation RequiredInputRepresentation(int index) { 3928 virtual Representation RequiredInputRepresentation(int index) {
3955 return Representation::Tagged(); 3929 return Representation::Tagged();
3956 } 3930 }
3957 3931
3958 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch) 3932 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch)
(...skipping 2513 matching lines...) Expand 10 before | Expand all | Expand 10 after
6472 virtual bool IsDeletable() const { return true; } 6446 virtual bool IsDeletable() const { return true; }
6473 }; 6447 };
6474 6448
6475 6449
6476 #undef DECLARE_INSTRUCTION 6450 #undef DECLARE_INSTRUCTION
6477 #undef DECLARE_CONCRETE_INSTRUCTION 6451 #undef DECLARE_CONCRETE_INSTRUCTION
6478 6452
6479 } } // namespace v8::internal 6453 } } // namespace v8::internal
6480 6454
6481 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6455 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698