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

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

Issue 18712002: Convert UnaryOpStub to a HydrogenCodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address review Created 7 years, 5 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 V(InstanceSize) \ 113 V(InstanceSize) \
114 V(InstructionGap) \ 114 V(InstructionGap) \
115 V(Integer32ToDouble) \ 115 V(Integer32ToDouble) \
116 V(Integer32ToSmi) \ 116 V(Integer32ToSmi) \
117 V(Uint32ToDouble) \ 117 V(Uint32ToDouble) \
118 V(InvokeFunction) \ 118 V(InvokeFunction) \
119 V(IsConstructCallAndBranch) \ 119 V(IsConstructCallAndBranch) \
120 V(IsObjectAndBranch) \ 120 V(IsObjectAndBranch) \
121 V(IsStringAndBranch) \ 121 V(IsStringAndBranch) \
122 V(IsSmiAndBranch) \ 122 V(IsSmiAndBranch) \
123 V(IsNumberAndBranch) \
123 V(IsUndetectableAndBranch) \ 124 V(IsUndetectableAndBranch) \
124 V(Label) \ 125 V(Label) \
125 V(LazyBailout) \ 126 V(LazyBailout) \
126 V(LoadContextSlot) \ 127 V(LoadContextSlot) \
127 V(LoadExternalArrayPointer) \ 128 V(LoadExternalArrayPointer) \
128 V(LoadFunctionPrototype) \ 129 V(LoadFunctionPrototype) \
129 V(LoadGlobalCell) \ 130 V(LoadGlobalCell) \
130 V(LoadGlobalGeneric) \ 131 V(LoadGlobalGeneric) \
131 V(LoadKeyed) \ 132 V(LoadKeyed) \
132 V(LoadKeyedGeneric) \ 133 V(LoadKeyedGeneric) \
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 860
860 LOperand* value() { return inputs_[0]; } 861 LOperand* value() { return inputs_[0]; }
861 862
862 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 863 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
863 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 864 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
864 865
865 virtual void PrintDataTo(StringStream* stream); 866 virtual void PrintDataTo(StringStream* stream);
866 }; 867 };
867 868
868 869
870 class LIsNumberAndBranch: public LControlInstruction<1, 0> {
871 public:
872 explicit LIsNumberAndBranch(LOperand* value) {
873 inputs_[0] = value;
874 }
875
876 LOperand* value() { return inputs_[0]; }
877
878 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch")
879 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch)
880 };
881
882
869 class LIsStringAndBranch: public LControlInstruction<1, 1> { 883 class LIsStringAndBranch: public LControlInstruction<1, 1> {
870 public: 884 public:
871 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { 885 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) {
872 inputs_[0] = value; 886 inputs_[0] = value;
873 temps_[0] = temp; 887 temps_[0] = temp;
874 } 888 }
875 889
876 LOperand* value() { return inputs_[0]; } 890 LOperand* value() { return inputs_[0]; }
877 LOperand* temp() { return temps_[0]; } 891 LOperand* temp() { return temps_[0]; }
878 892
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
2737 2751
2738 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2752 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2739 }; 2753 };
2740 2754
2741 #undef DECLARE_HYDROGEN_ACCESSOR 2755 #undef DECLARE_HYDROGEN_ACCESSOR
2742 #undef DECLARE_CONCRETE_INSTRUCTION 2756 #undef DECLARE_CONCRETE_INSTRUCTION
2743 2757
2744 } } // namespace v8::int 2758 } } // namespace v8::int
2745 2759
2746 #endif // V8_X64_LITHIUM_X64_H_ 2760 #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