Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 71946afe068c625cd3b3343f2457fa8b7fef6330..2490edb8f5b723822fc9bd26d42a90d5c29e4d56 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -103,7 +103,7 @@ void LCodeGen::FinishCode(Handle<Code> code) { |
ASSERT(is_done()); |
code->set_stack_slots(GetStackSlotCount()); |
code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
- RegisterDependentCodeForEmbeddedMaps(code); |
+ if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); |
PopulateDeoptimizationData(code); |
if (!info()->IsStub()) { |
Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); |