OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 bit_field_ = IsSyntacticTailCallBits::update(bit_field_, true); | 237 bit_field_ = IsSyntacticTailCallBits::update(bit_field_, true); |
238 } | 238 } |
239 bool IsSyntacticTailCall() const { | 239 bool IsSyntacticTailCall() const { |
240 return IsSyntacticTailCallBits::decode(bit_field_); | 240 return IsSyntacticTailCallBits::decode(bit_field_); |
241 } | 241 } |
242 | 242 |
243 // Interface to the register allocator and iterators. | 243 // Interface to the register allocator and iterators. |
244 bool ClobbersTemps() const { return IsCall(); } | 244 bool ClobbersTemps() const { return IsCall(); } |
245 bool ClobbersRegisters() const { return IsCall(); } | 245 bool ClobbersRegisters() const { return IsCall(); } |
246 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const { | 246 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const { |
247 return IsCall(); | 247 return IsCall() || opcode() == LInstruction::kMaybeGrowElements; |
248 } | 248 } |
249 bool IsMarkedAsCall() const { return IsCall(); } | 249 bool IsMarkedAsCall() const { return IsCall(); } |
250 | 250 |
251 virtual bool HasResult() const = 0; | 251 virtual bool HasResult() const = 0; |
252 virtual LOperand* result() const = 0; | 252 virtual LOperand* result() const = 0; |
253 | 253 |
254 virtual int InputCount() = 0; | 254 virtual int InputCount() = 0; |
255 virtual LOperand* InputAt(int i) = 0; | 255 virtual LOperand* InputAt(int i) = 0; |
256 virtual int TempCount() = 0; | 256 virtual int TempCount() = 0; |
257 virtual LOperand* TempAt(int i) = 0; | 257 virtual LOperand* TempAt(int i) = 0; |
(...skipping 2732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2990 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2990 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2991 }; | 2991 }; |
2992 | 2992 |
2993 #undef DECLARE_HYDROGEN_ACCESSOR | 2993 #undef DECLARE_HYDROGEN_ACCESSOR |
2994 #undef DECLARE_CONCRETE_INSTRUCTION | 2994 #undef DECLARE_CONCRETE_INSTRUCTION |
2995 | 2995 |
2996 } // namespace internal | 2996 } // namespace internal |
2997 } // namespace v8 | 2997 } // namespace v8 |
2998 | 2998 |
2999 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 2999 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |