Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 076ae7200894551a776f59dfd7a41a23b308f9e7..ff35b8a318fadae93f84339206062442c611afbc 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -75,7 +75,6 @@ void LCodeGen::FinishCode(Handle<Code> code) { |
DCHECK(is_done()); |
code->set_stack_slots(GetStackSlotCount()); |
code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
- if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); |
PopulateDeoptimizationData(code); |
if (!info()->IsStub()) { |
Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); |