| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } | 244 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } |
| 245 LPointerMap* pointer_map() const { return pointer_map_.get(); } | 245 LPointerMap* pointer_map() const { return pointer_map_.get(); } |
| 246 bool HasPointerMap() const { return pointer_map_.is_set(); } | 246 bool HasPointerMap() const { return pointer_map_.is_set(); } |
| 247 | 247 |
| 248 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } | 248 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } |
| 249 HValue* hydrogen_value() const { return hydrogen_value_; } | 249 HValue* hydrogen_value() const { return hydrogen_value_; } |
| 250 | 250 |
| 251 void MarkAsCall() { is_call_ = true; } | 251 void MarkAsCall() { is_call_ = true; } |
| 252 | 252 |
| 253 // Interface to the register allocator and iterators. |
| 254 bool ClobbersTemps() const { return is_call_; } |
| 255 bool ClobbersRegisters() const { return is_call_; } |
| 256 bool ClobbersDoubleRegisters() const { return is_call_; } |
| 257 |
| 253 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } | 258 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } |
| 254 | 259 |
| 255 // Interface to the register allocator and iterators. | 260 // Interface to the register allocator and iterators. |
| 256 bool IsMarkedAsCall() const { return is_call_; } | 261 bool IsMarkedAsCall() const { return is_call_; } |
| 257 | 262 |
| 258 virtual bool HasResult() const = 0; | 263 virtual bool HasResult() const = 0; |
| 259 virtual LOperand* result() = 0; | 264 virtual LOperand* result() = 0; |
| 260 | 265 |
| 261 LOperand* FirstInput() { return InputAt(0); } | 266 LOperand* FirstInput() { return InputAt(0); } |
| 262 LOperand* Output() { return HasResult() ? result() : NULL; } | 267 LOperand* Output() { return HasResult() ? result() : NULL; } |
| (...skipping 1975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2238 | 2243 |
| 2239 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); | 2244 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); |
| 2240 void MarkSpilledDoubleRegister(int allocation_index, | 2245 void MarkSpilledDoubleRegister(int allocation_index, |
| 2241 LOperand* spill_operand); | 2246 LOperand* spill_operand); |
| 2242 | 2247 |
| 2243 private: | 2248 private: |
| 2244 // Arrays of spill slot operands for registers with an assigned spill | 2249 // Arrays of spill slot operands for registers with an assigned spill |
| 2245 // slot, i.e., that must also be restored to the spill slot on OSR entry. | 2250 // slot, i.e., that must also be restored to the spill slot on OSR entry. |
| 2246 // NULL if the register has no assigned spill slot. Indexed by allocation | 2251 // NULL if the register has no assigned spill slot. Indexed by allocation |
| 2247 // index. | 2252 // index. |
| 2248 LOperand* register_spills_[Register::kNumAllocatableRegisters]; | 2253 LOperand* register_spills_[Register::kMaxNumAllocatableRegisters]; |
| 2249 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters]; | 2254 LOperand* double_register_spills_[ |
| 2255 DoubleRegister::kMaxNumAllocatableRegisters]; |
| 2250 }; | 2256 }; |
| 2251 | 2257 |
| 2252 | 2258 |
| 2253 class LStackCheck: public LTemplateInstruction<0, 0, 0> { | 2259 class LStackCheck: public LTemplateInstruction<0, 0, 0> { |
| 2254 public: | 2260 public: |
| 2255 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") | 2261 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") |
| 2256 DECLARE_HYDROGEN_ACCESSOR(StackCheck) | 2262 DECLARE_HYDROGEN_ACCESSOR(StackCheck) |
| 2257 | 2263 |
| 2258 Label* done_label() { return &done_label_; } | 2264 Label* done_label() { return &done_label_; } |
| 2259 | 2265 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2485 | 2491 |
| 2486 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2492 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2487 }; | 2493 }; |
| 2488 | 2494 |
| 2489 #undef DECLARE_HYDROGEN_ACCESSOR | 2495 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2490 #undef DECLARE_CONCRETE_INSTRUCTION | 2496 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2491 | 2497 |
| 2492 } } // namespace v8::int | 2498 } } // namespace v8::int |
| 2493 | 2499 |
| 2494 #endif // V8_X64_LITHIUM_X64_H_ | 2500 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |