| OLD | NEW |
| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 HValue* hydrogen_value() const { return hydrogen_value_; } | 270 HValue* hydrogen_value() const { return hydrogen_value_; } |
| 271 | 271 |
| 272 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } | 272 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } |
| 273 | 273 |
| 274 void MarkAsCall() { bit_field_ = IsCallBits::update(bit_field_, true); } | 274 void MarkAsCall() { bit_field_ = IsCallBits::update(bit_field_, true); } |
| 275 bool IsCall() const { return IsCallBits::decode(bit_field_); } | 275 bool IsCall() const { return IsCallBits::decode(bit_field_); } |
| 276 | 276 |
| 277 // Interface to the register allocator and iterators. | 277 // Interface to the register allocator and iterators. |
| 278 bool ClobbersTemps() const { return IsCall(); } | 278 bool ClobbersTemps() const { return IsCall(); } |
| 279 bool ClobbersRegisters() const { return IsCall(); } | 279 bool ClobbersRegisters() const { return IsCall(); } |
| 280 bool ClobbersDoubleRegisters() const { return IsCall(); } | 280 virtual bool ClobbersDoubleRegisters() const { return IsCall(); } |
| 281 | 281 |
| 282 // Interface to the register allocator and iterators. | 282 // Interface to the register allocator and iterators. |
| 283 bool IsMarkedAsCall() const { return IsCall(); } | 283 bool IsMarkedAsCall() const { return IsCall(); } |
| 284 | 284 |
| 285 virtual bool HasResult() const = 0; | 285 virtual bool HasResult() const = 0; |
| 286 virtual LOperand* result() const = 0; | 286 virtual LOperand* result() const = 0; |
| 287 | 287 |
| 288 LOperand* FirstInput() { return InputAt(0); } | 288 LOperand* FirstInput() { return InputAt(0); } |
| 289 LOperand* Output() { return HasResult() ? result() : NULL; } | 289 LOperand* Output() { return HasResult() ? result() : NULL; } |
| 290 | 290 |
| (...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1978 | 1978 |
| 1979 int arity() const { return hydrogen()->argument_count() - 1; } | 1979 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1980 }; | 1980 }; |
| 1981 | 1981 |
| 1982 | 1982 |
| 1983 class LCallRuntime V8_FINAL : public LTemplateInstruction<1, 0, 0> { | 1983 class LCallRuntime V8_FINAL : public LTemplateInstruction<1, 0, 0> { |
| 1984 public: | 1984 public: |
| 1985 DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime") | 1985 DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime") |
| 1986 DECLARE_HYDROGEN_ACCESSOR(CallRuntime) | 1986 DECLARE_HYDROGEN_ACCESSOR(CallRuntime) |
| 1987 | 1987 |
| 1988 virtual bool ClobbersDoubleRegisters() const V8_OVERRIDE { |
| 1989 return save_doubles() == kDontSaveFPRegs; |
| 1990 } |
| 1991 |
| 1988 const Runtime::Function* function() const { return hydrogen()->function(); } | 1992 const Runtime::Function* function() const { return hydrogen()->function(); } |
| 1989 int arity() const { return hydrogen()->argument_count(); } | 1993 int arity() const { return hydrogen()->argument_count(); } |
| 1994 SaveFPRegsMode save_doubles() const { return hydrogen()->save_doubles(); } |
| 1990 }; | 1995 }; |
| 1991 | 1996 |
| 1992 | 1997 |
| 1993 class LInteger32ToDouble V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1998 class LInteger32ToDouble V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1994 public: | 1999 public: |
| 1995 explicit LInteger32ToDouble(LOperand* value) { | 2000 explicit LInteger32ToDouble(LOperand* value) { |
| 1996 inputs_[0] = value; | 2001 inputs_[0] = value; |
| 1997 } | 2002 } |
| 1998 | 2003 |
| 1999 LOperand* value() { return inputs_[0]; } | 2004 LOperand* value() { return inputs_[0]; } |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2792 | 2797 |
| 2793 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2798 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2794 }; | 2799 }; |
| 2795 | 2800 |
| 2796 #undef DECLARE_HYDROGEN_ACCESSOR | 2801 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2797 #undef DECLARE_CONCRETE_INSTRUCTION | 2802 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2798 | 2803 |
| 2799 } } // namespace v8::internal | 2804 } } // namespace v8::internal |
| 2800 | 2805 |
| 2801 #endif // V8_ARM_LITHIUM_ARM_H_ | 2806 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |