| 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 13205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13216 shared_info->set_is_declaration(lit->is_declaration()); | 13216 shared_info->set_is_declaration(lit->is_declaration()); |
| 13217 shared_info->set_is_named_expression(lit->is_named_expression()); | 13217 shared_info->set_is_named_expression(lit->is_named_expression()); |
| 13218 shared_info->set_is_anonymous_expression(lit->is_anonymous_expression()); | 13218 shared_info->set_is_anonymous_expression(lit->is_anonymous_expression()); |
| 13219 shared_info->set_inferred_name(*lit->inferred_name()); | 13219 shared_info->set_inferred_name(*lit->inferred_name()); |
| 13220 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); | 13220 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); |
| 13221 shared_info->set_allows_lazy_compilation_without_context( | 13221 shared_info->set_allows_lazy_compilation_without_context( |
| 13222 lit->AllowsLazyCompilationWithoutContext()); | 13222 lit->AllowsLazyCompilationWithoutContext()); |
| 13223 shared_info->set_language_mode(lit->language_mode()); | 13223 shared_info->set_language_mode(lit->language_mode()); |
| 13224 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); | 13224 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); |
| 13225 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); | 13225 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); |
| 13226 shared_info->set_ast_node_count(lit->ast_node_count()); | |
| 13227 shared_info->set_is_function(lit->is_function()); | 13226 shared_info->set_is_function(lit->is_function()); |
| 13228 if (lit->dont_optimize_reason() != kNoReason) { | |
| 13229 shared_info->DisableOptimization(lit->dont_optimize_reason()); | |
| 13230 } | |
| 13231 shared_info->set_dont_crankshaft(lit->flags() & | |
| 13232 AstProperties::kDontCrankshaft); | |
| 13233 shared_info->set_never_compiled(true); | 13227 shared_info->set_never_compiled(true); |
| 13234 shared_info->set_kind(lit->kind()); | 13228 shared_info->set_kind(lit->kind()); |
| 13235 if (!IsConstructable(lit->kind(), lit->language_mode())) { | 13229 if (!IsConstructable(lit->kind(), lit->language_mode())) { |
| 13236 shared_info->set_construct_stub( | 13230 shared_info->set_construct_stub( |
| 13237 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable()); | 13231 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable()); |
| 13238 } | 13232 } |
| 13239 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); | 13233 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); |
| 13240 shared_info->set_asm_function(lit->scope()->asm_function()); | 13234 shared_info->set_asm_function(lit->scope()->asm_function()); |
| 13241 SetExpectedNofPropertiesFromEstimate(shared_info, lit); | 13235 SetExpectedNofPropertiesFromEstimate(shared_info, lit); |
| 13242 } | 13236 } |
| (...skipping 5619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18862 if (cell->value() != *new_value) { | 18856 if (cell->value() != *new_value) { |
| 18863 cell->set_value(*new_value); | 18857 cell->set_value(*new_value); |
| 18864 Isolate* isolate = cell->GetIsolate(); | 18858 Isolate* isolate = cell->GetIsolate(); |
| 18865 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 18859 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 18866 isolate, DependentCode::kPropertyCellChangedGroup); | 18860 isolate, DependentCode::kPropertyCellChangedGroup); |
| 18867 } | 18861 } |
| 18868 } | 18862 } |
| 18869 | 18863 |
| 18870 } // namespace internal | 18864 } // namespace internal |
| 18871 } // namespace v8 | 18865 } // namespace v8 |
| OLD | NEW |