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 10562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10573 shared_info->set_ast_node_count(lit->ast_node_count()); | 10573 shared_info->set_ast_node_count(lit->ast_node_count()); |
10574 shared_info->set_is_function(lit->is_function()); | 10574 shared_info->set_is_function(lit->is_function()); |
10575 if (lit->dont_optimize_reason() != kNoReason) { | 10575 if (lit->dont_optimize_reason() != kNoReason) { |
10576 shared_info->DisableOptimization(lit->dont_optimize_reason()); | 10576 shared_info->DisableOptimization(lit->dont_optimize_reason()); |
10577 } | 10577 } |
10578 shared_info->set_dont_crankshaft( | 10578 shared_info->set_dont_crankshaft( |
10579 lit->flags()->Contains(AstPropertiesFlag::kDontCrankshaft)); | 10579 lit->flags()->Contains(AstPropertiesFlag::kDontCrankshaft)); |
10580 shared_info->set_dont_cache( | 10580 shared_info->set_dont_cache( |
10581 lit->flags()->Contains(AstPropertiesFlag::kDontCache)); | 10581 lit->flags()->Contains(AstPropertiesFlag::kDontCache)); |
10582 shared_info->set_kind(lit->kind()); | 10582 shared_info->set_kind(lit->kind()); |
10583 shared_info->set_uses_super_property(lit->uses_super_property()); | 10583 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); |
10584 shared_info->set_asm_function(lit->scope()->asm_function()); | 10584 shared_info->set_asm_function(lit->scope()->asm_function()); |
10585 } | 10585 } |
10586 | 10586 |
10587 | 10587 |
10588 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { | 10588 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { |
10589 DCHECK(!id.IsNone()); | 10589 DCHECK(!id.IsNone()); |
10590 Code* unoptimized = code(); | 10590 Code* unoptimized = code(); |
10591 DeoptimizationOutputData* data = | 10591 DeoptimizationOutputData* data = |
10592 DeoptimizationOutputData::cast(unoptimized->deoptimization_data()); | 10592 DeoptimizationOutputData::cast(unoptimized->deoptimization_data()); |
10593 unsigned ignore = Deoptimizer::GetOutputInfo(data, id, this); | 10593 unsigned ignore = Deoptimizer::GetOutputInfo(data, id, this); |
(...skipping 6374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16968 Handle<Object> new_value) { | 16968 Handle<Object> new_value) { |
16969 if (cell->value() != *new_value) { | 16969 if (cell->value() != *new_value) { |
16970 cell->set_value(*new_value); | 16970 cell->set_value(*new_value); |
16971 Isolate* isolate = cell->GetIsolate(); | 16971 Isolate* isolate = cell->GetIsolate(); |
16972 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 16972 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
16973 isolate, DependentCode::kPropertyCellChangedGroup); | 16973 isolate, DependentCode::kPropertyCellChangedGroup); |
16974 } | 16974 } |
16975 } | 16975 } |
16976 } // namespace internal | 16976 } // namespace internal |
16977 } // namespace v8 | 16977 } // namespace v8 |
OLD | NEW |