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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_IA32_H_ |
6 #define V8_IA32_LITHIUM_IA32_H_ | 6 #define V8_IA32_LITHIUM_IA32_H_ |
7 | 7 |
8 #include "hydrogen.h" | 8 #include "hydrogen.h" |
9 #include "lithium-allocator.h" | 9 #include "lithium-allocator.h" |
10 #include "lithium.h" | 10 #include "lithium.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 HValue* hydrogen_value() const { return hydrogen_value_; } | 231 HValue* hydrogen_value() const { return hydrogen_value_; } |
232 | 232 |
233 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } | 233 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } |
234 | 234 |
235 void MarkAsCall() { bit_field_ = IsCallBits::update(bit_field_, true); } | 235 void MarkAsCall() { bit_field_ = IsCallBits::update(bit_field_, true); } |
236 bool IsCall() const { return IsCallBits::decode(bit_field_); } | 236 bool IsCall() const { return IsCallBits::decode(bit_field_); } |
237 | 237 |
238 // Interface to the register allocator and iterators. | 238 // Interface to the register allocator and iterators. |
239 bool ClobbersTemps() const { return IsCall(); } | 239 bool ClobbersTemps() const { return IsCall(); } |
240 bool ClobbersRegisters() const { return IsCall(); } | 240 bool ClobbersRegisters() const { return IsCall(); } |
241 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const V8_OVERRIDE { | 241 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const { |
242 return IsCall() || | 242 return IsCall() || |
243 // We only have rudimentary X87Stack tracking, thus in general | 243 // We only have rudimentary X87Stack tracking, thus in general |
244 // cannot handle phi-nodes. | 244 // cannot handle phi-nodes. |
245 (!CpuFeatures::IsSafeForSnapshot(isolate, SSE2) && IsControl()); | 245 (!CpuFeatures::IsSafeForSnapshot(isolate, SSE2) && IsControl()); |
246 } | 246 } |
247 | 247 |
248 virtual bool HasResult() const = 0; | 248 virtual bool HasResult() const = 0; |
249 virtual LOperand* result() const = 0; | 249 virtual LOperand* result() const = 0; |
250 | 250 |
251 bool HasDoubleRegisterResult(); | 251 bool HasDoubleRegisterResult(); |
(...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2887 | 2887 |
2888 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2888 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2889 }; | 2889 }; |
2890 | 2890 |
2891 #undef DECLARE_HYDROGEN_ACCESSOR | 2891 #undef DECLARE_HYDROGEN_ACCESSOR |
2892 #undef DECLARE_CONCRETE_INSTRUCTION | 2892 #undef DECLARE_CONCRETE_INSTRUCTION |
2893 | 2893 |
2894 } } // namespace v8::internal | 2894 } } // namespace v8::internal |
2895 | 2895 |
2896 #endif // V8_IA32_LITHIUM_IA32_H_ | 2896 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |