Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 54c96fda5295b112ae9bb01111ab9018c816c410..06da7ba0e7d521844523e756106ee2e090756ac6 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -4863,6 +4863,7 @@ void BackEdgeTable::PatchAt(Code* unoptimized_code, |
} |
Assembler::set_target_address_at(call_target_address, |
+ unoptimized_code, |
replacement_code->entry()); |
unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( |
unoptimized_code, call_target_address, replacement_code); |
@@ -4880,20 +4881,22 @@ BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( |
if (*jns_instr_address == kJnsInstruction) { |
ASSERT_EQ(kJnsOffset, *(call_target_address - 2)); |
ASSERT_EQ(isolate->builtins()->InterruptCheck()->entry(), |
- Assembler::target_address_at(call_target_address)); |
+ Assembler::target_address_at(call_target_address, |
+ unoptimized_code)); |
return INTERRUPT; |
} |
ASSERT_EQ(kNopByteOne, *jns_instr_address); |
ASSERT_EQ(kNopByteTwo, *(call_target_address - 2)); |
- if (Assembler::target_address_at(call_target_address) == |
+ if (Assembler::target_address_at(call_target_address, unoptimized_code) == |
isolate->builtins()->OnStackReplacement()->entry()) { |
return ON_STACK_REPLACEMENT; |
} |
ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
- Assembler::target_address_at(call_target_address)); |
+ Assembler::target_address_at(call_target_address, |
+ unoptimized_code)); |
return OSR_AFTER_STACK_CHECK; |
} |