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

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

Issue 10382033: x86/x64 port of Math.floor(x/y) to use integer division for specific divisor (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | « no previous file | src/hydrogen-instructions.cc » ('j') | src/ia32/lithium-codegen-ia32.cc » ('J')
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 2739 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 DECLARE_ABSTRACT_INSTRUCTION(BitwiseBinaryOperation) 2750 DECLARE_ABSTRACT_INSTRUCTION(BitwiseBinaryOperation)
2751 }; 2751 };
2752 2752
2753 2753
2754 class HMathFloorOfDiv: public HBinaryOperation { 2754 class HMathFloorOfDiv: public HBinaryOperation {
2755 public: 2755 public:
2756 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right) 2756 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right)
2757 : HBinaryOperation(context, left, right) { 2757 : HBinaryOperation(context, left, right) {
2758 set_representation(Representation::Integer32()); 2758 set_representation(Representation::Integer32());
2759 SetFlag(kUseGVN); 2759 SetFlag(kUseGVN);
2760 SetFlag(kCanOverflow);
2760 } 2761 }
2761 2762
2762 virtual Representation RequiredInputRepresentation(int index) { 2763 virtual Representation RequiredInputRepresentation(int index) {
2763 return Representation::Integer32(); 2764 return Representation::Integer32();
2764 } 2765 }
2765 2766
2766 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv) 2767 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv)
2767 2768
2768 protected: 2769 protected:
2769 virtual bool DataEquals(HValue* other) { return true; } 2770 virtual bool DataEquals(HValue* other) { return true; }
(...skipping 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after
4959 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 4960 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
4960 }; 4961 };
4961 4962
4962 4963
4963 #undef DECLARE_INSTRUCTION 4964 #undef DECLARE_INSTRUCTION
4964 #undef DECLARE_CONCRETE_INSTRUCTION 4965 #undef DECLARE_CONCRETE_INSTRUCTION
4965 4966
4966 } } // namespace v8::internal 4967 } } // namespace v8::internal
4967 4968
4968 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 4969 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | src/ia32/lithium-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698