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

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

Issue 8640001: Implement crankshaft support for nested object literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported lithium part to x64 and ARM. Created 9 years 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 V(LoadKeyedGeneric) \ 121 V(LoadKeyedGeneric) \
122 V(LoadKeyedSpecializedArrayElement) \ 122 V(LoadKeyedSpecializedArrayElement) \
123 V(LoadNamedField) \ 123 V(LoadNamedField) \
124 V(LoadNamedFieldPolymorphic) \ 124 V(LoadNamedFieldPolymorphic) \
125 V(LoadNamedGeneric) \ 125 V(LoadNamedGeneric) \
126 V(ModI) \ 126 V(ModI) \
127 V(MulI) \ 127 V(MulI) \
128 V(NumberTagD) \ 128 V(NumberTagD) \
129 V(NumberTagI) \ 129 V(NumberTagI) \
130 V(NumberUntagD) \ 130 V(NumberUntagD) \
131 V(ObjectLiteral) \ 131 V(ObjectLiteralFast) \
132 V(ObjectLiteralGeneric) \
132 V(OsrEntry) \ 133 V(OsrEntry) \
133 V(OuterContext) \ 134 V(OuterContext) \
134 V(Parameter) \ 135 V(Parameter) \
135 V(Power) \ 136 V(Power) \
136 V(PushArgument) \ 137 V(PushArgument) \
137 V(RegExpLiteral) \ 138 V(RegExpLiteral) \
138 V(Return) \ 139 V(Return) \
139 V(ShiftI) \ 140 V(ShiftI) \
140 V(SmiTag) \ 141 V(SmiTag) \
141 V(SmiUntag) \ 142 V(SmiUntag) \
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after
1953 inputs_[0] = context; 1954 inputs_[0] = context;
1954 } 1955 }
1955 1956
1956 LOperand* context() { return inputs_[0]; } 1957 LOperand* context() { return inputs_[0]; }
1957 1958
1958 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") 1959 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal")
1959 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) 1960 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral)
1960 }; 1961 };
1961 1962
1962 1963
1963 class LObjectLiteral: public LTemplateInstruction<1, 1, 0> { 1964 class LObjectLiteralFast: public LTemplateInstruction<1, 1, 0> {
1964 public: 1965 public:
1965 explicit LObjectLiteral(LOperand* context) { 1966 explicit LObjectLiteralFast(LOperand* context) {
1966 inputs_[0] = context; 1967 inputs_[0] = context;
1967 } 1968 }
1968 1969
1969 LOperand* context() { return inputs_[0]; } 1970 LOperand* context() { return inputs_[0]; }
1970 1971
1971 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteral, "object-literal") 1972 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteralFast, "object-literal-fast")
1972 DECLARE_HYDROGEN_ACCESSOR(ObjectLiteral) 1973 DECLARE_HYDROGEN_ACCESSOR(ObjectLiteralFast)
1973 }; 1974 };
1974 1975
1975 1976
1977 class LObjectLiteralGeneric: public LTemplateInstruction<1, 1, 0> {
1978 public:
1979 explicit LObjectLiteralGeneric(LOperand* context) {
1980 inputs_[0] = context;
1981 }
1982
1983 LOperand* context() { return inputs_[0]; }
1984
1985 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteralGeneric, "object-literal-generic")
1986 DECLARE_HYDROGEN_ACCESSOR(ObjectLiteralGeneric)
1987 };
1988
1989
1976 class LRegExpLiteral: public LTemplateInstruction<1, 1, 0> { 1990 class LRegExpLiteral: public LTemplateInstruction<1, 1, 0> {
1977 public: 1991 public:
1978 explicit LRegExpLiteral(LOperand* context) { 1992 explicit LRegExpLiteral(LOperand* context) {
1979 inputs_[0] = context; 1993 inputs_[0] = context;
1980 } 1994 }
1981 1995
1982 LOperand* context() { return inputs_[0]; } 1996 LOperand* context() { return inputs_[0]; }
1983 1997
1984 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") 1998 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
1985 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) 1999 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
2343 2357
2344 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2358 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2345 }; 2359 };
2346 2360
2347 #undef DECLARE_HYDROGEN_ACCESSOR 2361 #undef DECLARE_HYDROGEN_ACCESSOR
2348 #undef DECLARE_CONCRETE_INSTRUCTION 2362 #undef DECLARE_CONCRETE_INSTRUCTION
2349 2363
2350 } } // namespace v8::internal 2364 } } // namespace v8::internal
2351 2365
2352 #endif // V8_IA32_LITHIUM_IA32_H_ 2366 #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