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 <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/accessors.h" | 9 #include "src/accessors.h" |
10 #include "src/allocation-site-scopes.h" | 10 #include "src/allocation-site-scopes.h" |
(...skipping 10370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10381 PrintF("[disabled optimization for "); | 10381 PrintF("[disabled optimization for "); |
10382 ShortPrint(); | 10382 ShortPrint(); |
10383 PrintF(", reason: %s]\n", GetBailoutReason(reason)); | 10383 PrintF(", reason: %s]\n", GetBailoutReason(reason)); |
10384 } | 10384 } |
10385 } | 10385 } |
10386 | 10386 |
10387 | 10387 |
10388 void SharedFunctionInfo::InitFromFunctionLiteral( | 10388 void SharedFunctionInfo::InitFromFunctionLiteral( |
10389 Handle<SharedFunctionInfo> shared_info, FunctionLiteral* lit) { | 10389 Handle<SharedFunctionInfo> shared_info, FunctionLiteral* lit) { |
10390 shared_info->set_length(lit->parameter_count()); | 10390 shared_info->set_length(lit->parameter_count()); |
10391 if (FLAG_experimental_classes && IsSubclassConstructor(lit->kind())) { | 10391 if (IsSubclassConstructor(lit->kind())) { |
10392 shared_info->set_internal_formal_parameter_count(lit->parameter_count() + | 10392 shared_info->set_internal_formal_parameter_count(lit->parameter_count() + |
10393 1); | 10393 1); |
10394 } else { | 10394 } else { |
10395 shared_info->set_internal_formal_parameter_count(lit->parameter_count()); | 10395 shared_info->set_internal_formal_parameter_count(lit->parameter_count()); |
10396 } | 10396 } |
10397 shared_info->set_function_token_position(lit->function_token_position()); | 10397 shared_info->set_function_token_position(lit->function_token_position()); |
10398 shared_info->set_start_position(lit->start_position()); | 10398 shared_info->set_start_position(lit->start_position()); |
10399 shared_info->set_end_position(lit->end_position()); | 10399 shared_info->set_end_position(lit->end_position()); |
10400 shared_info->set_is_expression(lit->is_expression()); | 10400 shared_info->set_is_expression(lit->is_expression()); |
10401 shared_info->set_is_anonymous(lit->is_anonymous()); | 10401 shared_info->set_is_anonymous(lit->is_anonymous()); |
(...skipping 6612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17014 CompilationInfo* info) { | 17014 CompilationInfo* info) { |
17015 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( | 17015 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( |
17016 handle(cell->dependent_code(), info->isolate()), | 17016 handle(cell->dependent_code(), info->isolate()), |
17017 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); | 17017 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); |
17018 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); | 17018 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); |
17019 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( | 17019 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( |
17020 cell, info->zone()); | 17020 cell, info->zone()); |
17021 } | 17021 } |
17022 | 17022 |
17023 } } // namespace v8::internal | 17023 } } // namespace v8::internal |
OLD | NEW |