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

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

Issue 12491023: Remove (H|L)JSArrayLength instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cleanup Created 7 years, 8 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 V(InstructionGap) \ 113 V(InstructionGap) \
114 V(Integer32ToDouble) \ 114 V(Integer32ToDouble) \
115 V(Uint32ToDouble) \ 115 V(Uint32ToDouble) \
116 V(InvokeFunction) \ 116 V(InvokeFunction) \
117 V(IsConstructCallAndBranch) \ 117 V(IsConstructCallAndBranch) \
118 V(IsNilAndBranch) \ 118 V(IsNilAndBranch) \
119 V(IsObjectAndBranch) \ 119 V(IsObjectAndBranch) \
120 V(IsStringAndBranch) \ 120 V(IsStringAndBranch) \
121 V(IsSmiAndBranch) \ 121 V(IsSmiAndBranch) \
122 V(IsUndetectableAndBranch) \ 122 V(IsUndetectableAndBranch) \
123 V(JSArrayLength) \
124 V(Label) \ 123 V(Label) \
125 V(LazyBailout) \ 124 V(LazyBailout) \
126 V(LoadContextSlot) \ 125 V(LoadContextSlot) \
127 V(LoadElements) \ 126 V(LoadElements) \
128 V(LoadExternalArrayPointer) \ 127 V(LoadExternalArrayPointer) \
129 V(LoadFunctionPrototype) \ 128 V(LoadFunctionPrototype) \
130 V(LoadGlobalCell) \ 129 V(LoadGlobalCell) \
131 V(LoadGlobalGeneric) \ 130 V(LoadGlobalGeneric) \
132 V(LoadKeyed) \ 131 V(LoadKeyed) \
133 V(LoadKeyedGeneric) \ 132 V(LoadKeyedGeneric) \
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 Handle<Map> map() const { return hydrogen()->map(); } 1157 Handle<Map> map() const { return hydrogen()->map(); }
1159 int true_block_id() const { 1158 int true_block_id() const {
1160 return hydrogen()->FirstSuccessor()->block_id(); 1159 return hydrogen()->FirstSuccessor()->block_id();
1161 } 1160 }
1162 int false_block_id() const { 1161 int false_block_id() const {
1163 return hydrogen()->SecondSuccessor()->block_id(); 1162 return hydrogen()->SecondSuccessor()->block_id();
1164 } 1163 }
1165 }; 1164 };
1166 1165
1167 1166
1168 class LJSArrayLength: public LTemplateInstruction<1, 1, 0> {
1169 public:
1170 explicit LJSArrayLength(LOperand* value) {
1171 inputs_[0] = value;
1172 }
1173
1174 LOperand* value() { return inputs_[0]; }
1175
1176 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
1177 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
1178 };
1179
1180
1181 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> { 1167 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> {
1182 public: 1168 public:
1183 explicit LFixedArrayBaseLength(LOperand* value) { 1169 explicit LFixedArrayBaseLength(LOperand* value) {
1184 inputs_[0] = value; 1170 inputs_[0] = value;
1185 } 1171 }
1186 1172
1187 LOperand* value() { return inputs_[0]; } 1173 LOperand* value() { return inputs_[0]; }
1188 1174
1189 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, 1175 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
1190 "fixed-array-base-length") 1176 "fixed-array-base-length")
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after
2749 2735
2750 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2736 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2751 }; 2737 };
2752 2738
2753 #undef DECLARE_HYDROGEN_ACCESSOR 2739 #undef DECLARE_HYDROGEN_ACCESSOR
2754 #undef DECLARE_CONCRETE_INSTRUCTION 2740 #undef DECLARE_CONCRETE_INSTRUCTION
2755 2741
2756 } } // namespace v8::internal 2742 } } // namespace v8::internal
2757 2743
2758 #endif // V8_ARM_LITHIUM_ARM_H_ 2744 #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