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