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

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

Issue 6448001: x64: Add MulI and DivI to lithium instructions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 10 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 inputs_[0] = left; 641 inputs_[0] = left;
642 inputs_[1] = right; 642 inputs_[1] = right;
643 temps_[0] = temp; 643 temps_[0] = temp;
644 } 644 }
645 645
646 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") 646 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
647 DECLARE_HYDROGEN_ACCESSOR(Div) 647 DECLARE_HYDROGEN_ACCESSOR(Div)
648 }; 648 };
649 649
650 650
651 class LMulI: public LTemplateInstruction<1, 2, 1> { 651 class LMulI: public LTemplateInstruction<1, 2, 0> {
652 public: 652 public:
653 LMulI(LOperand* left, LOperand* right, LOperand* temp) { 653 LMulI(LOperand* left, LOperand* right) {
654 inputs_[0] = left; 654 inputs_[0] = left;
655 inputs_[1] = right; 655 inputs_[1] = right;
656 temps_[0] = temp;
657 } 656 }
658 657
659 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") 658 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
660 DECLARE_HYDROGEN_ACCESSOR(Mul) 659 DECLARE_HYDROGEN_ACCESSOR(Mul)
661 }; 660 };
662 661
663 662
664 class LCmpID: public LTemplateInstruction<1, 2, 0> { 663 class LCmpID: public LTemplateInstruction<1, 2, 0> {
665 public: 664 public:
666 LCmpID(LOperand* left, LOperand* right) { 665 LCmpID(LOperand* left, LOperand* right) {
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2021 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2023 }; 2022 };
2024 2023
2025 #undef DECLARE_HYDROGEN_ACCESSOR 2024 #undef DECLARE_HYDROGEN_ACCESSOR
2026 #undef DECLARE_INSTRUCTION 2025 #undef DECLARE_INSTRUCTION
2027 #undef DECLARE_CONCRETE_INSTRUCTION 2026 #undef DECLARE_CONCRETE_INSTRUCTION
2028 2027
2029 } } // namespace v8::int 2028 } } // namespace v8::int
2030 2029
2031 #endif // V8_X64_LITHIUM_X64_H_ 2030 #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