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 10602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10613 shared_info->set_allows_lazy_compilation_without_context( | 10613 shared_info->set_allows_lazy_compilation_without_context( |
10614 lit->AllowsLazyCompilationWithoutContext()); | 10614 lit->AllowsLazyCompilationWithoutContext()); |
10615 shared_info->set_language_mode(lit->language_mode()); | 10615 shared_info->set_language_mode(lit->language_mode()); |
10616 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); | 10616 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); |
10617 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); | 10617 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); |
10618 shared_info->set_ast_node_count(lit->ast_node_count()); | 10618 shared_info->set_ast_node_count(lit->ast_node_count()); |
10619 shared_info->set_is_function(lit->is_function()); | 10619 shared_info->set_is_function(lit->is_function()); |
10620 if (lit->dont_optimize_reason() != kNoReason) { | 10620 if (lit->dont_optimize_reason() != kNoReason) { |
10621 shared_info->DisableOptimization(lit->dont_optimize_reason()); | 10621 shared_info->DisableOptimization(lit->dont_optimize_reason()); |
10622 } | 10622 } |
10623 shared_info->set_dont_crankshaft( | 10623 shared_info->set_dont_crankshaft(lit->flags() & |
10624 lit->flags()->Contains(AstPropertiesFlag::kDontCrankshaft)); | 10624 AstProperties::kDontCrankshaft); |
10625 shared_info->set_kind(lit->kind()); | 10625 shared_info->set_kind(lit->kind()); |
10626 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); | 10626 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); |
10627 shared_info->set_asm_function(lit->scope()->asm_function()); | 10627 shared_info->set_asm_function(lit->scope()->asm_function()); |
10628 } | 10628 } |
10629 | 10629 |
10630 | 10630 |
10631 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { | 10631 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { |
10632 DCHECK(!id.IsNone()); | 10632 DCHECK(!id.IsNone()); |
10633 Code* unoptimized = code(); | 10633 Code* unoptimized = code(); |
10634 DeoptimizationOutputData* data = | 10634 DeoptimizationOutputData* data = |
(...skipping 5491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16126 Handle<Object> new_value) { | 16126 Handle<Object> new_value) { |
16127 if (cell->value() != *new_value) { | 16127 if (cell->value() != *new_value) { |
16128 cell->set_value(*new_value); | 16128 cell->set_value(*new_value); |
16129 Isolate* isolate = cell->GetIsolate(); | 16129 Isolate* isolate = cell->GetIsolate(); |
16130 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 16130 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
16131 isolate, DependentCode::kPropertyCellChangedGroup); | 16131 isolate, DependentCode::kPropertyCellChangedGroup); |
16132 } | 16132 } |
16133 } | 16133 } |
16134 } // namespace internal | 16134 } // namespace internal |
16135 } // namespace v8 | 16135 } // namespace v8 |
OLD | NEW |