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

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

Issue 16973002: Make MathFloorOfDiv optimization trigger more often (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix typo Created 7 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/arm/lithium-arm.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 2674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2685 // Declare methods that deal with the individual node types. 2685 // Declare methods that deal with the individual node types.
2686 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); 2686 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
2687 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 2687 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
2688 #undef DECLARE_DO 2688 #undef DECLARE_DO
2689 2689
2690 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); 2690 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend);
2691 LInstruction* DoMultiplySub(HValue* minuend, HMul* mul); 2691 LInstruction* DoMultiplySub(HValue* minuend, HMul* mul);
2692 LInstruction* DoRSub(HSub* instr); 2692 LInstruction* DoRSub(HSub* instr);
2693 2693
2694 static bool HasMagicNumberForDivisor(int32_t divisor); 2694 static bool HasMagicNumberForDivisor(int32_t divisor);
2695 static HValue* SimplifiedDividendForMathFloorOfDiv(HValue* val);
2696 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val); 2695 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val);
2697 2696
2698 LInstruction* DoMathFloor(HUnaryMathOperation* instr); 2697 LInstruction* DoMathFloor(HUnaryMathOperation* instr);
2699 LInstruction* DoMathRound(HUnaryMathOperation* instr); 2698 LInstruction* DoMathRound(HUnaryMathOperation* instr);
2700 LInstruction* DoMathAbs(HUnaryMathOperation* instr); 2699 LInstruction* DoMathAbs(HUnaryMathOperation* instr);
2701 LInstruction* DoMathLog(HUnaryMathOperation* instr); 2700 LInstruction* DoMathLog(HUnaryMathOperation* instr);
2702 LInstruction* DoMathSin(HUnaryMathOperation* instr); 2701 LInstruction* DoMathSin(HUnaryMathOperation* instr);
2703 LInstruction* DoMathCos(HUnaryMathOperation* instr); 2702 LInstruction* DoMathCos(HUnaryMathOperation* instr);
2704 LInstruction* DoMathTan(HUnaryMathOperation* instr); 2703 LInstruction* DoMathTan(HUnaryMathOperation* instr);
2705 LInstruction* DoMathExp(HUnaryMathOperation* instr); 2704 LInstruction* DoMathExp(HUnaryMathOperation* instr);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2833 2832
2834 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2833 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2835 }; 2834 };
2836 2835
2837 #undef DECLARE_HYDROGEN_ACCESSOR 2836 #undef DECLARE_HYDROGEN_ACCESSOR
2838 #undef DECLARE_CONCRETE_INSTRUCTION 2837 #undef DECLARE_CONCRETE_INSTRUCTION
2839 2838
2840 } } // namespace v8::internal 2839 } } // namespace v8::internal
2841 2840
2842 #endif // V8_ARM_LITHIUM_ARM_H_ 2841 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698