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

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

Issue 17229005: Convert UnaryOpStub to a HydrogenCodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix code stub disass output 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
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 V(InstanceSize) \ 114 V(InstanceSize) \
115 V(InstructionGap) \ 115 V(InstructionGap) \
116 V(Integer32ToDouble) \ 116 V(Integer32ToDouble) \
117 V(Integer32ToSmi) \ 117 V(Integer32ToSmi) \
118 V(Uint32ToDouble) \ 118 V(Uint32ToDouble) \
119 V(InvokeFunction) \ 119 V(InvokeFunction) \
120 V(IsConstructCallAndBranch) \ 120 V(IsConstructCallAndBranch) \
121 V(IsObjectAndBranch) \ 121 V(IsObjectAndBranch) \
122 V(IsStringAndBranch) \ 122 V(IsStringAndBranch) \
123 V(IsSmiAndBranch) \ 123 V(IsSmiAndBranch) \
124 V(IsNumberAndBranch) \
124 V(IsUndetectableAndBranch) \ 125 V(IsUndetectableAndBranch) \
125 V(Label) \ 126 V(Label) \
126 V(LazyBailout) \ 127 V(LazyBailout) \
127 V(LoadContextSlot) \ 128 V(LoadContextSlot) \
128 V(LoadExternalArrayPointer) \ 129 V(LoadExternalArrayPointer) \
129 V(LoadFunctionPrototype) \ 130 V(LoadFunctionPrototype) \
130 V(LoadGlobalCell) \ 131 V(LoadGlobalCell) \
131 V(LoadGlobalGeneric) \ 132 V(LoadGlobalGeneric) \
132 V(LoadKeyed) \ 133 V(LoadKeyed) \
133 V(LoadKeyedGeneric) \ 134 V(LoadKeyedGeneric) \
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 861
861 LOperand* value() { return inputs_[0]; } 862 LOperand* value() { return inputs_[0]; }
862 863
863 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 864 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
864 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 865 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
865 866
866 virtual void PrintDataTo(StringStream* stream); 867 virtual void PrintDataTo(StringStream* stream);
867 }; 868 };
868 869
869 870
871 class LIsNumberAndBranch: public LControlInstruction<1, 0> {
872 public:
873 explicit LIsNumberAndBranch(LOperand* value) {
874 inputs_[0] = value;
875 }
876
877 LOperand* value() { return inputs_[0]; }
878
879 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch")
880 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch)
881 };
882
883
870 class LIsStringAndBranch: public LControlInstruction<1, 1> { 884 class LIsStringAndBranch: public LControlInstruction<1, 1> {
871 public: 885 public:
872 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { 886 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) {
873 inputs_[0] = value; 887 inputs_[0] = value;
874 temps_[0] = temp; 888 temps_[0] = temp;
875 } 889 }
876 890
877 LOperand* value() { return inputs_[0]; } 891 LOperand* value() { return inputs_[0]; }
878 LOperand* temp() { return temps_[0]; } 892 LOperand* temp() { return temps_[0]; }
879 893
(...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after
2767 2781
2768 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2782 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2769 }; 2783 };
2770 2784
2771 #undef DECLARE_HYDROGEN_ACCESSOR 2785 #undef DECLARE_HYDROGEN_ACCESSOR
2772 #undef DECLARE_CONCRETE_INSTRUCTION 2786 #undef DECLARE_CONCRETE_INSTRUCTION
2773 2787
2774 } } // namespace v8::int 2788 } } // namespace v8::int
2775 2789
2776 #endif // V8_X64_LITHIUM_X64_H_ 2790 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« src/hydrogen.h ('K') | « 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