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

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

Issue 59813005: Merged r17451 into 3.21 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.21
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 V(SubI) \ 176 V(SubI) \
177 V(TaggedToI) \ 177 V(TaggedToI) \
178 V(ThisFunction) \ 178 V(ThisFunction) \
179 V(Throw) \ 179 V(Throw) \
180 V(ToFastProperties) \ 180 V(ToFastProperties) \
181 V(TransitionElementsKind) \ 181 V(TransitionElementsKind) \
182 V(TrapAllocationMemento) \ 182 V(TrapAllocationMemento) \
183 V(Typeof) \ 183 V(Typeof) \
184 V(TypeofIsAndBranch) \ 184 V(TypeofIsAndBranch) \
185 V(Uint32ToDouble) \ 185 V(Uint32ToDouble) \
186 V(Uint32ToSmi) \
186 V(UnknownOSRValue) \ 187 V(UnknownOSRValue) \
187 V(ValueOf) \ 188 V(ValueOf) \
188 V(WrapReceiver) 189 V(WrapReceiver)
189 190
190 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 191 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
191 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ 192 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \
192 return LInstruction::k##type; \ 193 return LInstruction::k##type; \
193 } \ 194 } \
194 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ 195 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \
195 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ 196 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \
(...skipping 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after
2004 explicit LUint32ToDouble(LOperand* value) { 2005 explicit LUint32ToDouble(LOperand* value) {
2005 inputs_[0] = value; 2006 inputs_[0] = value;
2006 } 2007 }
2007 2008
2008 LOperand* value() { return inputs_[0]; } 2009 LOperand* value() { return inputs_[0]; }
2009 2010
2010 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") 2011 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double")
2011 }; 2012 };
2012 2013
2013 2014
2015 class LUint32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2016 public:
2017 explicit LUint32ToSmi(LOperand* value) {
2018 inputs_[0] = value;
2019 }
2020
2021 LOperand* value() { return inputs_[0]; }
2022
2023 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi")
2024 DECLARE_HYDROGEN_ACCESSOR(Change)
2025 };
2026
2027
2014 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2028 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2015 public: 2029 public:
2016 explicit LNumberTagI(LOperand* value) { 2030 explicit LNumberTagI(LOperand* value) {
2017 inputs_[0] = value; 2031 inputs_[0] = value;
2018 } 2032 }
2019 2033
2020 LOperand* value() { return inputs_[0]; } 2034 LOperand* value() { return inputs_[0]; }
2021 2035
2022 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") 2036 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
2023 }; 2037 };
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 2785
2772 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2786 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2773 }; 2787 };
2774 2788
2775 #undef DECLARE_HYDROGEN_ACCESSOR 2789 #undef DECLARE_HYDROGEN_ACCESSOR
2776 #undef DECLARE_CONCRETE_INSTRUCTION 2790 #undef DECLARE_CONCRETE_INSTRUCTION
2777 2791
2778 } } // namespace v8::internal 2792 } } // namespace v8::internal
2779 2793
2780 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2794 #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