Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 5ff3fa07641abe92c0e912de3ed7bf04e86cfeef..32ab0928d6e14e277b16f581c49d4de1e60961a3 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -84,7 +84,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); |
info()->CommitDependencies(code); |
} |