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

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

Issue 17229005: Convert UnaryOpStub to a HydrogenCodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: add some duckt tape for now to fix non-sse Created 7 years, 6 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 V(InstanceOfKnownGlobal) \ 112 V(InstanceOfKnownGlobal) \
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(IsNumberAndBranch) \
122 V(IsSmiAndBranch) \ 123 V(IsSmiAndBranch) \
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) \
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 LOperand* value() { return inputs_[0]; } 920 LOperand* value() { return inputs_[0]; }
920 LOperand* temp() { return temps_[0]; } 921 LOperand* temp() { return temps_[0]; }
921 922
922 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 923 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
923 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 924 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
924 925
925 virtual void PrintDataTo(StringStream* stream); 926 virtual void PrintDataTo(StringStream* stream);
926 }; 927 };
927 928
928 929
930 class LIsNumberAndBranch: public LControlInstruction<1, 0> {
931 public:
932 explicit LIsNumberAndBranch(LOperand* value) {
933 inputs_[0] = value;
934 }
935
936 LOperand* value() { return inputs_[0]; }
937
938 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch")
939 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch)
940 };
941
942
929 class LIsStringAndBranch: public LControlInstruction<1, 1> { 943 class LIsStringAndBranch: public LControlInstruction<1, 1> {
930 public: 944 public:
931 LIsStringAndBranch(LOperand* value, LOperand* temp) { 945 LIsStringAndBranch(LOperand* value, LOperand* temp) {
932 inputs_[0] = value; 946 inputs_[0] = value;
933 temps_[0] = temp; 947 temps_[0] = temp;
934 } 948 }
935 949
936 LOperand* value() { return inputs_[0]; } 950 LOperand* value() { return inputs_[0]; }
937 LOperand* temp() { return temps_[0]; } 951 LOperand* temp() { return temps_[0]; }
938 952
(...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after
2867 2881
2868 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2882 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2869 }; 2883 };
2870 2884
2871 #undef DECLARE_HYDROGEN_ACCESSOR 2885 #undef DECLARE_HYDROGEN_ACCESSOR
2872 #undef DECLARE_CONCRETE_INSTRUCTION 2886 #undef DECLARE_CONCRETE_INSTRUCTION
2873 2887
2874 } } // namespace v8::internal 2888 } } // namespace v8::internal
2875 2889
2876 #endif // V8_ARM_LITHIUM_ARM_H_ 2890 #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') | src/code-stubs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698