diff options
Diffstat (limited to 'deps/v8/src/parsing/parse-info.cc')
-rw-r--r-- | deps/v8/src/parsing/parse-info.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/deps/v8/src/parsing/parse-info.cc b/deps/v8/src/parsing/parse-info.cc index 3050e01b48..7bbb201dbe 100644 --- a/deps/v8/src/parsing/parse-info.cc +++ b/deps/v8/src/parsing/parse-info.cc @@ -10,6 +10,7 @@ #include "src/base/template-utils.h" #include "src/compiler-dispatcher/compiler-dispatcher.h" #include "src/counters.h" +#include "src/hash-seed-inl.h" #include "src/heap/heap-inl.h" #include "src/log.h" #include "src/objects-inl.h" @@ -31,8 +32,8 @@ ParseInfo::ParseInfo(AccountingAllocator* zone_allocator) start_position_(0), end_position_(0), parameters_end_pos_(kNoSourcePosition), - function_literal_id_(FunctionLiteral::kIdTypeInvalid), - max_function_literal_id_(FunctionLiteral::kIdTypeInvalid), + function_literal_id_(kFunctionLiteralIdInvalid), + max_function_literal_id_(kFunctionLiteralIdInvalid), character_stream_(nullptr), ast_value_factory_(nullptr), ast_string_constants_(nullptr), @@ -43,11 +44,14 @@ ParseInfo::ParseInfo(AccountingAllocator* zone_allocator) ParseInfo::ParseInfo(Isolate* isolate, AccountingAllocator* zone_allocator) : ParseInfo(zone_allocator) { - set_hash_seed(isolate->heap()->HashSeed()); + set_hash_seed(HashSeed(isolate)); set_stack_limit(isolate->stack_guard()->real_climit()); set_runtime_call_stats(isolate->counters()->runtime_call_stats()); set_logger(isolate->logger()); set_ast_string_constants(isolate->ast_string_constants()); + set_collect_source_positions(!FLAG_enable_lazy_source_positions || + isolate->NeedsDetailedOptimizedCodeLineInfo()); + if (!isolate->is_best_effort_code_coverage()) set_coverage_enabled(); if (isolate->is_block_code_coverage()) set_block_coverage_enabled(); if (isolate->is_collecting_type_profile()) set_collect_type_profile(); if (isolate->compiler_dispatcher()->IsEnabled()) { |