OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390_LITHIUM_S390_H_ | 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } | 210 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } |
211 LPointerMap* pointer_map() const { return pointer_map_.get(); } | 211 LPointerMap* pointer_map() const { return pointer_map_.get(); } |
212 bool HasPointerMap() const { return pointer_map_.is_set(); } | 212 bool HasPointerMap() const { return pointer_map_.is_set(); } |
213 | 213 |
214 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } | 214 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } |
215 HValue* hydrogen_value() const { return hydrogen_value_; } | 215 HValue* hydrogen_value() const { return hydrogen_value_; } |
216 | 216 |
217 void MarkAsCall() { bit_field_ = IsCallBits::update(bit_field_, true); } | 217 void MarkAsCall() { bit_field_ = IsCallBits::update(bit_field_, true); } |
218 bool IsCall() const { return IsCallBits::decode(bit_field_); } | 218 bool IsCall() const { return IsCallBits::decode(bit_field_); } |
219 | 219 |
| 220 void MarkAsSyntacticTailCall() { |
| 221 bit_field_ = IsSyntacticTailCallBits::update(bit_field_, true); |
| 222 } |
| 223 bool IsSyntacticTailCall() const { |
| 224 return IsSyntacticTailCallBits::decode(bit_field_); |
| 225 } |
| 226 |
220 // Interface to the register allocator and iterators. | 227 // Interface to the register allocator and iterators. |
221 bool ClobbersTemps() const { return IsCall(); } | 228 bool ClobbersTemps() const { return IsCall(); } |
222 bool ClobbersRegisters() const { return IsCall(); } | 229 bool ClobbersRegisters() const { return IsCall(); } |
223 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const { | 230 virtual bool ClobbersDoubleRegisters(Isolate* isolate) const { |
224 return IsCall(); | 231 return IsCall(); |
225 } | 232 } |
226 | 233 |
227 // Interface to the register allocator and iterators. | 234 // Interface to the register allocator and iterators. |
228 bool IsMarkedAsCall() const { return IsCall(); } | 235 bool IsMarkedAsCall() const { return IsCall(); } |
229 | 236 |
(...skipping 14 matching lines...) Expand all Loading... |
244 | 251 |
245 private: | 252 private: |
246 // Iterator support. | 253 // Iterator support. |
247 friend class InputIterator; | 254 friend class InputIterator; |
248 | 255 |
249 friend class TempIterator; | 256 friend class TempIterator; |
250 virtual int TempCount() = 0; | 257 virtual int TempCount() = 0; |
251 virtual LOperand* TempAt(int i) = 0; | 258 virtual LOperand* TempAt(int i) = 0; |
252 | 259 |
253 class IsCallBits : public BitField<bool, 0, 1> {}; | 260 class IsCallBits : public BitField<bool, 0, 1> {}; |
| 261 class IsSyntacticTailCallBits : public BitField<bool, IsCallBits::kNext, 1> { |
| 262 }; |
254 | 263 |
255 LEnvironment* environment_; | 264 LEnvironment* environment_; |
256 SetOncePointer<LPointerMap> pointer_map_; | 265 SetOncePointer<LPointerMap> pointer_map_; |
257 HValue* hydrogen_value_; | 266 HValue* hydrogen_value_; |
258 int bit_field_; | 267 int bit_field_; |
259 }; | 268 }; |
260 | 269 |
261 // R = number of result operands (0 or 1). | 270 // R = number of result operands (0 or 1). |
262 template <int R> | 271 template <int R> |
263 class LTemplateResultInstruction : public LInstruction { | 272 class LTemplateResultInstruction : public LInstruction { |
(...skipping 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2404 | 2413 |
2405 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2414 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2406 }; | 2415 }; |
2407 | 2416 |
2408 #undef DECLARE_HYDROGEN_ACCESSOR | 2417 #undef DECLARE_HYDROGEN_ACCESSOR |
2409 #undef DECLARE_CONCRETE_INSTRUCTION | 2418 #undef DECLARE_CONCRETE_INSTRUCTION |
2410 } // namespace internal | 2419 } // namespace internal |
2411 } // namespace v8 | 2420 } // namespace v8 |
2412 | 2421 |
2413 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 2422 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
OLD | NEW |