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

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 5806001: Support %_IsObject in Crankshaft. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // LClassOfTestAndBranch 117 // LClassOfTestAndBranch
118 // LDeleteProperty 118 // LDeleteProperty
119 // LDoubleToI 119 // LDoubleToI
120 // LHasCachedArrayIndex 120 // LHasCachedArrayIndex
121 // LHasCachedArrayIndexAndBranch 121 // LHasCachedArrayIndexAndBranch
122 // LHasInstanceType 122 // LHasInstanceType
123 // LHasInstanceTypeAndBranch 123 // LHasInstanceTypeAndBranch
124 // LInteger32ToDouble 124 // LInteger32ToDouble
125 // LIsNull 125 // LIsNull
126 // LIsNullAndBranch 126 // LIsNullAndBranch
127 // LIsObject
128 // LIsObjectAndBranch
127 // LIsSmi 129 // LIsSmi
128 // LIsSmiAndBranch 130 // LIsSmiAndBranch
129 // LLoadNamedField 131 // LLoadNamedField
130 // LLoadNamedGeneric 132 // LLoadNamedGeneric
131 // LNumberTagD 133 // LNumberTagD
132 // LNumberTagI 134 // LNumberTagI
133 // LPushArgument 135 // LPushArgument
134 // LReturn 136 // LReturn
135 // LSmiTag 137 // LSmiTag
136 // LStoreGlobal 138 // LStoreGlobal
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 V(FunctionLiteral) \ 201 V(FunctionLiteral) \
200 V(Gap) \ 202 V(Gap) \
201 V(GlobalObject) \ 203 V(GlobalObject) \
202 V(GlobalReceiver) \ 204 V(GlobalReceiver) \
203 V(Goto) \ 205 V(Goto) \
204 V(InstanceOf) \ 206 V(InstanceOf) \
205 V(InstanceOfAndBranch) \ 207 V(InstanceOfAndBranch) \
206 V(Integer32ToDouble) \ 208 V(Integer32ToDouble) \
207 V(IsNull) \ 209 V(IsNull) \
208 V(IsNullAndBranch) \ 210 V(IsNullAndBranch) \
211 V(IsObject) \
212 V(IsObjectAndBranch) \
209 V(IsSmi) \ 213 V(IsSmi) \
210 V(IsSmiAndBranch) \ 214 V(IsSmiAndBranch) \
211 V(HasInstanceType) \ 215 V(HasInstanceType) \
212 V(HasInstanceTypeAndBranch) \ 216 V(HasInstanceTypeAndBranch) \
213 V(HasCachedArrayIndex) \ 217 V(HasCachedArrayIndex) \
214 V(HasCachedArrayIndexAndBranch) \ 218 V(HasCachedArrayIndexAndBranch) \
215 V(ClassOfTest) \ 219 V(ClassOfTest) \
216 V(ClassOfTestAndBranch) \ 220 V(ClassOfTestAndBranch) \
217 V(Label) \ 221 V(Label) \
218 V(LazyBailout) \ 222 V(LazyBailout) \
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 744
741 LOperand* temp() const { return temp_; } 745 LOperand* temp() const { return temp_; }
742 746
743 private: 747 private:
744 LOperand* temp_; 748 LOperand* temp_;
745 int true_block_id_; 749 int true_block_id_;
746 int false_block_id_; 750 int false_block_id_;
747 }; 751 };
748 752
749 753
754 class LIsObject: public LUnaryOperation {
755 public:
756 LIsObject(LOperand* value, LOperand* temp)
757 : LUnaryOperation(value), temp_(temp) {}
758
759 DECLARE_CONCRETE_INSTRUCTION(IsObject, "is-object")
760
761 LOperand* temp() { return temp_; }
762
763 private:
764 LOperand* temp_;
765 };
766
767
768 class LIsObjectAndBranch: public LIsObject {
769 public:
770 LIsObjectAndBranch(LOperand* value,
771 LOperand* temp,
772 LOperand* temp2,
773 int true_block_id,
774 int false_block_id)
775 : LIsObject(value, temp),
776 temp2_(temp2),
777 true_block_id_(true_block_id),
778 false_block_id_(false_block_id) { }
779
780 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
781 virtual void PrintDataTo(StringStream* stream) const;
782 virtual bool IsControl() const { return true; }
783
784 int true_block_id() const { return true_block_id_; }
785 int false_block_id() const { return false_block_id_; }
786
787 LOperand* temp2() { return temp2_; }
788
789 private:
790 LOperand* temp2_;
791 int true_block_id_;
792 int false_block_id_;
793 };
794
795
750 class LIsSmi: public LUnaryOperation { 796 class LIsSmi: public LUnaryOperation {
751 public: 797 public:
752 explicit LIsSmi(LOperand* value) : LUnaryOperation(value) {} 798 explicit LIsSmi(LOperand* value) : LUnaryOperation(value) {}
753 799
754 DECLARE_CONCRETE_INSTRUCTION(IsSmi, "is-smi") 800 DECLARE_CONCRETE_INSTRUCTION(IsSmi, "is-smi")
755 DECLARE_HYDROGEN_ACCESSOR(IsSmi) 801 DECLARE_HYDROGEN_ACCESSOR(IsSmi)
756 }; 802 };
757 803
758 804
759 class LIsSmiAndBranch: public LIsSmi { 805 class LIsSmiAndBranch: public LIsSmi {
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
2073 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2119 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2074 }; 2120 };
2075 2121
2076 #undef DECLARE_HYDROGEN_ACCESSOR 2122 #undef DECLARE_HYDROGEN_ACCESSOR
2077 #undef DECLARE_INSTRUCTION 2123 #undef DECLARE_INSTRUCTION
2078 #undef DECLARE_CONCRETE_INSTRUCTION 2124 #undef DECLARE_CONCRETE_INSTRUCTION
2079 2125
2080 } } // namespace v8::internal 2126 } } // namespace v8::internal
2081 2127
2082 #endif // V8_IA32_LITHIUM_IA32_H_ 2128 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698