Make newer GCCs happier: Fixed NULL vs. 0 confusion.

Review URL: http://codereview.chromium.org/7970008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9333 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 00eaa669
......@@ -173,7 +173,7 @@ void Deoptimizer::PatchStackCheckCodeAt(Code* unoptimized_code,
RelocInfo rinfo(pc_after - 2 * kInstrSize,
RelocInfo::CODE_TARGET,
NULL,
0,
unoptimized_code);
unoptimized_code->GetHeap()->incremental_marking()->RecordWriteIntoCode(
unoptimized_code, &rinfo, replacement_code);
......
......@@ -255,7 +255,7 @@ void Deoptimizer::PatchStackCheckCodeAt(Code* unoptimized_code,
RelocInfo rinfo(call_target_address,
RelocInfo::CODE_TARGET,
NULL,
0,
unoptimized_code);
unoptimized_code->GetHeap()->incremental_marking()->RecordWriteIntoCode(
unoptimized_code, &rinfo, replacement_code);
......
......@@ -89,7 +89,7 @@ void IncrementalMarking::RecordCodeTargetPatch(Address pc, HeapObject* value) {
if (IsMarking()) {
Code* host =
heap_->isolate()->pc_to_code_cache()->GcSafeFindCodeForPc(pc);
RelocInfo rinfo(pc, RelocInfo::CODE_TARGET, NULL, host);
RelocInfo rinfo(pc, RelocInfo::CODE_TARGET, 0, host);
RecordWriteIntoCode(host, &rinfo, value);
}
}
......
......@@ -2684,7 +2684,7 @@ static inline void UpdateSlot(ObjectVisitor* v,
Address addr) {
switch (slot_type) {
case SlotsBuffer::CODE_TARGET_SLOT: {
RelocInfo rinfo(addr, RelocInfo::CODE_TARGET, NULL, NULL);
RelocInfo rinfo(addr, RelocInfo::CODE_TARGET, 0, NULL);
rinfo.Visit(v);
break;
}
......@@ -2698,12 +2698,12 @@ static inline void UpdateSlot(ObjectVisitor* v,
break;
}
case SlotsBuffer::DEBUG_TARGET_SLOT: {
RelocInfo rinfo(addr, RelocInfo::DEBUG_BREAK_SLOT, NULL, NULL);
RelocInfo rinfo(addr, RelocInfo::DEBUG_BREAK_SLOT, 0, NULL);
if (rinfo.IsPatchedDebugBreakSlotSequence()) rinfo.Visit(v);
break;
}
case SlotsBuffer::JS_RETURN_SLOT: {
RelocInfo rinfo(addr, RelocInfo::JS_RETURN, NULL, NULL);
RelocInfo rinfo(addr, RelocInfo::JS_RETURN, 0, NULL);
if (rinfo.IsPatchedReturnSequence()) rinfo.Visit(v);
break;
}
......
......@@ -254,7 +254,7 @@ void Deoptimizer::PatchStackCheckCodeAt(Code* unoptimized_code,
RelocInfo rinfo(call_target_address,
RelocInfo::CODE_TARGET,
NULL,
0,
unoptimized_code);
unoptimized_code->GetHeap()->incremental_marking()->RecordWriteIntoCode(
unoptimized_code, &rinfo, replacement_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