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

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, 6 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') | 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 2756 matching lines...) Expand 10 before | Expand all | Expand 10 after
2767 Representation observed_input_representation_[3]; 2767 Representation observed_input_representation_[3];
2768 }; 2768 };
2769 2769
2770 2770
2771 class HMathFloorOfDiv: public HBinaryOperation { 2771 class HMathFloorOfDiv: public HBinaryOperation {
2772 public: 2772 public:
2773 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right) 2773 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right)
2774 : HBinaryOperation(context, left, right) { 2774 : HBinaryOperation(context, left, right) {
2775 set_representation(Representation::Integer32()); 2775 set_representation(Representation::Integer32());
2776 SetFlag(kUseGVN); 2776 SetFlag(kUseGVN);
2777 SetFlag(kCanOverflow);
2777 } 2778 }
2778 2779
2780 virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited);
2781
2779 virtual Representation RequiredInputRepresentation(int index) { 2782 virtual Representation RequiredInputRepresentation(int index) {
2780 return Representation::Integer32(); 2783 return Representation::Integer32();
2781 } 2784 }
2782 2785
2783 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv) 2786 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv)
2784 2787
2785 protected: 2788 protected:
2786 virtual bool DataEquals(HValue* other) { return true; } 2789 virtual bool DataEquals(HValue* other) { return true; }
2787 }; 2790 };
2788 2791
(...skipping 2305 matching lines...) Expand 10 before | Expand all | Expand 10 after
5094 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 5097 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
5095 }; 5098 };
5096 5099
5097 5100
5098 #undef DECLARE_INSTRUCTION 5101 #undef DECLARE_INSTRUCTION
5099 #undef DECLARE_CONCRETE_INSTRUCTION 5102 #undef DECLARE_CONCRETE_INSTRUCTION
5100 5103
5101 } } // namespace v8::internal 5104 } } // namespace v8::internal
5102 5105
5103 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 5106 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698