Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index a7c2c65c0856a72fd33f832528c42eca167bd5c9..c69e86e0a5367c4a1724b4ecc33fb66e9394d039 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -91,8 +91,8 @@ Handle<Code> CodeGenerator::GenerateCode() { |
for (CompilationInfo::InlinedFunctionHolder& inlined : |
info->inlined_functions()) { |
if (!inlined.shared_info.is_identical_to(info->shared_info())) { |
- inlined.RegisterInlinedFunctionId(deoptimization_literals_.size()); |
- DefineDeoptimizationLiteral(inlined.shared_info); |
+ int index = DefineDeoptimizationLiteral(inlined.shared_info); |
+ inlined.RegisterInlinedFunctionId(index); |
} |
} |
inlined_function_count_ = deoptimization_literals_.size(); |