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

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

Issue 6894043: Crankshaft support for IN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 8 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 V(EnterInlined) \ 97 V(EnterInlined) \
98 V(ExternalArrayLength) \ 98 V(ExternalArrayLength) \
99 V(FixedArrayLength) \ 99 V(FixedArrayLength) \
100 V(FunctionLiteral) \ 100 V(FunctionLiteral) \
101 V(GetCachedArrayIndex) \ 101 V(GetCachedArrayIndex) \
102 V(GlobalObject) \ 102 V(GlobalObject) \
103 V(GlobalReceiver) \ 103 V(GlobalReceiver) \
104 V(Goto) \ 104 V(Goto) \
105 V(HasInstanceType) \ 105 V(HasInstanceType) \
106 V(HasCachedArrayIndex) \ 106 V(HasCachedArrayIndex) \
107 V(In) \
107 V(InstanceOf) \ 108 V(InstanceOf) \
108 V(InstanceOfKnownGlobal) \ 109 V(InstanceOfKnownGlobal) \
109 V(InvokeFunction) \ 110 V(InvokeFunction) \
110 V(IsNull) \ 111 V(IsNull) \
111 V(IsObject) \ 112 V(IsObject) \
112 V(IsSmi) \ 113 V(IsSmi) \
113 V(IsConstructCall) \ 114 V(IsConstructCall) \
114 V(JSArrayLength) \ 115 V(JSArrayLength) \
115 V(LeaveInlined) \ 116 V(LeaveInlined) \
116 V(LoadContextSlot) \ 117 V(LoadContextSlot) \
(...skipping 3656 matching lines...) Expand 10 before | Expand all | Expand 10 after
3773 virtual Representation RequiredInputRepresentation(int index) const { 3774 virtual Representation RequiredInputRepresentation(int index) const {
3774 return Representation::Tagged(); 3775 return Representation::Tagged();
3775 } 3776 }
3776 3777
3777 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty) 3778 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty)
3778 3779
3779 HValue* object() { return left(); } 3780 HValue* object() { return left(); }
3780 HValue* key() { return right(); } 3781 HValue* key() { return right(); }
3781 }; 3782 };
3782 3783
3784
3785 class HIn: public HTemplateInstruction<2> {
3786 public:
3787 HIn(HValue* key, HValue* object) {
3788 SetOperandAt(0, key);
3789 SetOperandAt(1, object);
3790 set_representation(Representation::Tagged());
3791 SetAllSideEffects();
3792 }
3793
3794 HValue* key() { return OperandAt(0); }
3795 HValue* object() { return OperandAt(1); }
3796
3797 virtual Representation RequiredInputRepresentation(int index) const {
3798 return Representation::Tagged();
3799 }
3800
fschneider 2011/04/26 13:51:59 You should override CalculateInferredType to retur
3801 virtual void PrintDataTo(StringStream* stream);
3802
3803 DECLARE_CONCRETE_INSTRUCTION(In)
3804 };
3805
3783 #undef DECLARE_INSTRUCTION 3806 #undef DECLARE_INSTRUCTION
3784 #undef DECLARE_CONCRETE_INSTRUCTION 3807 #undef DECLARE_CONCRETE_INSTRUCTION
3785 3808
3786 } } // namespace v8::internal 3809 } } // namespace v8::internal
3787 3810
3788 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 3811 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | src/ia32/lithium-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698