���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /home/real/node-v13.0.1/deps/v8/src/codegen/ |
// Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/codegen/unoptimized-compilation-info.h" #include "src/ast/ast.h" #include "src/ast/scopes.h" #include "src/codegen/source-position.h" #include "src/debug/debug.h" #include "src/execution/isolate.h" #include "src/objects/objects-inl.h" #include "src/parsing/parse-info.h" namespace v8 { namespace internal { UnoptimizedCompilationInfo::UnoptimizedCompilationInfo(Zone* zone, ParseInfo* parse_info, FunctionLiteral* literal) : flags_(0), zone_(zone), feedback_vector_spec_(zone) { // NOTE: The parse_info passed here represents the global information gathered // during parsing, but does not represent specific details of the actual // function literal being compiled for this OptimizedCompilationInfo. As such, // parse_info->literal() might be different from literal, and only global // details of the script being parsed are relevant to this // OptimizedCompilationInfo. DCHECK_NOT_NULL(literal); literal_ = literal; source_range_map_ = parse_info->source_range_map(); if (parse_info->is_eval()) MarkAsEval(); if (parse_info->collect_type_profile()) MarkAsCollectTypeProfile(); if (parse_info->might_always_opt()) MarkAsMightAlwaysOpt(); if (parse_info->collect_source_positions()) { MarkAsForceCollectSourcePositions(); } } DeclarationScope* UnoptimizedCompilationInfo::scope() const { DCHECK_NOT_NULL(literal_); return literal_->scope(); } int UnoptimizedCompilationInfo::num_parameters() const { return scope()->num_parameters(); } int UnoptimizedCompilationInfo::num_parameters_including_this() const { return scope()->num_parameters() + 1; } SourcePositionTableBuilder::RecordingMode UnoptimizedCompilationInfo::SourcePositionRecordingMode() const { if (collect_source_positions()) { return SourcePositionTableBuilder::RECORD_SOURCE_POSITIONS; } // Always collect source positions for functions that cannot be lazily // compiled, e.g. class member initializer functions. return !literal_->AllowsLazyCompilation() ? SourcePositionTableBuilder::RECORD_SOURCE_POSITIONS : SourcePositionTableBuilder::LAZY_SOURCE_POSITIONS; } } // namespace internal } // namespace v8