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

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

Issue 6374002: X64 Crank: Implemented DoBranch and all *AndBranch comparisons. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build-x64
Patch Set: Removed unnecessary temporary. Created 9 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 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 public: 781 public:
782 explicit LHasInstanceType(LOperand* value) { 782 explicit LHasInstanceType(LOperand* value) {
783 inputs_[0] = value; 783 inputs_[0] = value;
784 } 784 }
785 785
786 DECLARE_CONCRETE_INSTRUCTION(HasInstanceType, "has-instance-type") 786 DECLARE_CONCRETE_INSTRUCTION(HasInstanceType, "has-instance-type")
787 DECLARE_HYDROGEN_ACCESSOR(HasInstanceType) 787 DECLARE_HYDROGEN_ACCESSOR(HasInstanceType)
788 }; 788 };
789 789
790 790
791 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 1> { 791 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> {
792 public: 792 public:
793 LHasInstanceTypeAndBranch(LOperand* value, LOperand* temp) { 793 explicit LHasInstanceTypeAndBranch(LOperand* value) {
794 inputs_[0] = value; 794 inputs_[0] = value;
795 temps_[0] = temp;
796 } 795 }
797 796
798 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, 797 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
799 "has-instance-type-and-branch") 798 "has-instance-type-and-branch")
800 DECLARE_HYDROGEN_ACCESSOR(HasInstanceType) 799 DECLARE_HYDROGEN_ACCESSOR(HasInstanceType)
801 800
802 virtual void PrintDataTo(StringStream* stream); 801 virtual void PrintDataTo(StringStream* stream);
803 }; 802 };
804 803
805 804
(...skipping 27 matching lines...) Expand all
833 temps_[0] = temp; 832 temps_[0] = temp;
834 } 833 }
835 834
836 DECLARE_CONCRETE_INSTRUCTION(ClassOfTest, "class-of-test") 835 DECLARE_CONCRETE_INSTRUCTION(ClassOfTest, "class-of-test")
837 DECLARE_HYDROGEN_ACCESSOR(ClassOfTest) 836 DECLARE_HYDROGEN_ACCESSOR(ClassOfTest)
838 837
839 virtual void PrintDataTo(StringStream* stream); 838 virtual void PrintDataTo(StringStream* stream);
840 }; 839 };
841 840
842 841
843 class LClassOfTestAndBranch: public LControlInstruction<1, 2> { 842 class LClassOfTestAndBranch: public LControlInstruction<1, 1> {
844 public: 843 public:
845 LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) { 844 LClassOfTestAndBranch(LOperand* value, LOperand* temp) {
846 inputs_[0] = value; 845 inputs_[0] = value;
847 temps_[0] = temp; 846 temps_[0] = temp;
848 temps_[1] = temp2;
849 } 847 }
850 848
851 DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch, 849 DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch,
852 "class-of-test-and-branch") 850 "class-of-test-and-branch")
853 DECLARE_HYDROGEN_ACCESSOR(ClassOfTest) 851 DECLARE_HYDROGEN_ACCESSOR(ClassOfTest)
854 852
855 virtual void PrintDataTo(StringStream* stream); 853 virtual void PrintDataTo(StringStream* stream);
856 }; 854 };
857 855
858 856
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1989 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1987 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1990 }; 1988 };
1991 1989
1992 #undef DECLARE_HYDROGEN_ACCESSOR 1990 #undef DECLARE_HYDROGEN_ACCESSOR
1993 #undef DECLARE_INSTRUCTION 1991 #undef DECLARE_INSTRUCTION
1994 #undef DECLARE_CONCRETE_INSTRUCTION 1992 #undef DECLARE_CONCRETE_INSTRUCTION
1995 1993
1996 } } // namespace v8::int 1994 } } // namespace v8::int
1997 1995
1998 #endif // V8_X64_LITHIUM_X64_H_ 1996 #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