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

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

Issue 21076003: Revert "Smi-support for HSar." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 4946 matching lines...) Expand 10 before | Expand all | Expand 10 after
4957 } 4957 }
4958 } 4958 }
4959 return false; 4959 return false;
4960 } 4960 }
4961 4961
4962 virtual Range* InferRange(Zone* zone); 4962 virtual Range* InferRange(Zone* zone);
4963 4963
4964 virtual void UpdateRepresentation(Representation new_rep, 4964 virtual void UpdateRepresentation(Representation new_rep,
4965 HInferRepresentationPhase* h_infer, 4965 HInferRepresentationPhase* h_infer,
4966 const char* reason) { 4966 const char* reason) {
4967 if (new_rep.IsSmi() && !right()->IsConstant()) { 4967 if (new_rep.IsSmi()) new_rep = Representation::Integer32();
4968 new_rep = Representation::Integer32();
4969 }
4970 HBitwiseBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason); 4968 HBitwiseBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason);
4971 } 4969 }
4972 4970
4973 DECLARE_CONCRETE_INSTRUCTION(Shr) 4971 DECLARE_CONCRETE_INSTRUCTION(Shr)
4974 4972
4975 protected: 4973 protected:
4976 virtual bool DataEquals(HValue* other) { return true; } 4974 virtual bool DataEquals(HValue* other) { return true; }
4977 4975
4978 private: 4976 private:
4979 HShr(HValue* context, HValue* left, HValue* right) 4977 HShr(HValue* context, HValue* left, HValue* right)
(...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after
7008 virtual bool IsDeletable() const { return true; } 7006 virtual bool IsDeletable() const { return true; }
7009 }; 7007 };
7010 7008
7011 7009
7012 #undef DECLARE_INSTRUCTION 7010 #undef DECLARE_INSTRUCTION
7013 #undef DECLARE_CONCRETE_INSTRUCTION 7011 #undef DECLARE_CONCRETE_INSTRUCTION
7014 7012
7015 } } // namespace v8::internal 7013 } } // namespace v8::internal
7016 7014
7017 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7015 #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