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

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

Issue 141653015: Simplify HUnaryMathOperation::Canonicalize. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Feedback Created 6 years, 11 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 LInstruction* CheckElideControlInstruction(HControlInstruction* instr); 2662 LInstruction* CheckElideControlInstruction(HControlInstruction* instr);
2663 2663
2664 // Declare methods that deal with the individual node types. 2664 // Declare methods that deal with the individual node types.
2665 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); 2665 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
2666 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 2666 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
2667 #undef DECLARE_DO 2667 #undef DECLARE_DO
2668 2668
2669 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); 2669 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend);
2670 2670
2671 static bool HasMagicNumberForDivisor(int32_t divisor); 2671 static bool HasMagicNumberForDivisor(int32_t divisor);
2672 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val);
2673 2672
2674 LInstruction* DoMathFloor(HUnaryMathOperation* instr); 2673 LInstruction* DoMathFloor(HUnaryMathOperation* instr);
2675 LInstruction* DoMathRound(HUnaryMathOperation* instr); 2674 LInstruction* DoMathRound(HUnaryMathOperation* instr);
2676 LInstruction* DoMathAbs(HUnaryMathOperation* instr); 2675 LInstruction* DoMathAbs(HUnaryMathOperation* instr);
2677 LInstruction* DoMathLog(HUnaryMathOperation* instr); 2676 LInstruction* DoMathLog(HUnaryMathOperation* instr);
2678 LInstruction* DoMathExp(HUnaryMathOperation* instr); 2677 LInstruction* DoMathExp(HUnaryMathOperation* instr);
2679 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); 2678 LInstruction* DoMathSqrt(HUnaryMathOperation* instr);
2680 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); 2679 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr);
2681 2680
2682 private: 2681 private:
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2795 2794
2796 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2795 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2797 }; 2796 };
2798 2797
2799 #undef DECLARE_HYDROGEN_ACCESSOR 2798 #undef DECLARE_HYDROGEN_ACCESSOR
2800 #undef DECLARE_CONCRETE_INSTRUCTION 2799 #undef DECLARE_CONCRETE_INSTRUCTION
2801 2800
2802 } } // namespace v8::internal 2801 } } // namespace v8::internal
2803 2802
2804 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2803 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698