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

Side by Side Diff: src/objects.cc

Issue 2399853002: [parser] Lazy compilation no longer needs context chain. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « src/ast/scopes.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <memory> 9 #include <memory>
10 #include <sstream> 10 #include <sstream>
(...skipping 13733 matching lines...) Expand 10 before | Expand all | Expand 10 after
13744 shared_info->set_length(lit->scope()->arity()); 13744 shared_info->set_length(lit->scope()->arity());
13745 shared_info->set_internal_formal_parameter_count(lit->parameter_count()); 13745 shared_info->set_internal_formal_parameter_count(lit->parameter_count());
13746 shared_info->set_function_token_position(lit->function_token_position()); 13746 shared_info->set_function_token_position(lit->function_token_position());
13747 shared_info->set_start_position(lit->start_position()); 13747 shared_info->set_start_position(lit->start_position());
13748 shared_info->set_end_position(lit->end_position()); 13748 shared_info->set_end_position(lit->end_position());
13749 shared_info->set_is_declaration(lit->is_declaration()); 13749 shared_info->set_is_declaration(lit->is_declaration());
13750 shared_info->set_is_named_expression(lit->is_named_expression()); 13750 shared_info->set_is_named_expression(lit->is_named_expression());
13751 shared_info->set_is_anonymous_expression(lit->is_anonymous_expression()); 13751 shared_info->set_is_anonymous_expression(lit->is_anonymous_expression());
13752 shared_info->set_inferred_name(*lit->inferred_name()); 13752 shared_info->set_inferred_name(*lit->inferred_name());
13753 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); 13753 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation());
13754 shared_info->set_allows_lazy_compilation_without_context( 13754 shared_info->set_allows_lazy_compilation_without_context(
jochen (gone - plz use gerrit) 2016/10/06 13:58:48 why not remove allows_lazy_compilation_without_con
Michael Starzinger 2016/10/06 14:03:27 I am working on a follow-up CL doing that as we sp
13755 lit->AllowsLazyCompilationWithoutContext()); 13755 lit->AllowsLazyCompilation());
13756 shared_info->set_language_mode(lit->language_mode()); 13756 shared_info->set_language_mode(lit->language_mode());
13757 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); 13757 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL);
13758 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); 13758 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters());
13759 shared_info->set_is_function(lit->is_function()); 13759 shared_info->set_is_function(lit->is_function());
13760 shared_info->set_never_compiled(true); 13760 shared_info->set_never_compiled(true);
13761 shared_info->set_kind(lit->kind()); 13761 shared_info->set_kind(lit->kind());
13762 if (!IsConstructable(lit->kind(), lit->language_mode())) { 13762 if (!IsConstructable(lit->kind(), lit->language_mode())) {
13763 shared_info->SetConstructStub( 13763 shared_info->SetConstructStub(
13764 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable()); 13764 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable());
13765 } 13765 }
(...skipping 6167 matching lines...) Expand 10 before | Expand all | Expand 10 after
19933 } 19933 }
19934 19934
19935 // Evaluation of module body. 19935 // Evaluation of module body.
19936 Handle<JSFunction> resume( 19936 Handle<JSFunction> resume(
19937 isolate->native_context()->generator_next_internal(), isolate); 19937 isolate->native_context()->generator_next_internal(), isolate);
19938 return Execution::Call(isolate, resume, generator, 0, nullptr); 19938 return Execution::Call(isolate, resume, generator, 0, nullptr);
19939 } 19939 }
19940 19940
19941 } // namespace internal 19941 } // namespace internal
19942 } // namespace v8 19942 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698