Commit 157b9181 authored by Milad Farazmand's avatar Milad Farazmand Committed by Commit Bot

s390: [cleanup] Avoid {Object::operator->}

Port 878ccb33

Original Commit Message:

    This CL was generated by an automatic clang AST rewriter using this
    matcher expression:

      callExpr(
        callee(
          cxxMethodDecl(
            hasName("operator->"),
            ofClass(isSameOrDerivedFrom("v8::internal::Object"))
          )
        ),
        argumentCountIs(1)
      )

    The "->" at the expression location was then rewritten to ".".

R=clemensh@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=
LOG=N

Change-Id: Ibe92f0332da0e478f213880462b4d3460f8260c0
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1627569Reviewed-by: 's avatarJunliang Yan <jyan@ca.ibm.com>
Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#61793}
parent 32e48cf5
...@@ -150,7 +150,7 @@ void RelocInfo::set_target_object(Heap* heap, HeapObject target, ...@@ -150,7 +150,7 @@ void RelocInfo::set_target_object(Heap* heap, HeapObject target,
WriteBarrierMode write_barrier_mode, WriteBarrierMode write_barrier_mode,
ICacheFlushMode icache_flush_mode) { ICacheFlushMode icache_flush_mode) {
DCHECK(IsCodeTarget(rmode_) || rmode_ == FULL_EMBEDDED_OBJECT); DCHECK(IsCodeTarget(rmode_) || rmode_ == FULL_EMBEDDED_OBJECT);
Assembler::set_target_address_at(pc_, constant_pool_, target->ptr(), Assembler::set_target_address_at(pc_, constant_pool_, target.ptr(),
icache_flush_mode); icache_flush_mode);
if (write_barrier_mode == UPDATE_WRITE_BARRIER && !host().is_null()) { if (write_barrier_mode == UPDATE_WRITE_BARRIER && !host().is_null()) {
WriteBarrierForCode(host(), this, target); WriteBarrierForCode(host(), this, target);
...@@ -251,7 +251,7 @@ Address Assembler::target_address_at(Address pc, Address constant_pool) { ...@@ -251,7 +251,7 @@ Address Assembler::target_address_at(Address pc, Address constant_pool) {
void Assembler::deserialization_set_special_target_at( void Assembler::deserialization_set_special_target_at(
Address instruction_payload, Code code, Address target) { Address instruction_payload, Code code, Address target) {
set_target_address_at(instruction_payload, set_target_address_at(instruction_payload,
!code.is_null() ? code->constant_pool() : kNullAddress, !code.is_null() ? code.constant_pool() : kNullAddress,
target); target);
} }
......
...@@ -427,7 +427,7 @@ void S390Debugger::Debug() { ...@@ -427,7 +427,7 @@ void S390Debugger::Debug() {
PrintF(" (smi %d)", Smi::ToInt(obj)); PrintF(" (smi %d)", Smi::ToInt(obj));
} else if (IsValidHeapObject(current_heap, HeapObject::cast(obj))) { } else if (IsValidHeapObject(current_heap, HeapObject::cast(obj))) {
PrintF(" ("); PrintF(" (");
obj->ShortPrint(); obj.ShortPrint();
PrintF(")"); PrintF(")");
} }
PrintF("\n"); PrintF("\n");
......
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