OLD | NEW |
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 <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 12806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12817 shared_info->set_start_position(lit->start_position()); | 12817 shared_info->set_start_position(lit->start_position()); |
12818 shared_info->set_end_position(lit->end_position()); | 12818 shared_info->set_end_position(lit->end_position()); |
12819 shared_info->set_is_declaration(lit->is_declaration()); | 12819 shared_info->set_is_declaration(lit->is_declaration()); |
12820 shared_info->set_is_named_expression(lit->is_named_expression()); | 12820 shared_info->set_is_named_expression(lit->is_named_expression()); |
12821 shared_info->set_is_anonymous_expression(lit->is_anonymous_expression()); | 12821 shared_info->set_is_anonymous_expression(lit->is_anonymous_expression()); |
12822 shared_info->set_inferred_name(*lit->inferred_name()); | 12822 shared_info->set_inferred_name(*lit->inferred_name()); |
12823 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); | 12823 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); |
12824 shared_info->set_allows_lazy_compilation_without_context( | 12824 shared_info->set_allows_lazy_compilation_without_context( |
12825 lit->AllowsLazyCompilationWithoutContext()); | 12825 lit->AllowsLazyCompilationWithoutContext()); |
12826 shared_info->set_language_mode(lit->language_mode()); | 12826 shared_info->set_language_mode(lit->language_mode()); |
| 12827 shared_info->set_within_module(lit->scope()->inside_module()); |
12827 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); | 12828 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); |
12828 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); | 12829 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); |
12829 shared_info->set_ast_node_count(lit->ast_node_count()); | 12830 shared_info->set_ast_node_count(lit->ast_node_count()); |
12830 shared_info->set_is_function(lit->is_function()); | 12831 shared_info->set_is_function(lit->is_function()); |
12831 if (lit->dont_optimize_reason() != kNoReason) { | 12832 if (lit->dont_optimize_reason() != kNoReason) { |
12832 shared_info->DisableOptimization(lit->dont_optimize_reason()); | 12833 shared_info->DisableOptimization(lit->dont_optimize_reason()); |
12833 } | 12834 } |
12834 shared_info->set_dont_crankshaft(lit->flags() & | 12835 shared_info->set_dont_crankshaft(lit->flags() & |
12835 AstProperties::kDontCrankshaft); | 12836 AstProperties::kDontCrankshaft); |
12836 shared_info->set_never_compiled(true); | 12837 shared_info->set_never_compiled(true); |
(...skipping 5553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18390 if (cell->value() != *new_value) { | 18391 if (cell->value() != *new_value) { |
18391 cell->set_value(*new_value); | 18392 cell->set_value(*new_value); |
18392 Isolate* isolate = cell->GetIsolate(); | 18393 Isolate* isolate = cell->GetIsolate(); |
18393 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 18394 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
18394 isolate, DependentCode::kPropertyCellChangedGroup); | 18395 isolate, DependentCode::kPropertyCellChangedGroup); |
18395 } | 18396 } |
18396 } | 18397 } |
18397 | 18398 |
18398 } // namespace internal | 18399 } // namespace internal |
18399 } // namespace v8 | 18400 } // namespace v8 |
OLD | NEW |