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

Side by Side Diff: src/objects.cc

Issue 2400973002: [compiler] Allow debug compilation for top-level eval. (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
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(
13755 lit->AllowsLazyCompilation());
13756 shared_info->set_language_mode(lit->language_mode()); 13754 shared_info->set_language_mode(lit->language_mode());
13757 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); 13755 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL);
13758 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); 13756 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters());
13759 shared_info->set_is_function(lit->is_function()); 13757 shared_info->set_is_function(lit->is_function());
13760 shared_info->set_never_compiled(true); 13758 shared_info->set_never_compiled(true);
13761 shared_info->set_kind(lit->kind()); 13759 shared_info->set_kind(lit->kind());
13762 if (!IsConstructable(lit->kind(), lit->language_mode())) { 13760 if (!IsConstructable(lit->kind(), lit->language_mode())) {
13763 shared_info->SetConstructStub( 13761 shared_info->SetConstructStub(
13764 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable()); 13762 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable());
13765 } 13763 }
(...skipping 6167 matching lines...) Expand 10 before | Expand all | Expand 10 after
19933 } 19931 }
19934 19932
19935 // Evaluation of module body. 19933 // Evaluation of module body.
19936 Handle<JSFunction> resume( 19934 Handle<JSFunction> resume(
19937 isolate->native_context()->generator_next_internal(), isolate); 19935 isolate->native_context()->generator_next_internal(), isolate);
19938 return Execution::Call(isolate, resume, generator, 0, nullptr); 19936 return Execution::Call(isolate, resume, generator, 0, nullptr);
19939 } 19937 }
19940 19938
19941 } // namespace internal 19939 } // namespace internal
19942 } // namespace v8 19940 } // namespace v8
OLDNEW
« src/debug/debug.cc ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698