| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 44b50797927faee0b386cc204207216886186633..eb2e1839af4a93ee62a5c339b443307f352e3132 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -251,12 +251,6 @@ void CompilationJob::RegisterWeakObjectsInOptimizedCode(Handle<Code> code) {
|
|
|
| namespace {
|
|
|
| -bool IsEvalToplevel(Handle<SharedFunctionInfo> shared) {
|
| - return shared->is_toplevel() && shared->script()->IsScript() &&
|
| - Script::cast(shared->script())->compilation_type() ==
|
| - Script::COMPILATION_TYPE_EVAL;
|
| -}
|
| -
|
| bool Parse(ParseInfo* info) {
|
| // Create a canonical handle scope if compiling ignition bytecode. This is
|
| // required by the constant array builder to de-duplicate objects without
|
| @@ -705,11 +699,6 @@ MaybeHandle<Code> GetOptimizedCode(Handle<JSFunction> function,
|
| info->MarkAsOptimizeFromBytecode();
|
| }
|
|
|
| - if (IsEvalToplevel(shared)) {
|
| - parse_info->set_eval();
|
| - parse_info->set_allow_lazy_parsing(false);
|
| - }
|
| -
|
| // Verify that OSR compilations are delegated to the correct graph builder.
|
| // Depending on the underlying frame the semantics of the {BailoutId} differ
|
| // and the various graph builders hard-code a certain semantic:
|
| @@ -1234,10 +1223,6 @@ bool Compiler::CompileDebugCode(Handle<JSFunction> function) {
|
| Zone zone(isolate->allocator());
|
| ParseInfo parse_info(&zone, function);
|
| CompilationInfo info(&parse_info, Handle<JSFunction>::null());
|
| - if (IsEvalToplevel(handle(function->shared()))) {
|
| - parse_info.set_eval();
|
| - parse_info.set_allow_lazy_parsing(false);
|
| - }
|
| info.MarkAsDebug();
|
| if (GetUnoptimizedCode(&info).is_null()) {
|
| isolate->clear_pending_exception();
|
| @@ -1259,10 +1244,6 @@ bool Compiler::CompileDebugCode(Handle<SharedFunctionInfo> shared) {
|
| Zone zone(isolate->allocator());
|
| ParseInfo parse_info(&zone, shared);
|
| CompilationInfo info(&parse_info, Handle<JSFunction>::null());
|
| - if (IsEvalToplevel(shared)) {
|
| - parse_info.set_eval();
|
| - parse_info.set_allow_lazy_parsing(false);
|
| - }
|
| info.MarkAsDebug();
|
| if (GetUnoptimizedCode(&info).is_null()) {
|
| isolate->clear_pending_exception();
|
|
|