| OLD | NEW |
| 1 // Copyright 2011 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 ZoneList<LOperand*> values_; | 516 ZoneList<LOperand*> values_; |
| 517 ZoneList<Representation> representations_; | 517 ZoneList<Representation> representations_; |
| 518 | 518 |
| 519 // Allocation index indexed arrays of spill slot operands for registers | 519 // Allocation index indexed arrays of spill slot operands for registers |
| 520 // that are also in spill slots at an OSR entry. NULL for environments | 520 // that are also in spill slots at an OSR entry. NULL for environments |
| 521 // that do not correspond to an OSR entry. | 521 // that do not correspond to an OSR entry. |
| 522 LOperand** spilled_registers_; | 522 LOperand** spilled_registers_; |
| 523 LOperand** spilled_double_registers_; | 523 LOperand** spilled_double_registers_; |
| 524 | 524 |
| 525 LEnvironment* outer_; | 525 LEnvironment* outer_; |
| 526 | |
| 527 friend class LCodegen; | |
| 528 }; | 526 }; |
| 529 | 527 |
| 530 | 528 |
| 531 // Iterates over the non-null, non-constant operands in an environment. | 529 // Iterates over the non-null, non-constant operands in an environment. |
| 532 class ShallowIterator BASE_EMBEDDED { | 530 class ShallowIterator BASE_EMBEDDED { |
| 533 public: | 531 public: |
| 534 explicit ShallowIterator(LEnvironment* env) | 532 explicit ShallowIterator(LEnvironment* env) |
| 535 : env_(env), | 533 : env_(env), |
| 536 limit_(env != NULL ? env->values()->length() : 0), | 534 limit_(env != NULL ? env->values()->length() : 0), |
| 537 current_(0) { | 535 current_(0) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 ShallowIterator current_iterator_; | 599 ShallowIterator current_iterator_; |
| 602 }; | 600 }; |
| 603 | 601 |
| 604 | 602 |
| 605 int ElementsKindToShiftSize(ElementsKind elements_kind); | 603 int ElementsKindToShiftSize(ElementsKind elements_kind); |
| 606 | 604 |
| 607 | 605 |
| 608 } } // namespace v8::internal | 606 } } // namespace v8::internal |
| 609 | 607 |
| 610 #endif // V8_LITHIUM_H_ | 608 #endif // V8_LITHIUM_H_ |
| OLD | NEW |