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

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

Issue 18508002: Remove HFixedArrayBaseLength instruction and replace with regular HLoadNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 V(Context) \ 87 V(Context) \
88 V(DebugBreak) \ 88 V(DebugBreak) \
89 V(DeclareGlobals) \ 89 V(DeclareGlobals) \
90 V(DeleteProperty) \ 90 V(DeleteProperty) \
91 V(Deoptimize) \ 91 V(Deoptimize) \
92 V(DivI) \ 92 V(DivI) \
93 V(DoubleToI) \ 93 V(DoubleToI) \
94 V(DoubleToSmi) \ 94 V(DoubleToSmi) \
95 V(DummyUse) \ 95 V(DummyUse) \
96 V(ElementsKind) \ 96 V(ElementsKind) \
97 V(FixedArrayBaseLength) \
98 V(FunctionLiteral) \ 97 V(FunctionLiteral) \
99 V(GetCachedArrayIndex) \ 98 V(GetCachedArrayIndex) \
100 V(GlobalObject) \ 99 V(GlobalObject) \
101 V(GlobalReceiver) \ 100 V(GlobalReceiver) \
102 V(Goto) \ 101 V(Goto) \
103 V(HasCachedArrayIndexAndBranch) \ 102 V(HasCachedArrayIndexAndBranch) \
104 V(HasInstanceTypeAndBranch) \ 103 V(HasInstanceTypeAndBranch) \
105 V(In) \ 104 V(In) \
106 V(InstanceOf) \ 105 V(InstanceOf) \
107 V(InstanceOfKnownGlobal) \ 106 V(InstanceOfKnownGlobal) \
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 1243
1245 LOperand* value() { return inputs_[0]; } 1244 LOperand* value() { return inputs_[0]; }
1246 1245
1247 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") 1246 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
1248 DECLARE_HYDROGEN_ACCESSOR(CompareMap) 1247 DECLARE_HYDROGEN_ACCESSOR(CompareMap)
1249 1248
1250 Handle<Map> map() const { return hydrogen()->map(); } 1249 Handle<Map> map() const { return hydrogen()->map(); }
1251 }; 1250 };
1252 1251
1253 1252
1254 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> {
1255 public:
1256 explicit LFixedArrayBaseLength(LOperand* value) {
1257 inputs_[0] = value;
1258 }
1259
1260 LOperand* value() { return inputs_[0]; }
1261
1262 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
1263 "fixed-array-base-length")
1264 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength)
1265 };
1266
1267
1268 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> { 1253 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
1269 public: 1254 public:
1270 explicit LMapEnumLength(LOperand* value) { 1255 explicit LMapEnumLength(LOperand* value) {
1271 inputs_[0] = value; 1256 inputs_[0] = value;
1272 } 1257 }
1273 1258
1274 LOperand* value() { return inputs_[0]; } 1259 LOperand* value() { return inputs_[0]; }
1275 1260
1276 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") 1261 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1277 }; 1262 };
(...skipping 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after
2987 2972
2988 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2973 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2989 }; 2974 };
2990 2975
2991 #undef DECLARE_HYDROGEN_ACCESSOR 2976 #undef DECLARE_HYDROGEN_ACCESSOR
2992 #undef DECLARE_CONCRETE_INSTRUCTION 2977 #undef DECLARE_CONCRETE_INSTRUCTION
2993 2978
2994 } } // namespace v8::internal 2979 } } // namespace v8::internal
2995 2980
2996 #endif // V8_IA32_LITHIUM_IA32_H_ 2981 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698