OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 12613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12624 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); | 12624 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); |
12625 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); | 12625 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); |
12626 shared_info->set_ast_node_count(lit->ast_node_count()); | 12626 shared_info->set_ast_node_count(lit->ast_node_count()); |
12627 shared_info->set_is_function(lit->is_function()); | 12627 shared_info->set_is_function(lit->is_function()); |
12628 if (lit->dont_optimize_reason() != kNoReason) { | 12628 if (lit->dont_optimize_reason() != kNoReason) { |
12629 shared_info->DisableOptimization(lit->dont_optimize_reason()); | 12629 shared_info->DisableOptimization(lit->dont_optimize_reason()); |
12630 } | 12630 } |
12631 shared_info->set_dont_crankshaft(lit->flags() & | 12631 shared_info->set_dont_crankshaft(lit->flags() & |
12632 AstProperties::kDontCrankshaft); | 12632 AstProperties::kDontCrankshaft); |
12633 shared_info->set_kind(lit->kind()); | 12633 shared_info->set_kind(lit->kind()); |
| 12634 if (!IsConstructable(lit->kind(), lit->language_mode())) { |
| 12635 shared_info->set_construct_stub( |
| 12636 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable()); |
| 12637 } |
12634 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); | 12638 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); |
12635 shared_info->set_asm_function(lit->scope()->asm_function()); | 12639 shared_info->set_asm_function(lit->scope()->asm_function()); |
12636 } | 12640 } |
12637 | 12641 |
12638 | 12642 |
12639 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { | 12643 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { |
12640 DCHECK(!id.IsNone()); | 12644 DCHECK(!id.IsNone()); |
12641 Code* unoptimized = code(); | 12645 Code* unoptimized = code(); |
12642 DeoptimizationOutputData* data = | 12646 DeoptimizationOutputData* data = |
12643 DeoptimizationOutputData::cast(unoptimized->deoptimization_data()); | 12647 DeoptimizationOutputData::cast(unoptimized->deoptimization_data()); |
(...skipping 5768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18412 if (cell->value() != *new_value) { | 18416 if (cell->value() != *new_value) { |
18413 cell->set_value(*new_value); | 18417 cell->set_value(*new_value); |
18414 Isolate* isolate = cell->GetIsolate(); | 18418 Isolate* isolate = cell->GetIsolate(); |
18415 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 18419 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
18416 isolate, DependentCode::kPropertyCellChangedGroup); | 18420 isolate, DependentCode::kPropertyCellChangedGroup); |
18417 } | 18421 } |
18418 } | 18422 } |
18419 | 18423 |
18420 } // namespace internal | 18424 } // namespace internal |
18421 } // namespace v8 | 18425 } // namespace v8 |
OLD | NEW |