OLD | NEW |
1 // Copyright 2011 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 |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 virtual void DropAndPlug(int count, Register reg) const = 0; | 611 virtual void DropAndPlug(int count, Register reg) const = 0; |
612 | 612 |
613 // Set up branch labels for a test expression. The three Label** parameters | 613 // Set up branch labels for a test expression. The three Label** parameters |
614 // are output parameters. | 614 // are output parameters. |
615 virtual void PrepareTest(Label* materialize_true, | 615 virtual void PrepareTest(Label* materialize_true, |
616 Label* materialize_false, | 616 Label* materialize_false, |
617 Label** if_true, | 617 Label** if_true, |
618 Label** if_false, | 618 Label** if_false, |
619 Label** fall_through) const = 0; | 619 Label** fall_through) const = 0; |
620 | 620 |
621 // Returns true if we are evaluating only for side effects (ie if the result | 621 // Returns true if we are evaluating only for side effects (i.e. if the |
622 // will be discarded). | 622 // result will be discarded). |
623 virtual bool IsEffect() const { return false; } | 623 virtual bool IsEffect() const { return false; } |
624 | 624 |
625 // Returns true if we are evaluating for the value (in accu/on stack). | 625 // Returns true if we are evaluating for the value (in accu/on stack). |
626 virtual bool IsAccumulatorValue() const { return false; } | 626 virtual bool IsAccumulatorValue() const { return false; } |
627 virtual bool IsStackValue() const { return false; } | 627 virtual bool IsStackValue() const { return false; } |
628 | 628 |
629 // Returns true if we are branching on the value rather than materializing | 629 // Returns true if we are branching on the value rather than materializing |
630 // it. Only used for asserts. | 630 // it. Only used for asserts. |
631 virtual bool IsTest() const { return false; } | 631 virtual bool IsTest() const { return false; } |
632 | 632 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 | 761 |
762 friend class NestedStatement; | 762 friend class NestedStatement; |
763 | 763 |
764 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 764 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
765 }; | 765 }; |
766 | 766 |
767 | 767 |
768 } } // namespace v8::internal | 768 } } // namespace v8::internal |
769 | 769 |
770 #endif // V8_FULL_CODEGEN_H_ | 770 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |