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 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2328 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); | 2328 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); |
2329 void MarkSpilledDoubleRegister(int allocation_index, | 2329 void MarkSpilledDoubleRegister(int allocation_index, |
2330 LOperand* spill_operand); | 2330 LOperand* spill_operand); |
2331 | 2331 |
2332 private: | 2332 private: |
2333 // Arrays of spill slot operands for registers with an assigned spill | 2333 // 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. | 2334 // 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 | 2335 // NULL if the register has no assigned spill slot. Indexed by allocation |
2336 // index. | 2336 // index. |
2337 LOperand* register_spills_[Register::kNumAllocatableRegisters]; | 2337 LOperand* register_spills_[Register::kNumAllocatableRegisters]; |
2338 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters]; | 2338 LOperand* double_register_spills_[DoubleRegister::kNumRegisters]; |
Rodolph Perfetta
2012/12/04 14:08:40
Why not NumAllocatableRegisters()?
hans
2012/12/04 14:30:54
Because the array size has to be a constant.
This
| |
2339 }; | 2339 }; |
2340 | 2340 |
2341 | 2341 |
2342 class LStackCheck: public LTemplateInstruction<0, 0, 0> { | 2342 class LStackCheck: public LTemplateInstruction<0, 0, 0> { |
2343 public: | 2343 public: |
2344 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") | 2344 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") |
2345 DECLARE_HYDROGEN_ACCESSOR(StackCheck) | 2345 DECLARE_HYDROGEN_ACCESSOR(StackCheck) |
2346 | 2346 |
2347 Label* done_label() { return &done_label_; } | 2347 Label* done_label() { return &done_label_; } |
2348 | 2348 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2588 | 2588 |
2589 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2589 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2590 }; | 2590 }; |
2591 | 2591 |
2592 #undef DECLARE_HYDROGEN_ACCESSOR | 2592 #undef DECLARE_HYDROGEN_ACCESSOR |
2593 #undef DECLARE_CONCRETE_INSTRUCTION | 2593 #undef DECLARE_CONCRETE_INSTRUCTION |
2594 | 2594 |
2595 } } // namespace v8::internal | 2595 } } // namespace v8::internal |
2596 | 2596 |
2597 #endif // V8_ARM_LITHIUM_ARM_H_ | 2597 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |