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 <iomanip> | 5 #include <iomanip> |
6 #include <sstream> | 6 #include <sstream> |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 10574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10585 shared_info->set_language_mode(lit->language_mode()); | 10585 shared_info->set_language_mode(lit->language_mode()); |
10586 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); | 10586 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); |
10587 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); | 10587 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); |
10588 shared_info->set_ast_node_count(lit->ast_node_count()); | 10588 shared_info->set_ast_node_count(lit->ast_node_count()); |
10589 shared_info->set_is_function(lit->is_function()); | 10589 shared_info->set_is_function(lit->is_function()); |
10590 if (lit->dont_optimize_reason() != kNoReason) { | 10590 if (lit->dont_optimize_reason() != kNoReason) { |
10591 shared_info->DisableOptimization(lit->dont_optimize_reason()); | 10591 shared_info->DisableOptimization(lit->dont_optimize_reason()); |
10592 } | 10592 } |
10593 shared_info->set_dont_crankshaft( | 10593 shared_info->set_dont_crankshaft( |
10594 lit->flags()->Contains(AstPropertiesFlag::kDontCrankshaft)); | 10594 lit->flags()->Contains(AstPropertiesFlag::kDontCrankshaft)); |
10595 shared_info->set_dont_cache( | |
10596 lit->flags()->Contains(AstPropertiesFlag::kDontCache)); | |
10597 shared_info->set_kind(lit->kind()); | 10595 shared_info->set_kind(lit->kind()); |
10598 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); | 10596 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); |
10599 shared_info->set_asm_function(lit->scope()->asm_function()); | 10597 shared_info->set_asm_function(lit->scope()->asm_function()); |
10600 } | 10598 } |
10601 | 10599 |
10602 | 10600 |
10603 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { | 10601 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { |
10604 DCHECK(!id.IsNone()); | 10602 DCHECK(!id.IsNone()); |
10605 Code* unoptimized = code(); | 10603 Code* unoptimized = code(); |
10606 DeoptimizationOutputData* data = | 10604 DeoptimizationOutputData* data = |
(...skipping 6085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16692 Handle<Object> new_value) { | 16690 Handle<Object> new_value) { |
16693 if (cell->value() != *new_value) { | 16691 if (cell->value() != *new_value) { |
16694 cell->set_value(*new_value); | 16692 cell->set_value(*new_value); |
16695 Isolate* isolate = cell->GetIsolate(); | 16693 Isolate* isolate = cell->GetIsolate(); |
16696 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 16694 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
16697 isolate, DependentCode::kPropertyCellChangedGroup); | 16695 isolate, DependentCode::kPropertyCellChangedGroup); |
16698 } | 16696 } |
16699 } | 16697 } |
16700 } // namespace internal | 16698 } // namespace internal |
16701 } // namespace v8 | 16699 } // namespace v8 |
OLD | NEW |