Commit 9e1f89c0 authored by Shu-yu Guo's avatar Shu-yu Guo Committed by V8 LUCI CQ

Remove unused RelocInfoWriter::WriteData

Change-Id: I7996f49f5358d8be684a39b64020bc6bef82b7bb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3739228
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81560}
parent 725c163d
...@@ -123,14 +123,6 @@ void RelocInfoWriter::WriteIntData(int number) { ...@@ -123,14 +123,6 @@ void RelocInfoWriter::WriteIntData(int number) {
} }
} }
void RelocInfoWriter::WriteData(intptr_t data_delta) {
for (int i = 0; i < kIntptrSize; i++) {
*--pos_ = static_cast<byte>(data_delta);
// Signed right shift is arithmetic shift. Tested in test-utils.cc.
data_delta = data_delta >> kBitsPerByte;
}
}
void RelocInfoWriter::Write(const RelocInfo* rinfo) { void RelocInfoWriter::Write(const RelocInfo* rinfo) {
RelocInfo::Mode rmode = rinfo->rmode(); RelocInfo::Mode rmode = rinfo->rmode();
#ifdef DEBUG #ifdef DEBUG
......
...@@ -414,7 +414,6 @@ class RelocInfoWriter { ...@@ -414,7 +414,6 @@ class RelocInfoWriter {
inline void WriteMode(RelocInfo::Mode rmode); inline void WriteMode(RelocInfo::Mode rmode);
inline void WriteModeAndPC(uint32_t pc_delta, RelocInfo::Mode rmode); inline void WriteModeAndPC(uint32_t pc_delta, RelocInfo::Mode rmode);
inline void WriteIntData(int data_delta); inline void WriteIntData(int data_delta);
inline void WriteData(intptr_t data_delta);
byte* pos_; byte* pos_;
byte* last_pc_; byte* last_pc_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment