| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 | 1103 |
| 1104 class NullCallWrapper : public CallWrapper { | 1104 class NullCallWrapper : public CallWrapper { |
| 1105 public: | 1105 public: |
| 1106 NullCallWrapper() { } | 1106 NullCallWrapper() { } |
| 1107 virtual ~NullCallWrapper() { } | 1107 virtual ~NullCallWrapper() { } |
| 1108 virtual void BeforeCall(int call_size) const { } | 1108 virtual void BeforeCall(int call_size) const { } |
| 1109 virtual void AfterCall() const { } | 1109 virtual void AfterCall() const { } |
| 1110 }; | 1110 }; |
| 1111 | 1111 |
| 1112 | 1112 |
| 1113 // The multiplier and shift for signed division via multiplication, see Warren's | |
| 1114 // "Hacker's Delight", chapter 10. | |
| 1115 class MultiplierAndShift { | |
| 1116 public: | |
| 1117 explicit MultiplierAndShift(int32_t d); | |
| 1118 int32_t multiplier() const { return multiplier_; } | |
| 1119 int32_t shift() const { return shift_; } | |
| 1120 | |
| 1121 private: | |
| 1122 int32_t multiplier_; | |
| 1123 int32_t shift_; | |
| 1124 }; | |
| 1125 | |
| 1126 | |
| 1127 } } // namespace v8::internal | 1113 } } // namespace v8::internal |
| 1128 | 1114 |
| 1129 #endif // V8_ASSEMBLER_H_ | 1115 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |