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

Side by Side Diff: src/mips/lithium-mips.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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 V(Context) \ 92 V(Context) \
93 V(DebugBreak) \ 93 V(DebugBreak) \
94 V(DeclareGlobals) \ 94 V(DeclareGlobals) \
95 V(DeleteProperty) \ 95 V(DeleteProperty) \
96 V(Deoptimize) \ 96 V(Deoptimize) \
97 V(DivI) \ 97 V(DivI) \
98 V(DoubleToI) \ 98 V(DoubleToI) \
99 V(DoubleToSmi) \ 99 V(DoubleToSmi) \
100 V(DummyUse) \ 100 V(DummyUse) \
101 V(ElementsKind) \ 101 V(ElementsKind) \
102 V(FixedArrayBaseLength) \
103 V(FunctionLiteral) \ 102 V(FunctionLiteral) \
104 V(GetCachedArrayIndex) \ 103 V(GetCachedArrayIndex) \
105 V(GlobalObject) \ 104 V(GlobalObject) \
106 V(GlobalReceiver) \ 105 V(GlobalReceiver) \
107 V(Goto) \ 106 V(Goto) \
108 V(HasCachedArrayIndexAndBranch) \ 107 V(HasCachedArrayIndexAndBranch) \
109 V(HasInstanceTypeAndBranch) \ 108 V(HasInstanceTypeAndBranch) \
110 V(In) \ 109 V(In) \
111 V(InstanceOf) \ 110 V(InstanceOf) \
112 V(InstanceOfKnownGlobal) \ 111 V(InstanceOfKnownGlobal) \
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 LOperand* value() { return inputs_[0]; } 1252 LOperand* value() { return inputs_[0]; }
1254 LOperand* temp() { return temps_[0]; } 1253 LOperand* temp() { return temps_[0]; }
1255 1254
1256 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") 1255 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
1257 DECLARE_HYDROGEN_ACCESSOR(CompareMap) 1256 DECLARE_HYDROGEN_ACCESSOR(CompareMap)
1258 1257
1259 Handle<Map> map() const { return hydrogen()->map(); } 1258 Handle<Map> map() const { return hydrogen()->map(); }
1260 }; 1259 };
1261 1260
1262 1261
1263 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> {
1264 public:
1265 explicit LFixedArrayBaseLength(LOperand* value) {
1266 inputs_[0] = value;
1267 }
1268
1269 LOperand* value() { return inputs_[0]; }
1270
1271 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
1272 "fixed-array-base-length")
1273 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength)
1274 };
1275
1276
1277 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> { 1262 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
1278 public: 1263 public:
1279 explicit LMapEnumLength(LOperand* value) { 1264 explicit LMapEnumLength(LOperand* value) {
1280 inputs_[0] = value; 1265 inputs_[0] = value;
1281 } 1266 }
1282 1267
1283 LOperand* value() { return inputs_[0]; } 1268 LOperand* value() { return inputs_[0]; }
1284 1269
1285 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") 1270 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1286 }; 1271 };
(...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after
2824 2809
2825 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2810 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2826 }; 2811 };
2827 2812
2828 #undef DECLARE_HYDROGEN_ACCESSOR 2813 #undef DECLARE_HYDROGEN_ACCESSOR
2829 #undef DECLARE_CONCRETE_INSTRUCTION 2814 #undef DECLARE_CONCRETE_INSTRUCTION
2830 2815
2831 } } // namespace v8::internal 2816 } } // namespace v8::internal
2832 2817
2833 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2818 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698