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

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

Issue 23691067: Remove unused HIsNumberAndBranch instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/ia32/lithium-codegen-ia32.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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 V(Goto) \ 121 V(Goto) \
122 V(HasCachedArrayIndexAndBranch) \ 122 V(HasCachedArrayIndexAndBranch) \
123 V(HasInstanceTypeAndBranch) \ 123 V(HasInstanceTypeAndBranch) \
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(IsObjectAndBranch) \ 130 V(IsObjectAndBranch) \
131 V(IsNumberAndBranch) \
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(LoadFieldByIndex) \ 137 V(LoadFieldByIndex) \
139 V(LoadFunctionPrototype) \ 138 V(LoadFunctionPrototype) \
140 V(LoadGlobalCell) \ 139 V(LoadGlobalCell) \
141 V(LoadGlobalGeneric) \ 140 V(LoadGlobalGeneric) \
(...skipping 2641 matching lines...) Expand 10 before | Expand all | Expand 10 after
2783 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; } 2782 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; }
2784 2783
2785 private: 2784 private:
2786 explicit HCheckSmi(HValue* value) : HUnaryOperation(value, HType::Smi()) { 2785 explicit HCheckSmi(HValue* value) : HUnaryOperation(value, HType::Smi()) {
2787 set_representation(Representation::Smi()); 2786 set_representation(Representation::Smi());
2788 SetFlag(kUseGVN); 2787 SetFlag(kUseGVN);
2789 } 2788 }
2790 }; 2789 };
2791 2790
2792 2791
2793 class HIsNumberAndBranch V8_FINAL : public HUnaryControlInstruction {
2794 public:
2795 explicit HIsNumberAndBranch(HValue* value)
2796 : HUnaryControlInstruction(value, NULL, NULL) {
2797 SetFlag(kFlexibleRepresentation);
2798 }
2799
2800 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
2801 return Representation::None();
2802 }
2803
2804 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch)
2805 };
2806
2807
2808 class HCheckHeapObject V8_FINAL : public HUnaryOperation { 2792 class HCheckHeapObject V8_FINAL : public HUnaryOperation {
2809 public: 2793 public:
2810 DECLARE_INSTRUCTION_FACTORY_P1(HCheckHeapObject, HValue*); 2794 DECLARE_INSTRUCTION_FACTORY_P1(HCheckHeapObject, HValue*);
2811 2795
2812 virtual bool HasEscapingOperandAt(int index) V8_OVERRIDE { return false; } 2796 virtual bool HasEscapingOperandAt(int index) V8_OVERRIDE { return false; }
2813 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 2797 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
2814 return Representation::Tagged(); 2798 return Representation::Tagged();
2815 } 2799 }
2816 2800
2817 #ifdef DEBUG 2801 #ifdef DEBUG
(...skipping 4157 matching lines...) Expand 10 before | Expand all | Expand 10 after
6975 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 6959 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
6976 }; 6960 };
6977 6961
6978 6962
6979 #undef DECLARE_INSTRUCTION 6963 #undef DECLARE_INSTRUCTION
6980 #undef DECLARE_CONCRETE_INSTRUCTION 6964 #undef DECLARE_CONCRETE_INSTRUCTION
6981 6965
6982 } } // namespace v8::internal 6966 } } // namespace v8::internal
6983 6967
6984 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6968 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698