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

Side by Side Diff: src/x64/lithium-x64.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/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 2600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2611 // Build the sequence for the graph. 2611 // Build the sequence for the graph.
2612 LPlatformChunk* Build(); 2612 LPlatformChunk* Build();
2613 2613
2614 LInstruction* CheckElideControlInstruction(HControlInstruction* instr); 2614 LInstruction* CheckElideControlInstruction(HControlInstruction* instr);
2615 2615
2616 // Declare methods that deal with the individual node types. 2616 // Declare methods that deal with the individual node types.
2617 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); 2617 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
2618 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 2618 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
2619 #undef DECLARE_DO 2619 #undef DECLARE_DO
2620 2620
2621 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val);
2622
2623 LInstruction* DoMathFloor(HUnaryMathOperation* instr); 2621 LInstruction* DoMathFloor(HUnaryMathOperation* instr);
2624 LInstruction* DoMathRound(HUnaryMathOperation* instr); 2622 LInstruction* DoMathRound(HUnaryMathOperation* instr);
2625 LInstruction* DoMathAbs(HUnaryMathOperation* instr); 2623 LInstruction* DoMathAbs(HUnaryMathOperation* instr);
2626 LInstruction* DoMathLog(HUnaryMathOperation* instr); 2624 LInstruction* DoMathLog(HUnaryMathOperation* instr);
2627 LInstruction* DoMathExp(HUnaryMathOperation* instr); 2625 LInstruction* DoMathExp(HUnaryMathOperation* instr);
2628 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); 2626 LInstruction* DoMathSqrt(HUnaryMathOperation* instr);
2629 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); 2627 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr);
2630 2628
2631 private: 2629 private:
2632 enum Status { 2630 enum Status {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2749 2747
2750 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2748 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2751 }; 2749 };
2752 2750
2753 #undef DECLARE_HYDROGEN_ACCESSOR 2751 #undef DECLARE_HYDROGEN_ACCESSOR
2754 #undef DECLARE_CONCRETE_INSTRUCTION 2752 #undef DECLARE_CONCRETE_INSTRUCTION
2755 2753
2756 } } // namespace v8::int 2754 } } // namespace v8::int
2757 2755
2758 #endif // V8_X64_LITHIUM_X64_H_ 2756 #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