Index: src/assembler.h |
diff --git a/src/assembler.h b/src/assembler.h |
index 25060018221140df2a8a453fb26fbb7115013f87..c953629846b25ce5393a4d2d5aec87a7fb15bea6 100644 |
--- a/src/assembler.h |
+++ b/src/assembler.h |
@@ -1037,6 +1037,21 @@ class NullCallWrapper : public CallWrapper { |
virtual void AfterCall() const { } |
}; |
+ |
+// The multiplier and shift for signed division via multiplication, see Warren's |
+// "Hacker's Delight", chapter 10. |
+class MultiplierAndShift { |
+ public: |
+ explicit MultiplierAndShift(int32_t d); |
+ int32_t multiplier() const { return multiplier_; } |
+ int32_t shift() const { return shift_; } |
+ |
+ private: |
+ int32_t multiplier_; |
+ int32_t shift_; |
+}; |
+ |
+ |
} } // namespace v8::internal |
#endif // V8_ASSEMBLER_H_ |