Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(730)

Side by Side Diff: src/mips/constants-mips.h

Issue 7834017: MIPS: Minor cleanup change to arguments slots constants. (Closed)
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/frames-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/frames-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698