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 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2045 public: | 2045 public: |
2046 explicit LCallRuntime(LOperand* context) { | 2046 explicit LCallRuntime(LOperand* context) { |
2047 inputs_[0] = context; | 2047 inputs_[0] = context; |
2048 } | 2048 } |
2049 | 2049 |
2050 LOperand* context() { return inputs_[0]; } | 2050 LOperand* context() { return inputs_[0]; } |
2051 | 2051 |
2052 DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime") | 2052 DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime") |
2053 DECLARE_HYDROGEN_ACCESSOR(CallRuntime) | 2053 DECLARE_HYDROGEN_ACCESSOR(CallRuntime) |
2054 | 2054 |
| 2055 virtual bool ClobbersDoubleRegisters() const V8_OVERRIDE { |
| 2056 return save_doubles() == kDontSaveFPRegs; |
| 2057 } |
| 2058 |
2055 const Runtime::Function* function() const { return hydrogen()->function(); } | 2059 const Runtime::Function* function() const { return hydrogen()->function(); } |
2056 int arity() const { return hydrogen()->argument_count(); } | 2060 int arity() const { return hydrogen()->argument_count(); } |
| 2061 SaveFPRegsMode save_doubles() const { return hydrogen()->save_doubles(); } |
2057 }; | 2062 }; |
2058 | 2063 |
2059 | 2064 |
2060 class LInteger32ToDouble V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2065 class LInteger32ToDouble V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
2061 public: | 2066 public: |
2062 explicit LInteger32ToDouble(LOperand* value) { | 2067 explicit LInteger32ToDouble(LOperand* value) { |
2063 inputs_[0] = value; | 2068 inputs_[0] = value; |
2064 } | 2069 } |
2065 | 2070 |
2066 LOperand* value() { return inputs_[0]; } | 2071 LOperand* value() { return inputs_[0]; } |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2918 | 2923 |
2919 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2924 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2920 }; | 2925 }; |
2921 | 2926 |
2922 #undef DECLARE_HYDROGEN_ACCESSOR | 2927 #undef DECLARE_HYDROGEN_ACCESSOR |
2923 #undef DECLARE_CONCRETE_INSTRUCTION | 2928 #undef DECLARE_CONCRETE_INSTRUCTION |
2924 | 2929 |
2925 } } // namespace v8::internal | 2930 } } // namespace v8::internal |
2926 | 2931 |
2927 #endif // V8_IA32_LITHIUM_IA32_H_ | 2932 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |