OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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; |
526 }; | 528 }; |
527 | 529 |
528 | 530 |
529 // Iterates over the non-null, non-constant operands in an environment. | 531 // Iterates over the non-null, non-constant operands in an environment. |
530 class ShallowIterator BASE_EMBEDDED { | 532 class ShallowIterator BASE_EMBEDDED { |
531 public: | 533 public: |
532 explicit ShallowIterator(LEnvironment* env) | 534 explicit ShallowIterator(LEnvironment* env) |
533 : env_(env), | 535 : env_(env), |
534 limit_(env != NULL ? env->values()->length() : 0), | 536 limit_(env != NULL ? env->values()->length() : 0), |
535 current_(0) { | 537 current_(0) { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 ShallowIterator current_iterator_; | 601 ShallowIterator current_iterator_; |
600 }; | 602 }; |
601 | 603 |
602 | 604 |
603 int ElementsKindToShiftSize(ElementsKind elements_kind); | 605 int ElementsKindToShiftSize(ElementsKind elements_kind); |
604 | 606 |
605 | 607 |
606 } } // namespace v8::internal | 608 } } // namespace v8::internal |
607 | 609 |
608 #endif // V8_LITHIUM_H_ | 610 #endif // V8_LITHIUM_H_ |
OLD | NEW |