Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index d99f8d181b2e53d3407d0eb75ec005777718e749..9c04c60217ebe05e6c8a72033d60ec16a0db9a67 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1686,11 +1686,10 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForNative( |
Handle<JSFunction> fun = Handle<JSFunction>::cast(Utils::OpenHandle( |
*fun_template->GetFunction(v8_isolate->GetCurrentContext()) |
.ToLocalChecked())); |
- const int literals = fun->NumberOfLiterals(); |
Handle<Code> code = Handle<Code>(fun->shared()->code()); |
Handle<Code> construct_stub = Handle<Code>(fun->shared()->construct_stub()); |
Handle<SharedFunctionInfo> shared = isolate->factory()->NewSharedFunctionInfo( |
- name, literals, FunctionKind::kNormalFunction, code, |
+ name, fun->shared()->num_literals(), FunctionKind::kNormalFunction, code, |
Handle<ScopeInfo>(fun->shared()->scope_info())); |
shared->set_construct_stub(*construct_stub); |
shared->set_feedback_vector(fun->shared()->feedback_vector()); |