Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: src/interpreter/interpreter.cc

Issue 1372293005: [Interpreter] Support top-level code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698