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

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

Issue 12212080: MIPS: Generate the TransitionElementsStub using Crankshaft (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed unused flag Created 7 years, 10 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/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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \ 43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \
44 V(ControlInstruction) \ 44 V(ControlInstruction) \
45 V(Call) \ 45 V(Call) \
46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V) 46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V)
47 47
48 48
49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ 49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
50 V(AccessArgumentsAt) \ 50 V(AccessArgumentsAt) \
51 V(AddI) \ 51 V(AddI) \
52 V(AllocateObject) \ 52 V(AllocateObject) \
53 V(Allocate) \
53 V(ApplyArguments) \ 54 V(ApplyArguments) \
54 V(ArgumentsElements) \ 55 V(ArgumentsElements) \
55 V(ArgumentsLength) \ 56 V(ArgumentsLength) \
56 V(ArithmeticD) \ 57 V(ArithmeticD) \
57 V(ArithmeticT) \ 58 V(ArithmeticT) \
58 V(ArrayLiteral) \ 59 V(ArrayLiteral) \
59 V(BitI) \ 60 V(BitI) \
60 V(BitNotI) \ 61 V(BitNotI) \
61 V(BoundsCheck) \ 62 V(BoundsCheck) \
62 V(Branch) \ 63 V(Branch) \
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 V(StringCharCodeAt) \ 167 V(StringCharCodeAt) \
167 V(StringCharFromCode) \ 168 V(StringCharFromCode) \
168 V(StringCompareAndBranch) \ 169 V(StringCompareAndBranch) \
169 V(StringLength) \ 170 V(StringLength) \
170 V(SubI) \ 171 V(SubI) \
171 V(TaggedToI) \ 172 V(TaggedToI) \
172 V(ThisFunction) \ 173 V(ThisFunction) \
173 V(Throw) \ 174 V(Throw) \
174 V(ToFastProperties) \ 175 V(ToFastProperties) \
175 V(TransitionElementsKind) \ 176 V(TransitionElementsKind) \
177 V(TrapAllocationMemento) \
176 V(Typeof) \ 178 V(Typeof) \
177 V(TypeofIsAndBranch) \ 179 V(TypeofIsAndBranch) \
178 V(UnaryMathOperation) \ 180 V(UnaryMathOperation) \
179 V(UnknownOSRValue) \ 181 V(UnknownOSRValue) \
180 V(ValueOf) \ 182 V(ValueOf) \
181 V(ForInPrepareMap) \ 183 V(ForInPrepareMap) \
182 V(ForInCacheArray) \ 184 V(ForInCacheArray) \
183 V(CheckMapValue) \ 185 V(CheckMapValue) \
184 V(LoadFieldByIndex) \ 186 V(LoadFieldByIndex) \
185 V(DateField) \ 187 V(DateField) \
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 class LThisFunction: public LTemplateInstruction<1, 0, 0> { 1578 class LThisFunction: public LTemplateInstruction<1, 0, 0> {
1577 public: 1579 public:
1578 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") 1580 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function")
1579 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) 1581 DECLARE_HYDROGEN_ACCESSOR(ThisFunction)
1580 }; 1582 };
1581 1583
1582 1584
1583 class LContext: public LTemplateInstruction<1, 0, 0> { 1585 class LContext: public LTemplateInstruction<1, 0, 0> {
1584 public: 1586 public:
1585 DECLARE_CONCRETE_INSTRUCTION(Context, "context") 1587 DECLARE_CONCRETE_INSTRUCTION(Context, "context")
1588 DECLARE_HYDROGEN_ACCESSOR(Context)
1586 }; 1589 };
1587 1590
1588 1591
1589 class LOuterContext: public LTemplateInstruction<1, 1, 0> { 1592 class LOuterContext: public LTemplateInstruction<1, 1, 0> {
1590 public: 1593 public:
1591 explicit LOuterContext(LOperand* context) { 1594 explicit LOuterContext(LOperand* context) {
1592 inputs_[0] = context; 1595 inputs_[0] = context;
1593 } 1596 }
1594 1597
1595 LOperand* context() { return inputs_[0]; } 1598 LOperand* context() { return inputs_[0]; }
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 inputs_[0] = value; 1812 inputs_[0] = value;
1810 temps_[0] = temp; 1813 temps_[0] = temp;
1811 temps_[1] = temp2; 1814 temps_[1] = temp2;
1812 } 1815 }
1813 1816
1814 LOperand* value() { return inputs_[0]; } 1817 LOperand* value() { return inputs_[0]; }
1815 LOperand* temp() { return temps_[0]; } 1818 LOperand* temp() { return temps_[0]; }
1816 LOperand* temp2() { return temps_[1]; } 1819 LOperand* temp2() { return temps_[1]; }
1817 1820
1818 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") 1821 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d")
1822 DECLARE_HYDROGEN_ACCESSOR(Change)
1819 }; 1823 };
1820 1824
1821 1825
1822 // Sometimes truncating conversion from a tagged value to an int32. 1826 // Sometimes truncating conversion from a tagged value to an int32.
1823 class LDoubleToI: public LTemplateInstruction<1, 1, 2> { 1827 class LDoubleToI: public LTemplateInstruction<1, 1, 2> {
1824 public: 1828 public:
1825 LDoubleToI(LOperand* value, LOperand* temp, LOperand* temp2) { 1829 LDoubleToI(LOperand* value, LOperand* temp, LOperand* temp2) {
1826 inputs_[0] = value; 1830 inputs_[0] = value;
1827 temps_[0] = temp; 1831 temps_[0] = temp;
1828 temps_[1] = temp2; 1832 temps_[1] = temp2;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1993 virtual void PrintDataTo(StringStream* stream); 1997 virtual void PrintDataTo(StringStream* stream);
1994 1998
1995 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } 1999 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
1996 }; 2000 };
1997 2001
1998 2002
1999 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { 2003 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> {
2000 public: 2004 public:
2001 LTransitionElementsKind(LOperand* object, 2005 LTransitionElementsKind(LOperand* object,
2002 LOperand* new_map_temp, 2006 LOperand* new_map_temp,
2003 LOperand* temp) { 2007 LOperand* fixed_object_temp) {
2004 inputs_[0] = object; 2008 inputs_[0] = object;
2005 temps_[0] = new_map_temp; 2009 temps_[0] = new_map_temp;
2006 temps_[1] = temp; 2010 temps_[1] = fixed_object_temp;
2007 } 2011 }
2008 2012
2009 LOperand* object() { return inputs_[0]; } 2013 LOperand* object() { return inputs_[0]; }
2010 LOperand* new_map_temp() { return temps_[0]; } 2014 LOperand* new_map_temp() { return temps_[0]; }
2011 LOperand* temp() { return temps_[1]; } 2015 LOperand* temp() { return temps_[1]; }
2012 2016
2013 DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind, 2017 DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind,
2014 "transition-elements-kind") 2018 "transition-elements-kind")
2015 DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind) 2019 DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind)
2016 2020
2017 virtual void PrintDataTo(StringStream* stream); 2021 virtual void PrintDataTo(StringStream* stream);
2018 2022
2019 Handle<Map> original_map() { return hydrogen()->original_map(); } 2023 Handle<Map> original_map() { return hydrogen()->original_map(); }
2020 Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); } 2024 Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); }
2021 ElementsKind from_kind() { return hydrogen()->from_kind(); } 2025 ElementsKind from_kind() { return hydrogen()->from_kind(); }
2022 ElementsKind to_kind() { return hydrogen()->to_kind(); } 2026 ElementsKind to_kind() { return hydrogen()->to_kind(); }
2023 }; 2027 };
2024 2028
2025 2029
2030 class LTrapAllocationMemento : public LTemplateInstruction<0, 1, 1> {
2031 public:
2032 LTrapAllocationMemento(LOperand* object,
2033 LOperand* temp) {
2034 inputs_[0] = object;
2035 temps_[0] = temp;
2036 }
2037
2038 LOperand* object() { return inputs_[0]; }
2039 LOperand* temp() { return temps_[0]; }
2040
2041 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento,
2042 "trap-allocation-memento")
2043 };
2044
2045
2026 class LStringAdd: public LTemplateInstruction<1, 2, 0> { 2046 class LStringAdd: public LTemplateInstruction<1, 2, 0> {
2027 public: 2047 public:
2028 LStringAdd(LOperand* left, LOperand* right) { 2048 LStringAdd(LOperand* left, LOperand* right) {
2029 inputs_[0] = left; 2049 inputs_[0] = left;
2030 inputs_[1] = right; 2050 inputs_[1] = right;
2031 } 2051 }
2032 2052
2033 LOperand* left() { return inputs_[0]; } 2053 LOperand* left() { return inputs_[0]; }
2034 LOperand* right() { return inputs_[1]; } 2054 LOperand* right() { return inputs_[1]; }
2035 2055
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2196 temps_[0] = temp; 2216 temps_[0] = temp;
2197 } 2217 }
2198 2218
2199 LOperand* unclamped() { return inputs_[0]; } 2219 LOperand* unclamped() { return inputs_[0]; }
2200 LOperand* temp() { return temps_[0]; } 2220 LOperand* temp() { return temps_[0]; }
2201 2221
2202 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") 2222 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
2203 }; 2223 };
2204 2224
2205 2225
2206 class LAllocateObject: public LTemplateInstruction<1, 0, 2> { 2226 class LAllocateObject: public LTemplateInstruction<1, 1, 2> {
2207 public: 2227 public:
2208 LAllocateObject(LOperand* temp, LOperand* temp2) { 2228 LAllocateObject(LOperand* temp, LOperand* temp2) {
2209 temps_[0] = temp; 2229 temps_[0] = temp;
2210 temps_[1] = temp2; 2230 temps_[1] = temp2;
2211 } 2231 }
2212 2232
2213 LOperand* temp() { return temps_[0]; } 2233 LOperand* temp() { return temps_[0]; }
2214 LOperand* temp2() { return temps_[1]; } 2234 LOperand* temp2() { return temps_[1]; }
2215 2235
2216 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") 2236 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object")
2217 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) 2237 DECLARE_HYDROGEN_ACCESSOR(AllocateObject)
2218 }; 2238 };
2219 2239
2220 2240
2241 class LAllocate: public LTemplateInstruction<1, 2, 2> {
2242 public:
2243 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) {
2244 inputs_[1] = size;
2245 temps_[0] = temp1;
2246 temps_[1] = temp2;
2247 }
2248
2249 LOperand* size() { return inputs_[1]; }
2250 LOperand* temp1() { return temps_[0]; }
2251 LOperand* temp2() { return temps_[1]; }
2252
2253 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
2254 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2255 };
2256
2257
2221 class LFastLiteral: public LTemplateInstruction<1, 0, 0> { 2258 class LFastLiteral: public LTemplateInstruction<1, 0, 0> {
2222 public: 2259 public:
2223 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal") 2260 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal")
2224 DECLARE_HYDROGEN_ACCESSOR(FastLiteral) 2261 DECLARE_HYDROGEN_ACCESSOR(FastLiteral)
2225 }; 2262 };
2226 2263
2227 2264
2228 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { 2265 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> {
2229 public: 2266 public:
2230 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") 2267 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal")
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
2593 2630
2594 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2631 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2595 }; 2632 };
2596 2633
2597 #undef DECLARE_HYDROGEN_ACCESSOR 2634 #undef DECLARE_HYDROGEN_ACCESSOR
2598 #undef DECLARE_CONCRETE_INSTRUCTION 2635 #undef DECLARE_CONCRETE_INSTRUCTION
2599 2636
2600 } } // namespace v8::internal 2637 } } // namespace v8::internal
2601 2638
2602 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2639 #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