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

Side by Side Diff: src/arm/lithium-arm.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/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 V(InstanceOfKnownGlobal) \ 111 V(InstanceOfKnownGlobal) \
112 V(InstanceSize) \ 112 V(InstanceSize) \
113 V(InstructionGap) \ 113 V(InstructionGap) \
114 V(Integer32ToDouble) \ 114 V(Integer32ToDouble) \
115 V(Integer32ToSmi) \ 115 V(Integer32ToSmi) \
116 V(Uint32ToDouble) \ 116 V(Uint32ToDouble) \
117 V(InvokeFunction) \ 117 V(InvokeFunction) \
118 V(IsConstructCallAndBranch) \ 118 V(IsConstructCallAndBranch) \
119 V(IsObjectAndBranch) \ 119 V(IsObjectAndBranch) \
120 V(IsStringAndBranch) \ 120 V(IsStringAndBranch) \
121 V(IsNumberAndBranch) \
121 V(IsSmiAndBranch) \ 122 V(IsSmiAndBranch) \
122 V(IsUndetectableAndBranch) \ 123 V(IsUndetectableAndBranch) \
123 V(Label) \ 124 V(Label) \
124 V(LazyBailout) \ 125 V(LazyBailout) \
125 V(LoadContextSlot) \ 126 V(LoadContextSlot) \
126 V(LoadExternalArrayPointer) \ 127 V(LoadExternalArrayPointer) \
127 V(LoadFunctionPrototype) \ 128 V(LoadFunctionPrototype) \
128 V(LoadGlobalCell) \ 129 V(LoadGlobalCell) \
129 V(LoadGlobalGeneric) \ 130 V(LoadGlobalGeneric) \
130 V(LoadKeyed) \ 131 V(LoadKeyed) \
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 LOperand* value() { return inputs_[0]; } 919 LOperand* value() { return inputs_[0]; }
919 LOperand* temp() { return temps_[0]; } 920 LOperand* temp() { return temps_[0]; }
920 921
921 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 922 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
922 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 923 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
923 924
924 virtual void PrintDataTo(StringStream* stream); 925 virtual void PrintDataTo(StringStream* stream);
925 }; 926 };
926 927
927 928
929 class LIsNumberAndBranch: public LControlInstruction<1, 0> {
930 public:
931 explicit LIsNumberAndBranch(LOperand* value) {
932 inputs_[0] = value;
933 }
934
935 LOperand* value() { return inputs_[0]; }
936
937 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch")
938 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch)
939 };
940
941
928 class LIsStringAndBranch: public LControlInstruction<1, 1> { 942 class LIsStringAndBranch: public LControlInstruction<1, 1> {
929 public: 943 public:
930 LIsStringAndBranch(LOperand* value, LOperand* temp) { 944 LIsStringAndBranch(LOperand* value, LOperand* temp) {
931 inputs_[0] = value; 945 inputs_[0] = value;
932 temps_[0] = temp; 946 temps_[0] = temp;
933 } 947 }
934 948
935 LOperand* value() { return inputs_[0]; } 949 LOperand* value() { return inputs_[0]; }
936 LOperand* temp() { return temps_[0]; } 950 LOperand* temp() { return temps_[0]; }
937 951
(...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after
2837 2851
2838 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2852 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2839 }; 2853 };
2840 2854
2841 #undef DECLARE_HYDROGEN_ACCESSOR 2855 #undef DECLARE_HYDROGEN_ACCESSOR
2842 #undef DECLARE_CONCRETE_INSTRUCTION 2856 #undef DECLARE_CONCRETE_INSTRUCTION
2843 2857
2844 } } // namespace v8::internal 2858 } } // namespace v8::internal
2845 2859
2846 #endif // V8_ARM_LITHIUM_ARM_H_ 2860 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698