Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index f36ba9efeb45b3ab8038b23f10600ceabe813876..731e3522c037f91020faad112559c95db68f7b9a 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -59,8 +59,6 @@ void Interpreter::Initialize() { |
bool Interpreter::MakeBytecode(CompilationInfo* info) { |
- Handle<SharedFunctionInfo> shared_info = info->shared_info(); |
- |
BytecodeGenerator generator(info->isolate(), info->zone()); |
info->EnsureFeedbackVector(); |
Handle<BytecodeArray> bytecodes = generator.MakeBytecode(info); |
@@ -68,12 +66,7 @@ bool Interpreter::MakeBytecode(CompilationInfo* info) { |
bytecodes->Print(); |
} |
- DCHECK(shared_info->function_data()->IsUndefined()); |
- if (!shared_info->function_data()->IsUndefined()) { |
- return false; |
- } |
- |
- shared_info->set_function_data(*bytecodes); |
+ info->SetBytecodeArray(bytecodes); |
info->SetCode(info->isolate()->builtins()->InterpreterEntryTrampoline()); |
return true; |
} |