Commit ca677531 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[assembler] Remove {RelocInfo::set_constant_pool} setter.

R=jgruber@chromium.org

Change-Id: I9925ded8cee5c620f543171b2f93abb1f954e72e
Reviewed-on: https://chromium-review.googlesource.com/1078438Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53435}
parent faa18098
......@@ -414,8 +414,13 @@ class RelocInfo {
RelocInfo() = default;
RelocInfo(Address pc, Mode rmode, intptr_t data, Code* host)
: pc_(pc), rmode_(rmode), data_(data), host_(host) {}
RelocInfo(Address pc, Mode rmode, intptr_t data, Code* host,
Address constant_pool = kNullAddress)
: pc_(pc),
rmode_(rmode),
data_(data),
host_(host),
constant_pool_(constant_pool) {}
static inline bool IsRealRelocMode(Mode mode) {
return mode >= FIRST_REAL_RELOC_MODE && mode <= LAST_REAL_RELOC_MODE;
......@@ -480,9 +485,6 @@ class RelocInfo {
intptr_t data() const { return data_; }
Code* host() const { return host_; }
Address constant_pool() const { return constant_pool_; }
void set_constant_pool(Address constant_pool) {
constant_pool_ = constant_pool;
}
// Apply a relocation by delta bytes. When the code object is moved, PC
// relative addresses have to be updated as well as absolute addresses
......
......@@ -275,9 +275,9 @@ static int DecodeIt(Isolate* isolate, std::ostream* os,
for (size_t i = 0; i < pcs.size(); i++) {
// Put together the reloc info
const CodeReference& host = converter.code();
RelocInfo relocinfo(pcs[i], rmodes[i], datas[i], nullptr);
relocinfo.set_constant_pool(host.is_null() ? kNullAddress
: host.constant_pool());
Address constant_pool =
host.is_null() ? kNullAddress : host.constant_pool();
RelocInfo relocinfo(pcs[i], rmodes[i], datas[i], nullptr, constant_pool);
bool first_reloc_info = (i == 0);
PrintRelocInfo(&out, isolate, ref_encoder, os, &relocinfo,
......
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