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

Side by Side Diff: src/x64/lithium-x64.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 | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { 1899 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
1900 public: 1900 public:
1901 explicit LCheckNonSmi(LOperand* value) { 1901 explicit LCheckNonSmi(LOperand* value) {
1902 inputs_[0] = value; 1902 inputs_[0] = value;
1903 } 1903 }
1904 1904
1905 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") 1905 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
1906 }; 1906 };
1907 1907
1908 1908
1909 class LFastLiteral: public LTemplateInstruction<1, 0, 0> {
1910 public:
1911 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal")
1912 DECLARE_HYDROGEN_ACCESSOR(FastLiteral)
1913 };
1914
1915
1909 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { 1916 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> {
1910 public: 1917 public:
1911 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") 1918 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal")
1912 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) 1919 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral)
1913 }; 1920 };
1914 1921
1915 1922
1916 class LObjectLiteralFast: public LTemplateInstruction<1, 0, 0> { 1923 class LObjectLiteral: public LTemplateInstruction<1, 0, 0> {
1917 public: 1924 public:
1918 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteralFast, "object-literal-fast") 1925 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteral, "object-literal")
1919 DECLARE_HYDROGEN_ACCESSOR(ObjectLiteralFast) 1926 DECLARE_HYDROGEN_ACCESSOR(ObjectLiteral)
1920 }; 1927 };
1921 1928
1922 1929
1923 class LObjectLiteralGeneric: public LTemplateInstruction<1, 0, 0> {
1924 public:
1925 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteralGeneric, "object-literal-generic")
1926 DECLARE_HYDROGEN_ACCESSOR(ObjectLiteralGeneric)
1927 };
1928
1929
1930 class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> { 1930 class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> {
1931 public: 1931 public:
1932 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") 1932 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
1933 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) 1933 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
1934 }; 1934 };
1935 1935
1936 1936
1937 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> { 1937 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> {
1938 public: 1938 public:
1939 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") 1939 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal")
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 2262
2263 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2263 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2264 }; 2264 };
2265 2265
2266 #undef DECLARE_HYDROGEN_ACCESSOR 2266 #undef DECLARE_HYDROGEN_ACCESSOR
2267 #undef DECLARE_CONCRETE_INSTRUCTION 2267 #undef DECLARE_CONCRETE_INSTRUCTION
2268 2268
2269 } } // namespace v8::int 2269 } } // namespace v8::int
2270 2270
2271 #endif // V8_X64_LITHIUM_X64_H_ 2271 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698