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

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

Issue 191293013: Cleanup some of the range uses in ModI/DivI. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 9 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 LDivI(LOperand* left, LOperand* right, LOperand* temp) { 730 LDivI(LOperand* left, LOperand* right, LOperand* temp) {
731 inputs_[0] = left; 731 inputs_[0] = left;
732 inputs_[1] = right; 732 inputs_[1] = right;
733 temps_[0] = temp; 733 temps_[0] = temp;
734 } 734 }
735 735
736 LOperand* left() { return inputs_[0]; } 736 LOperand* left() { return inputs_[0]; }
737 LOperand* right() { return inputs_[1]; } 737 LOperand* right() { return inputs_[1]; }
738 LOperand* temp() { return temps_[0]; } 738 LOperand* temp() { return temps_[0]; }
739 739
740 bool is_flooring() { return hydrogen_value()->IsMathFloorOfDiv(); }
741
742 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") 740 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
743 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) 741 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation)
744 }; 742 };
745 743
746 744
747 class LFlooringDivByPowerOf2I V8_FINAL : public LTemplateInstruction<1, 1, 0> { 745 class LFlooringDivByPowerOf2I V8_FINAL : public LTemplateInstruction<1, 1, 0> {
748 public: 746 public:
749 LFlooringDivByPowerOf2I(LOperand* dividend, int32_t divisor) { 747 LFlooringDivByPowerOf2I(LOperand* dividend, int32_t divisor) {
750 inputs_[0] = dividend; 748 inputs_[0] = dividend;
751 divisor_ = divisor; 749 divisor_ = divisor;
(...skipping 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after
2820 2818
2821 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2819 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2822 }; 2820 };
2823 2821
2824 #undef DECLARE_HYDROGEN_ACCESSOR 2822 #undef DECLARE_HYDROGEN_ACCESSOR
2825 #undef DECLARE_CONCRETE_INSTRUCTION 2823 #undef DECLARE_CONCRETE_INSTRUCTION
2826 2824
2827 } } // namespace v8::int 2825 } } // namespace v8::int
2828 2826
2829 #endif // V8_X64_LITHIUM_X64_H_ 2827 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698