| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 bool HasPointerMap() const { return pointer_map_.is_set(); } | 248 bool HasPointerMap() const { return pointer_map_.is_set(); } |
| 249 | 249 |
| 250 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } | 250 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } |
| 251 HValue* hydrogen_value() const { return hydrogen_value_; } | 251 HValue* hydrogen_value() const { return hydrogen_value_; } |
| 252 | 252 |
| 253 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } | 253 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } |
| 254 | 254 |
| 255 void MarkAsCall() { is_call_ = true; } | 255 void MarkAsCall() { is_call_ = true; } |
| 256 | 256 |
| 257 // Interface to the register allocator and iterators. | 257 // Interface to the register allocator and iterators. |
| 258 bool ClobbersTemps() const { return is_call_; } | |
| 259 bool ClobbersRegisters() const { return is_call_; } | |
| 260 bool ClobbersDoubleRegisters() const { return is_call_; } | |
| 261 | |
| 262 // Interface to the register allocator and iterators. | |
| 263 bool IsMarkedAsCall() const { return is_call_; } | 258 bool IsMarkedAsCall() const { return is_call_; } |
| 264 | 259 |
| 265 virtual bool HasResult() const = 0; | 260 virtual bool HasResult() const = 0; |
| 266 virtual LOperand* result() = 0; | 261 virtual LOperand* result() = 0; |
| 267 | 262 |
| 268 LOperand* FirstInput() { return InputAt(0); } | 263 LOperand* FirstInput() { return InputAt(0); } |
| 269 LOperand* Output() { return HasResult() ? result() : NULL; } | 264 LOperand* Output() { return HasResult() ? result() : NULL; } |
| 270 | 265 |
| 271 #ifdef DEBUG | 266 #ifdef DEBUG |
| 272 void VerifyCall(); | 267 void VerifyCall(); |
| (...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2332 | 2327 |
| 2333 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); | 2328 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); |
| 2334 void MarkSpilledDoubleRegister(int allocation_index, | 2329 void MarkSpilledDoubleRegister(int allocation_index, |
| 2335 LOperand* spill_operand); | 2330 LOperand* spill_operand); |
| 2336 | 2331 |
| 2337 private: | 2332 private: |
| 2338 // Arrays of spill slot operands for registers with an assigned spill | 2333 // Arrays of spill slot operands for registers with an assigned spill |
| 2339 // slot, i.e., that must also be restored to the spill slot on OSR entry. | 2334 // slot, i.e., that must also be restored to the spill slot on OSR entry. |
| 2340 // NULL if the register has no assigned spill slot. Indexed by allocation | 2335 // NULL if the register has no assigned spill slot. Indexed by allocation |
| 2341 // index. | 2336 // index. |
| 2342 LOperand* register_spills_[Register::kMaxNumAllocatableRegisters]; | 2337 LOperand* register_spills_[Register::kNumAllocatableRegisters]; |
| 2343 LOperand* double_register_spills_[ | 2338 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters]; |
| 2344 DoubleRegister::kMaxNumAllocatableRegisters]; | |
| 2345 }; | 2339 }; |
| 2346 | 2340 |
| 2347 | 2341 |
| 2348 class LStackCheck: public LTemplateInstruction<0, 0, 0> { | 2342 class LStackCheck: public LTemplateInstruction<0, 0, 0> { |
| 2349 public: | 2343 public: |
| 2350 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") | 2344 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") |
| 2351 DECLARE_HYDROGEN_ACCESSOR(StackCheck) | 2345 DECLARE_HYDROGEN_ACCESSOR(StackCheck) |
| 2352 | 2346 |
| 2353 Label* done_label() { return &done_label_; } | 2347 Label* done_label() { return &done_label_; } |
| 2354 | 2348 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2594 | 2588 |
| 2595 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2589 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2596 }; | 2590 }; |
| 2597 | 2591 |
| 2598 #undef DECLARE_HYDROGEN_ACCESSOR | 2592 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2599 #undef DECLARE_CONCRETE_INSTRUCTION | 2593 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2600 | 2594 |
| 2601 } } // namespace v8::internal | 2595 } } // namespace v8::internal |
| 2602 | 2596 |
| 2603 #endif // V8_ARM_LITHIUM_ARM_H_ | 2597 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |