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

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

Issue 1814433002: Revert of [crankshaft] Fixing ES6 tail call elimination. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | src/crankshaft/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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } 217 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); }
218 LPointerMap* pointer_map() const { return pointer_map_.get(); } 218 LPointerMap* pointer_map() const { return pointer_map_.get(); }
219 bool HasPointerMap() const { return pointer_map_.is_set(); } 219 bool HasPointerMap() const { return pointer_map_.is_set(); }
220 220
221 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } 221 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
222 HValue* hydrogen_value() const { return hydrogen_value_; } 222 HValue* hydrogen_value() const { return hydrogen_value_; }
223 223
224 void MarkAsCall() { bit_field_ = IsCallBits::update(bit_field_, true); } 224 void MarkAsCall() { bit_field_ = IsCallBits::update(bit_field_, true); }
225 bool IsCall() const { return IsCallBits::decode(bit_field_); } 225 bool IsCall() const { return IsCallBits::decode(bit_field_); }
226 226
227 void MarkAsTailCall() {
228 bit_field_ = IsTailCallBits::update(bit_field_, true);
229 }
230 bool IsTailCall() const { return IsTailCallBits::decode(bit_field_); }
231
232 // Interface to the register allocator and iterators. 227 // Interface to the register allocator and iterators.
233 bool ClobbersTemps() const { return IsCall(); } 228 bool ClobbersTemps() const { return IsCall(); }
234 bool ClobbersRegisters() const { return IsCall(); } 229 bool ClobbersRegisters() const { return IsCall(); }
235 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const { 230 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const {
236 return IsCall(); 231 return IsCall();
237 } 232 }
238 233
239 // Interface to the register allocator and iterators. 234 // Interface to the register allocator and iterators.
240 bool IsMarkedAsCall() const { return IsCall(); } 235 bool IsMarkedAsCall() const { return IsCall(); }
241 236
(...skipping 14 matching lines...) Expand all
256 251
257 private: 252 private:
258 // Iterator support. 253 // Iterator support.
259 friend class InputIterator; 254 friend class InputIterator;
260 255
261 friend class TempIterator; 256 friend class TempIterator;
262 virtual int TempCount() = 0; 257 virtual int TempCount() = 0;
263 virtual LOperand* TempAt(int i) = 0; 258 virtual LOperand* TempAt(int i) = 0;
264 259
265 class IsCallBits: public BitField<bool, 0, 1> {}; 260 class IsCallBits: public BitField<bool, 0, 1> {};
266 class IsTailCallBits : public BitField<bool, IsCallBits::kNext, 1> {};
267 261
268 LEnvironment* environment_; 262 LEnvironment* environment_;
269 SetOncePointer<LPointerMap> pointer_map_; 263 SetOncePointer<LPointerMap> pointer_map_;
270 HValue* hydrogen_value_; 264 HValue* hydrogen_value_;
271 int bit_field_; 265 int bit_field_;
272 }; 266 };
273 267
274 268
275 // R = number of result operands (0 or 1). 269 // R = number of result operands (0 or 1).
276 template<int R> 270 template<int R>
(...skipping 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after
2664 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2658 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2665 }; 2659 };
2666 2660
2667 #undef DECLARE_HYDROGEN_ACCESSOR 2661 #undef DECLARE_HYDROGEN_ACCESSOR
2668 #undef DECLARE_CONCRETE_INSTRUCTION 2662 #undef DECLARE_CONCRETE_INSTRUCTION
2669 2663
2670 } // namespace internal 2664 } // namespace internal
2671 } // namespace v8 2665 } // namespace v8
2672 2666
2673 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 2667 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698