v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
unoptimized-compilation-info.cc
Go to the documentation of this file.
1// Copyright 2018 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
7#include "src/ast/ast.h"
8#include "src/ast/scopes.h"
10#include "src/debug/debug.h"
14
15namespace v8 {
16namespace internal {
17
19 ParseInfo* parse_info,
21 : flags_(parse_info->flags()),
22 dispatcher_(parse_info->dispatcher()),
23 character_stream_(parse_info->character_stream()),
24 feedback_vector_spec_(zone) {
25 // NOTE: The parse_info passed here represents the global information gathered
26 // during parsing, but does not represent specific details of the actual
27 // function literal being compiled for this OptimizedCompilationInfo. As such,
28 // parse_info->literal() might be different from literal, and only global
29 // details of the script being parsed are relevant to this
30 // OptimizedCompilationInfo.
33 source_range_map_ = parse_info->source_range_map();
34}
35
40
44
48
51 if (flags().collect_source_positions()) {
53 }
54
55 // Always collect source positions for functions that cannot be lazily
56 // compiled, e.g. class member initializer functions.
60}
61
62} // namespace internal
63} // namespace v8
DeclarationScope * scope() const
Definition ast.h:2315
SourceRangeMap * source_range_map() const
Definition parse-info.h:337
SourcePositionTableBuilder::RecordingMode SourcePositionRecordingMode() const
const UnoptimizedCompileFlags & flags() const
UnoptimizedCompilationInfo(Zone *zone, ParseInfo *parse_info, FunctionLiteral *literal)
JSRegExp::Flags flags_
FunctionLiteral * literal
Definition liveedit.cc:294
#define DCHECK_NOT_NULL(val)
Definition logging.h:492