Commit b16630cf authored by neis's avatar neis Committed by Commit bot

[assembler] Remove unnecessary cast.

BUG=

Review-Url: https://codereview.chromium.org/2751993002
Cr-Commit-Position: refs/heads/master@{#43845}
parent 5cc61896
...@@ -219,9 +219,9 @@ void RelocInfo::set_debug_call_address(Address target) { ...@@ -219,9 +219,9 @@ void RelocInfo::set_debug_call_address(Address target) {
Memory::Address_at(pc_ + Assembler::kPatchDebugBreakSlotAddressOffset) = Memory::Address_at(pc_ + Assembler::kPatchDebugBreakSlotAddressOffset) =
target; target;
if (host() != NULL) { if (host() != NULL) {
Object* target_code = Code::GetCodeFromTargetAddress(target); Code* target_code = Code::GetCodeFromTargetAddress(target);
host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
host(), this, HeapObject::cast(target_code)); target_code);
} }
} }
......
...@@ -813,9 +813,9 @@ void RelocInfo::set_debug_call_address(Address target) { ...@@ -813,9 +813,9 @@ void RelocInfo::set_debug_call_address(Address target) {
STATIC_ASSERT(Assembler::kPatchDebugBreakSlotAddressOffset == 0); STATIC_ASSERT(Assembler::kPatchDebugBreakSlotAddressOffset == 0);
Assembler::set_target_address_at(isolate_, pc_, host_, target); Assembler::set_target_address_at(isolate_, pc_, host_, target);
if (host() != NULL) { if (host() != NULL) {
Object* target_code = Code::GetCodeFromTargetAddress(target); Code* target_code = Code::GetCodeFromTargetAddress(target);
host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
host(), this, HeapObject::cast(target_code)); target_code);
} }
} }
......
...@@ -226,9 +226,9 @@ void RelocInfo::set_debug_call_address(Address target) { ...@@ -226,9 +226,9 @@ void RelocInfo::set_debug_call_address(Address target) {
Address location = pc_ + Assembler::kPatchDebugBreakSlotAddressOffset; Address location = pc_ + Assembler::kPatchDebugBreakSlotAddressOffset;
Assembler::set_target_address_at(isolate_, location, host_, target); Assembler::set_target_address_at(isolate_, location, host_, target);
if (host() != NULL) { if (host() != NULL) {
Object* target_code = Code::GetCodeFromTargetAddress(target); Code* target_code = Code::GetCodeFromTargetAddress(target);
host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
host(), this, HeapObject::cast(target_code)); target_code);
} }
} }
......
...@@ -335,9 +335,9 @@ void RelocInfo::set_debug_call_address(Address target) { ...@@ -335,9 +335,9 @@ void RelocInfo::set_debug_call_address(Address target) {
// sequence. // sequence.
Assembler::set_target_address_at(isolate_, pc_, host_, target); Assembler::set_target_address_at(isolate_, pc_, host_, target);
if (host() != NULL) { if (host() != NULL) {
Object* target_code = Code::GetCodeFromTargetAddress(target); Code* target_code = Code::GetCodeFromTargetAddress(target);
host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
host(), this, HeapObject::cast(target_code)); target_code);
} }
} }
......
...@@ -319,9 +319,9 @@ void RelocInfo::set_debug_call_address(Address target) { ...@@ -319,9 +319,9 @@ void RelocInfo::set_debug_call_address(Address target) {
// sequence. // sequence.
Assembler::set_target_address_at(isolate_, pc_, host_, target); Assembler::set_target_address_at(isolate_, pc_, host_, target);
if (host() != NULL) { if (host() != NULL) {
Object* target_code = Code::GetCodeFromTargetAddress(target); Code* target_code = Code::GetCodeFromTargetAddress(target);
host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
host(), this, HeapObject::cast(target_code)); target_code);
} }
} }
......
...@@ -297,9 +297,9 @@ void RelocInfo::set_debug_call_address(Address target) { ...@@ -297,9 +297,9 @@ void RelocInfo::set_debug_call_address(Address target) {
DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence());
Assembler::set_target_address_at(isolate_, pc_, host_, target); Assembler::set_target_address_at(isolate_, pc_, host_, target);
if (host() != NULL) { if (host() != NULL) {
Object* target_code = Code::GetCodeFromTargetAddress(target); Code* target_code = Code::GetCodeFromTargetAddress(target);
host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
host(), this, HeapObject::cast(target_code)); target_code);
} }
} }
......
...@@ -274,9 +274,9 @@ void RelocInfo::set_debug_call_address(Address target) { ...@@ -274,9 +274,9 @@ void RelocInfo::set_debug_call_address(Address target) {
DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence());
Assembler::set_target_address_at(isolate_, pc_, host_, target); Assembler::set_target_address_at(isolate_, pc_, host_, target);
if (host() != NULL) { if (host() != NULL) {
Object* target_code = Code::GetCodeFromTargetAddress(target); Code* target_code = Code::GetCodeFromTargetAddress(target);
host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
host(), this, HeapObject::cast(target_code)); target_code);
} }
} }
......
...@@ -514,9 +514,9 @@ void RelocInfo::set_debug_call_address(Address target) { ...@@ -514,9 +514,9 @@ void RelocInfo::set_debug_call_address(Address target) {
pc_ + Assembler::kPatchDebugBreakSlotAddressOffset, pc_ + Assembler::kPatchDebugBreakSlotAddressOffset,
sizeof(Address)); sizeof(Address));
if (host() != NULL) { if (host() != NULL) {
Object* target_code = Code::GetCodeFromTargetAddress(target); Code* target_code = Code::GetCodeFromTargetAddress(target);
host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
host(), this, HeapObject::cast(target_code)); target_code);
} }
} }
......
...@@ -232,9 +232,9 @@ void RelocInfo::set_debug_call_address(Address target) { ...@@ -232,9 +232,9 @@ void RelocInfo::set_debug_call_address(Address target) {
Address location = pc_ + Assembler::kPatchDebugBreakSlotAddressOffset; Address location = pc_ + Assembler::kPatchDebugBreakSlotAddressOffset;
Assembler::set_target_address_at(isolate_, location, host_, target); Assembler::set_target_address_at(isolate_, location, host_, target);
if (host() != NULL) { if (host() != NULL) {
Object* target_code = Code::GetCodeFromTargetAddress(target); Code* target_code = Code::GetCodeFromTargetAddress(target);
host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
host(), this, HeapObject::cast(target_code)); target_code);
} }
} }
......
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