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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 | 736 |
737 private: | 737 private: |
738 // We need to prevent the creation of instances of class Instruction. | 738 // We need to prevent the creation of instances of class Instruction. |
739 DISALLOW_IMPLICIT_CONSTRUCTORS(Instruction); | 739 DISALLOW_IMPLICIT_CONSTRUCTORS(Instruction); |
740 }; | 740 }; |
741 | 741 |
742 | 742 |
743 // ----------------------------------------------------------------------------- | 743 // ----------------------------------------------------------------------------- |
744 // MIPS assembly various constants. | 744 // MIPS assembly various constants. |
745 | 745 |
746 | |
747 static const int kArgsSlotsSize = 4 * Instruction::kInstrSize; | |
748 static const int kArgsSlotsNum = 4; | |
749 // C/C++ argument slots size. | 746 // C/C++ argument slots size. |
750 static const int kCArgsSlotsSize = 4 * Instruction::kInstrSize; | 747 static const int kCArgSlotCount = 4; |
| 748 static const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize; |
751 // JS argument slots size. | 749 // JS argument slots size. |
752 static const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; | 750 static const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; |
753 // Assembly builtins argument slots size. | 751 // Assembly builtins argument slots size. |
754 static const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; | 752 static const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; |
755 | 753 |
756 static const int kBranchReturnOffset = 2 * Instruction::kInstrSize; | 754 static const int kBranchReturnOffset = 2 * Instruction::kInstrSize; |
757 | 755 |
758 static const int kDoubleAlignmentBits = 3; | 756 static const int kDoubleAlignmentBits = 3; |
759 static const int kDoubleAlignment = (1 << kDoubleAlignmentBits); | 757 static const int kDoubleAlignment = (1 << kDoubleAlignmentBits); |
760 static const int kDoubleAlignmentMask = kDoubleAlignment - 1; | 758 static const int kDoubleAlignmentMask = kDoubleAlignment - 1; |
761 | 759 |
762 | 760 |
763 } } // namespace v8::internal | 761 } } // namespace v8::internal |
764 | 762 |
765 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 763 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |