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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 bool HasPointerMap() const { return pointer_map_.is_set(); } | 245 bool HasPointerMap() const { return pointer_map_.is_set(); } |
246 | 246 |
247 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } | 247 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } |
248 HValue* hydrogen_value() const { return hydrogen_value_; } | 248 HValue* hydrogen_value() const { return hydrogen_value_; } |
249 | 249 |
250 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } | 250 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } |
251 | 251 |
252 void MarkAsCall() { is_call_ = true; } | 252 void MarkAsCall() { is_call_ = true; } |
253 | 253 |
254 // Interface to the register allocator and iterators. | 254 // Interface to the register allocator and iterators. |
| 255 bool ClobbersTemps() const { return is_call_; } |
| 256 bool ClobbersRegisters() const { return is_call_; } |
| 257 bool ClobbersDoubleRegisters() const { return is_call_; } |
| 258 |
| 259 // Interface to the register allocator and iterators. |
255 bool IsMarkedAsCall() const { return is_call_; } | 260 bool IsMarkedAsCall() const { return is_call_; } |
256 | 261 |
257 virtual bool HasResult() const = 0; | 262 virtual bool HasResult() const = 0; |
258 virtual LOperand* result() = 0; | 263 virtual LOperand* result() = 0; |
259 | 264 |
260 LOperand* FirstInput() { return InputAt(0); } | 265 LOperand* FirstInput() { return InputAt(0); } |
261 LOperand* Output() { return HasResult() ? result() : NULL; } | 266 LOperand* Output() { return HasResult() ? result() : NULL; } |
262 | 267 |
263 #ifdef DEBUG | 268 #ifdef DEBUG |
264 void VerifyCall(); | 269 void VerifyCall(); |
(...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2297 | 2302 |
2298 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); | 2303 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); |
2299 void MarkSpilledDoubleRegister(int allocation_index, | 2304 void MarkSpilledDoubleRegister(int allocation_index, |
2300 LOperand* spill_operand); | 2305 LOperand* spill_operand); |
2301 | 2306 |
2302 private: | 2307 private: |
2303 // Arrays of spill slot operands for registers with an assigned spill | 2308 // Arrays of spill slot operands for registers with an assigned spill |
2304 // slot, i.e., that must also be restored to the spill slot on OSR entry. | 2309 // slot, i.e., that must also be restored to the spill slot on OSR entry. |
2305 // NULL if the register has no assigned spill slot. Indexed by allocation | 2310 // NULL if the register has no assigned spill slot. Indexed by allocation |
2306 // index. | 2311 // index. |
2307 LOperand* register_spills_[Register::kNumAllocatableRegisters]; | 2312 LOperand* register_spills_[Register::kMaxNumAllocatableRegisters]; |
2308 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters]; | 2313 LOperand* double_register_spills_[ |
| 2314 DoubleRegister::kMaxNumAllocatableRegisters]; |
2309 }; | 2315 }; |
2310 | 2316 |
2311 | 2317 |
2312 class LStackCheck: public LTemplateInstruction<0, 0, 0> { | 2318 class LStackCheck: public LTemplateInstruction<0, 0, 0> { |
2313 public: | 2319 public: |
2314 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") | 2320 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") |
2315 DECLARE_HYDROGEN_ACCESSOR(StackCheck) | 2321 DECLARE_HYDROGEN_ACCESSOR(StackCheck) |
2316 | 2322 |
2317 Label* done_label() { return &done_label_; } | 2323 Label* done_label() { return &done_label_; } |
2318 | 2324 |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2552 | 2558 |
2553 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2559 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2554 }; | 2560 }; |
2555 | 2561 |
2556 #undef DECLARE_HYDROGEN_ACCESSOR | 2562 #undef DECLARE_HYDROGEN_ACCESSOR |
2557 #undef DECLARE_CONCRETE_INSTRUCTION | 2563 #undef DECLARE_CONCRETE_INSTRUCTION |
2558 | 2564 |
2559 } } // namespace v8::internal | 2565 } } // namespace v8::internal |
2560 | 2566 |
2561 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2567 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |