OLD | NEW |
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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 bit_field_ = IsSyntacticTailCallBits::update(bit_field_, true); | 229 bit_field_ = IsSyntacticTailCallBits::update(bit_field_, true); |
230 } | 230 } |
231 bool IsSyntacticTailCall() const { | 231 bool IsSyntacticTailCall() const { |
232 return IsSyntacticTailCallBits::decode(bit_field_); | 232 return IsSyntacticTailCallBits::decode(bit_field_); |
233 } | 233 } |
234 | 234 |
235 // Interface to the register allocator and iterators. | 235 // Interface to the register allocator and iterators. |
236 bool ClobbersTemps() const { return IsCall(); } | 236 bool ClobbersTemps() const { return IsCall(); } |
237 bool ClobbersRegisters() const { return IsCall(); } | 237 bool ClobbersRegisters() const { return IsCall(); } |
238 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const { | 238 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const { |
239 return IsCall(); | 239 return IsCall() || opcode() == LInstruction::kMaybeGrowElements; |
240 } | 240 } |
241 | 241 |
242 virtual bool HasResult() const = 0; | 242 virtual bool HasResult() const = 0; |
243 virtual LOperand* result() const = 0; | 243 virtual LOperand* result() const = 0; |
244 | 244 |
245 bool HasDoubleRegisterResult(); | 245 bool HasDoubleRegisterResult(); |
246 bool HasDoubleRegisterInput(); | 246 bool HasDoubleRegisterInput(); |
247 | 247 |
248 LOperand* FirstInput() { return InputAt(0); } | 248 LOperand* FirstInput() { return InputAt(0); } |
249 LOperand* Output() { return HasResult() ? result() : NULL; } | 249 LOperand* Output() { return HasResult() ? result() : NULL; } |
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2649 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2649 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2650 }; | 2650 }; |
2651 | 2651 |
2652 #undef DECLARE_HYDROGEN_ACCESSOR | 2652 #undef DECLARE_HYDROGEN_ACCESSOR |
2653 #undef DECLARE_CONCRETE_INSTRUCTION | 2653 #undef DECLARE_CONCRETE_INSTRUCTION |
2654 | 2654 |
2655 } // namespace internal | 2655 } // namespace internal |
2656 } // namespace v8 | 2656 } // namespace v8 |
2657 | 2657 |
2658 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2658 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |