| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 HValue* hydrogen_value() const { return hydrogen_value_; } | 263 HValue* hydrogen_value() const { return hydrogen_value_; } |
| 264 | 264 |
| 265 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } | 265 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } |
| 266 | 266 |
| 267 void MarkAsCall() { bit_field_ = IsCallBits::update(bit_field_, true); } | 267 void MarkAsCall() { bit_field_ = IsCallBits::update(bit_field_, true); } |
| 268 bool IsCall() const { return IsCallBits::decode(bit_field_); } | 268 bool IsCall() const { return IsCallBits::decode(bit_field_); } |
| 269 | 269 |
| 270 // Interface to the register allocator and iterators. | 270 // Interface to the register allocator and iterators. |
| 271 bool ClobbersTemps() const { return IsCall(); } | 271 bool ClobbersTemps() const { return IsCall(); } |
| 272 bool ClobbersRegisters() const { return IsCall(); } | 272 bool ClobbersRegisters() const { return IsCall(); } |
| 273 virtual bool ClobbersDoubleRegisters() const { return IsCall(); } | 273 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const V8_OVERRIDE { |
| 274 return IsCall(); |
| 275 } |
| 274 bool IsMarkedAsCall() const { return IsCall(); } | 276 bool IsMarkedAsCall() const { return IsCall(); } |
| 275 | 277 |
| 276 virtual bool HasResult() const = 0; | 278 virtual bool HasResult() const = 0; |
| 277 virtual LOperand* result() const = 0; | 279 virtual LOperand* result() const = 0; |
| 278 | 280 |
| 279 virtual int InputCount() = 0; | 281 virtual int InputCount() = 0; |
| 280 virtual LOperand* InputAt(int i) = 0; | 282 virtual LOperand* InputAt(int i) = 0; |
| 281 virtual int TempCount() = 0; | 283 virtual int TempCount() = 0; |
| 282 virtual LOperand* TempAt(int i) = 0; | 284 virtual LOperand* TempAt(int i) = 0; |
| 283 | 285 |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 public: | 882 public: |
| 881 explicit LCallRuntime(LOperand* context) { | 883 explicit LCallRuntime(LOperand* context) { |
| 882 inputs_[0] = context; | 884 inputs_[0] = context; |
| 883 } | 885 } |
| 884 | 886 |
| 885 LOperand* context() { return inputs_[0]; } | 887 LOperand* context() { return inputs_[0]; } |
| 886 | 888 |
| 887 DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime") | 889 DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime") |
| 888 DECLARE_HYDROGEN_ACCESSOR(CallRuntime) | 890 DECLARE_HYDROGEN_ACCESSOR(CallRuntime) |
| 889 | 891 |
| 890 virtual bool ClobbersDoubleRegisters() const V8_OVERRIDE { | 892 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const V8_OVERRIDE { |
| 891 return save_doubles() == kDontSaveFPRegs; | 893 return save_doubles() == kDontSaveFPRegs; |
| 892 } | 894 } |
| 893 | 895 |
| 894 const Runtime::Function* function() const { return hydrogen()->function(); } | 896 const Runtime::Function* function() const { return hydrogen()->function(); } |
| 895 int arity() const { return hydrogen()->argument_count(); } | 897 int arity() const { return hydrogen()->argument_count(); } |
| 896 SaveFPRegsMode save_doubles() const { return hydrogen()->save_doubles(); } | 898 SaveFPRegsMode save_doubles() const { return hydrogen()->save_doubles(); } |
| 897 }; | 899 }; |
| 898 | 900 |
| 899 | 901 |
| 900 class LCallStub V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 902 class LCallStub V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| (...skipping 2190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3091 | 3093 |
| 3092 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3094 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 3093 }; | 3095 }; |
| 3094 | 3096 |
| 3095 #undef DECLARE_HYDROGEN_ACCESSOR | 3097 #undef DECLARE_HYDROGEN_ACCESSOR |
| 3096 #undef DECLARE_CONCRETE_INSTRUCTION | 3098 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3097 | 3099 |
| 3098 } } // namespace v8::internal | 3100 } } // namespace v8::internal |
| 3099 | 3101 |
| 3100 #endif // V8_ARM64_LITHIUM_ARM64_H_ | 3102 #endif // V8_ARM64_LITHIUM_ARM64_H_ |
| OLD | NEW |