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 <memory> | 9 #include <memory> |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 14013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14024 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); | 14024 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); |
14025 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); | 14025 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); |
14026 shared_info->set_is_function(lit->is_function()); | 14026 shared_info->set_is_function(lit->is_function()); |
14027 shared_info->set_kind(lit->kind()); | 14027 shared_info->set_kind(lit->kind()); |
14028 if (!IsConstructable(lit->kind(), lit->language_mode())) { | 14028 if (!IsConstructable(lit->kind(), lit->language_mode())) { |
14029 shared_info->SetConstructStub( | 14029 shared_info->SetConstructStub( |
14030 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable()); | 14030 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable()); |
14031 } | 14031 } |
14032 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); | 14032 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); |
14033 shared_info->set_asm_function(lit->scope()->asm_function()); | 14033 shared_info->set_asm_function(lit->scope()->asm_function()); |
14034 shared_info->set_requires_class_field_init(lit->requires_class_field_init()); | |
14035 shared_info->set_is_class_field_initializer( | |
14036 lit->is_class_field_initializer()); | |
14037 shared_info->set_function_literal_id(lit->function_literal_id()); | 14034 shared_info->set_function_literal_id(lit->function_literal_id()); |
14038 SetExpectedNofPropertiesFromEstimate(shared_info, lit); | 14035 SetExpectedNofPropertiesFromEstimate(shared_info, lit); |
14039 } | 14036 } |
14040 | 14037 |
14041 | 14038 |
14042 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { | 14039 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { |
14043 DCHECK(!id.IsNone()); | 14040 DCHECK(!id.IsNone()); |
14044 Code* unoptimized = code(); | 14041 Code* unoptimized = code(); |
14045 DeoptimizationOutputData* data = | 14042 DeoptimizationOutputData* data = |
14046 DeoptimizationOutputData::cast(unoptimized->deoptimization_data()); | 14043 DeoptimizationOutputData::cast(unoptimized->deoptimization_data()); |
(...skipping 6394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20441 // depend on this. | 20438 // depend on this. |
20442 return DICTIONARY_ELEMENTS; | 20439 return DICTIONARY_ELEMENTS; |
20443 } | 20440 } |
20444 DCHECK_LE(kind, LAST_ELEMENTS_KIND); | 20441 DCHECK_LE(kind, LAST_ELEMENTS_KIND); |
20445 return kind; | 20442 return kind; |
20446 } | 20443 } |
20447 } | 20444 } |
20448 | 20445 |
20449 } // namespace internal | 20446 } // namespace internal |
20450 } // namespace v8 | 20447 } // namespace v8 |
OLD | NEW |