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

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

Issue 9403018: Implement fast literal support in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Daniel Clifford. Created 8 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 | « no previous file | src/arm/lithium-arm.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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 V(ConstantD) \ 86 V(ConstantD) \
87 V(ConstantI) \ 87 V(ConstantI) \
88 V(ConstantT) \ 88 V(ConstantT) \
89 V(Context) \ 89 V(Context) \
90 V(DeclareGlobals) \ 90 V(DeclareGlobals) \
91 V(DeleteProperty) \ 91 V(DeleteProperty) \
92 V(Deoptimize) \ 92 V(Deoptimize) \
93 V(DivI) \ 93 V(DivI) \
94 V(DoubleToI) \ 94 V(DoubleToI) \
95 V(ElementsKind) \ 95 V(ElementsKind) \
96 V(FastLiteral) \
96 V(FixedArrayBaseLength) \ 97 V(FixedArrayBaseLength) \
97 V(FunctionLiteral) \ 98 V(FunctionLiteral) \
98 V(GetCachedArrayIndex) \ 99 V(GetCachedArrayIndex) \
99 V(GlobalObject) \ 100 V(GlobalObject) \
100 V(GlobalReceiver) \ 101 V(GlobalReceiver) \
101 V(Goto) \ 102 V(Goto) \
102 V(HasCachedArrayIndexAndBranch) \ 103 V(HasCachedArrayIndexAndBranch) \
103 V(HasInstanceTypeAndBranch) \ 104 V(HasInstanceTypeAndBranch) \
104 V(In) \ 105 V(In) \
105 V(InstanceOf) \ 106 V(InstanceOf) \
(...skipping 22 matching lines...) Expand all
128 V(LoadKeyedGeneric) \ 129 V(LoadKeyedGeneric) \
129 V(LoadKeyedSpecializedArrayElement) \ 130 V(LoadKeyedSpecializedArrayElement) \
130 V(LoadNamedField) \ 131 V(LoadNamedField) \
131 V(LoadNamedFieldPolymorphic) \ 132 V(LoadNamedFieldPolymorphic) \
132 V(LoadNamedGeneric) \ 133 V(LoadNamedGeneric) \
133 V(ModI) \ 134 V(ModI) \
134 V(MulI) \ 135 V(MulI) \
135 V(NumberTagD) \ 136 V(NumberTagD) \
136 V(NumberTagI) \ 137 V(NumberTagI) \
137 V(NumberUntagD) \ 138 V(NumberUntagD) \
138 V(ObjectLiteralFast) \ 139 V(ObjectLiteral) \
139 V(ObjectLiteralGeneric) \
140 V(OsrEntry) \ 140 V(OsrEntry) \
141 V(OuterContext) \ 141 V(OuterContext) \
142 V(Parameter) \ 142 V(Parameter) \
143 V(Power) \ 143 V(Power) \
144 V(PushArgument) \ 144 V(PushArgument) \
145 V(Random) \ 145 V(Random) \
146 V(RegExpLiteral) \ 146 V(RegExpLiteral) \
147 V(Return) \ 147 V(Return) \
148 V(ShiftI) \ 148 V(ShiftI) \
149 V(SmiTag) \ 149 V(SmiTag) \
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1910 inputs_[0] = value; 1910 inputs_[0] = value;
1911 temps_[0] = temp; 1911 temps_[0] = temp;
1912 } 1912 }
1913 1913
1914 LOperand* unclamped() { return inputs_[0]; } 1914 LOperand* unclamped() { return inputs_[0]; }
1915 1915
1916 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") 1916 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
1917 }; 1917 };
1918 1918
1919 1919
1920 class LFastLiteral: public LTemplateInstruction<1, 0, 0> {
1921 public:
1922 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal")
1923 DECLARE_HYDROGEN_ACCESSOR(FastLiteral)
1924 };
1925
1926
1920 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { 1927 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> {
1921 public: 1928 public:
1922 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") 1929 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal")
1923 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) 1930 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral)
1924 }; 1931 };
1925 1932
1926 1933
1927 class LObjectLiteralFast: public LTemplateInstruction<1, 0, 0> { 1934 class LObjectLiteral: public LTemplateInstruction<1, 0, 0> {
1928 public: 1935 public:
1929 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteralFast, "object-literal-fast") 1936 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteral, "object-literal")
1930 DECLARE_HYDROGEN_ACCESSOR(ObjectLiteralFast) 1937 DECLARE_HYDROGEN_ACCESSOR(ObjectLiteral)
1931 }; 1938 };
1932 1939
1933 1940
1934 class LObjectLiteralGeneric: public LTemplateInstruction<1, 0, 0> {
1935 public:
1936 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteralGeneric, "object-literal-generic")
1937 DECLARE_HYDROGEN_ACCESSOR(ObjectLiteralGeneric)
1938 };
1939
1940
1941 class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> { 1941 class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> {
1942 public: 1942 public:
1943 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") 1943 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
1944 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) 1944 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
1945 }; 1945 };
1946 1946
1947 1947
1948 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> { 1948 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> {
1949 public: 1949 public:
1950 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") 1950 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal")
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
2276 2276
2277 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2277 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2278 }; 2278 };
2279 2279
2280 #undef DECLARE_HYDROGEN_ACCESSOR 2280 #undef DECLARE_HYDROGEN_ACCESSOR
2281 #undef DECLARE_CONCRETE_INSTRUCTION 2281 #undef DECLARE_CONCRETE_INSTRUCTION
2282 2282
2283 } } // namespace v8::internal 2283 } } // namespace v8::internal
2284 2284
2285 #endif // V8_ARM_LITHIUM_ARM_H_ 2285 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698