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

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

Issue 134223003: A64: Implement LPower and extend MathPowStub to support args in registers (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: reupload Created 6 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/a64/code-stubs-a64.cc ('k') | src/a64/lithium-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 V(MathSqrt) \ 147 V(MathSqrt) \
148 V(MathTan) \ 148 V(MathTan) \
149 V(MulConstI) \ 149 V(MulConstI) \
150 V(MulI) \ 150 V(MulI) \
151 V(NumberTagD) \ 151 V(NumberTagD) \
152 V(NumberTagU) \ 152 V(NumberTagU) \
153 V(NumberUntagD) \ 153 V(NumberUntagD) \
154 V(OsrEntry) \ 154 V(OsrEntry) \
155 V(OuterContext) \ 155 V(OuterContext) \
156 V(Parameter) \ 156 V(Parameter) \
157 V(Power) \
157 V(PushArgument) \ 158 V(PushArgument) \
158 V(RegExpLiteral) \ 159 V(RegExpLiteral) \
159 V(Return) \ 160 V(Return) \
160 V(SeqStringSetChar) \ 161 V(SeqStringSetChar) \
161 V(ShiftI) \ 162 V(ShiftI) \
162 V(SmiTag) \ 163 V(SmiTag) \
163 V(SmiUntag) \ 164 V(SmiUntag) \
164 V(StackCheck) \ 165 V(StackCheck) \
165 V(StoreContextSlot) \ 166 V(StoreContextSlot) \
166 V(StoreGlobalCell) \ 167 V(StoreGlobalCell) \
(...skipping 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 }; 1978 };
1978 1979
1979 1980
1980 class LParameter: public LTemplateInstruction<1, 0, 0> { 1981 class LParameter: public LTemplateInstruction<1, 0, 0> {
1981 public: 1982 public:
1982 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } 1983 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
1983 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter") 1984 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter")
1984 }; 1985 };
1985 1986
1986 1987
1988 class LPower: public LTemplateInstruction<1, 2, 0> {
1989 public:
1990 LPower(LOperand* left, LOperand* right) {
1991 inputs_[0] = left;
1992 inputs_[1] = right;
1993 }
1994
1995 LOperand* left() { return inputs_[0]; }
1996 LOperand* right() { return inputs_[1]; }
1997
1998 DECLARE_CONCRETE_INSTRUCTION(Power, "power")
1999 DECLARE_HYDROGEN_ACCESSOR(Power)
2000 };
2001
2002
1987 class LPushArgument: public LTemplateInstruction<0, 1, 0> { 2003 class LPushArgument: public LTemplateInstruction<0, 1, 0> {
1988 public: 2004 public:
1989 explicit LPushArgument(LOperand* value) { 2005 explicit LPushArgument(LOperand* value) {
1990 inputs_[0] = value; 2006 inputs_[0] = value;
1991 } 2007 }
1992 2008
1993 LOperand* value() { return inputs_[0]; } 2009 LOperand* value() { return inputs_[0]; }
1994 2010
1995 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument") 2011 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument")
1996 }; 2012 };
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 2779
2764 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2780 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2765 }; 2781 };
2766 2782
2767 #undef DECLARE_HYDROGEN_ACCESSOR 2783 #undef DECLARE_HYDROGEN_ACCESSOR
2768 #undef DECLARE_CONCRETE_INSTRUCTION 2784 #undef DECLARE_CONCRETE_INSTRUCTION
2769 2785
2770 } } // namespace v8::internal 2786 } } // namespace v8::internal
2771 2787
2772 #endif // V8_A64_LITHIUM_A64_H_ 2788 #endif // V8_A64_LITHIUM_A64_H_
OLDNEW
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/a64/lithium-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698