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

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

Issue 72003003: Merged r17451 into 3.20 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.20
Patch Set: Rebase Created 7 years, 1 month 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 V(SubI) \ 175 V(SubI) \
176 V(TaggedToI) \ 176 V(TaggedToI) \
177 V(ThisFunction) \ 177 V(ThisFunction) \
178 V(Throw) \ 178 V(Throw) \
179 V(ToFastProperties) \ 179 V(ToFastProperties) \
180 V(TransitionElementsKind) \ 180 V(TransitionElementsKind) \
181 V(TrapAllocationMemento) \ 181 V(TrapAllocationMemento) \
182 V(Typeof) \ 182 V(Typeof) \
183 V(TypeofIsAndBranch) \ 183 V(TypeofIsAndBranch) \
184 V(Uint32ToDouble) \ 184 V(Uint32ToDouble) \
185 V(Uint32ToSmi) \
185 V(UnknownOSRValue) \ 186 V(UnknownOSRValue) \
186 V(ValueOf) \ 187 V(ValueOf) \
187 V(WrapReceiver) 188 V(WrapReceiver)
188 189
189 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 190 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
190 virtual Opcode opcode() const { return LInstruction::k##type; } \ 191 virtual Opcode opcode() const { return LInstruction::k##type; } \
191 virtual void CompileToNative(LCodeGen* generator); \ 192 virtual void CompileToNative(LCodeGen* generator); \
192 virtual const char* Mnemonic() const { return mnemonic; } \ 193 virtual const char* Mnemonic() const { return mnemonic; } \
193 static L##type* cast(LInstruction* instr) { \ 194 static L##type* cast(LInstruction* instr) { \
194 ASSERT(instr->Is##type()); \ 195 ASSERT(instr->Is##type()); \
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 explicit LUint32ToDouble(LOperand* value) { 1959 explicit LUint32ToDouble(LOperand* value) {
1959 inputs_[0] = value; 1960 inputs_[0] = value;
1960 } 1961 }
1961 1962
1962 LOperand* value() { return inputs_[0]; } 1963 LOperand* value() { return inputs_[0]; }
1963 1964
1964 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") 1965 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double")
1965 }; 1966 };
1966 1967
1967 1968
1969 class LUint32ToSmi: public LTemplateInstruction<1, 1, 0> {
1970 public:
1971 explicit LUint32ToSmi(LOperand* value) {
1972 inputs_[0] = value;
1973 }
1974
1975 LOperand* value() { return inputs_[0]; }
1976
1977 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi")
1978 DECLARE_HYDROGEN_ACCESSOR(Change)
1979 };
1980
1981
1968 class LNumberTagI: public LTemplateInstruction<1, 1, 0> { 1982 class LNumberTagI: public LTemplateInstruction<1, 1, 0> {
1969 public: 1983 public:
1970 explicit LNumberTagI(LOperand* value) { 1984 explicit LNumberTagI(LOperand* value) {
1971 inputs_[0] = value; 1985 inputs_[0] = value;
1972 } 1986 }
1973 1987
1974 LOperand* value() { return inputs_[0]; } 1988 LOperand* value() { return inputs_[0]; }
1975 1989
1976 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") 1990 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
1977 }; 1991 };
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
2734 2748
2735 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2749 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2736 }; 2750 };
2737 2751
2738 #undef DECLARE_HYDROGEN_ACCESSOR 2752 #undef DECLARE_HYDROGEN_ACCESSOR
2739 #undef DECLARE_CONCRETE_INSTRUCTION 2753 #undef DECLARE_CONCRETE_INSTRUCTION
2740 2754
2741 } } // namespace v8::internal 2755 } } // namespace v8::internal
2742 2756
2743 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2757 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698