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

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

Issue 54393002: Fix uint32-to-smi conversion in Lithium (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: your wish is my command 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 191
191 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 192 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
192 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ 193 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \
193 return LInstruction::k##type; \ 194 return LInstruction::k##type; \
194 } \ 195 } \
195 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ 196 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \
(...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after
2069 temps_[0] = temp; 2070 temps_[0] = temp;
2070 } 2071 }
2071 2072
2072 LOperand* value() { return inputs_[0]; } 2073 LOperand* value() { return inputs_[0]; }
2073 LOperand* temp() { return temps_[0]; } 2074 LOperand* temp() { return temps_[0]; }
2074 2075
2075 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") 2076 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double")
2076 }; 2077 };
2077 2078
2078 2079
2080 class LUint32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2081 public:
2082 explicit LUint32ToSmi(LOperand* value) {
2083 inputs_[0] = value;
2084 }
2085
2086 LOperand* value() { return inputs_[0]; }
2087
2088 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi")
2089 DECLARE_HYDROGEN_ACCESSOR(Change)
2090 };
2091
2092
2079 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2093 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2080 public: 2094 public:
2081 explicit LNumberTagI(LOperand* value) { 2095 explicit LNumberTagI(LOperand* value) {
2082 inputs_[0] = value; 2096 inputs_[0] = value;
2083 } 2097 }
2084 2098
2085 LOperand* value() { return inputs_[0]; } 2099 LOperand* value() { return inputs_[0]; }
2086 2100
2087 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") 2101 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
2088 }; 2102 };
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2901 2915
2902 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2916 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2903 }; 2917 };
2904 2918
2905 #undef DECLARE_HYDROGEN_ACCESSOR 2919 #undef DECLARE_HYDROGEN_ACCESSOR
2906 #undef DECLARE_CONCRETE_INSTRUCTION 2920 #undef DECLARE_CONCRETE_INSTRUCTION
2907 2921
2908 } } // namespace v8::internal 2922 } } // namespace v8::internal
2909 2923
2910 #endif // V8_IA32_LITHIUM_IA32_H_ 2924 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698