| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/compiler-dispatcher/compiler-dispatcher-job.h" | 5 #include "src/compiler-dispatcher/compiler-dispatcher-job.h" |
| 6 | 6 |
| 7 #include "src/assert-scope.h" | 7 #include "src/assert-scope.h" |
| 8 #include "src/compilation-info.h" | 8 #include "src/compilation-info.h" |
| 9 #include "src/compiler-dispatcher/compiler-dispatcher-tracer.h" | 9 #include "src/compiler-dispatcher/compiler-dispatcher-tracer.h" |
| 10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 parse_info_.reset(new ParseInfo(zone_.get())); | 69 parse_info_.reset(new ParseInfo(zone_.get())); |
| 70 parse_info_->set_isolate(isolate_); | 70 parse_info_->set_isolate(isolate_); |
| 71 parse_info_->set_character_stream(character_stream_.get()); | 71 parse_info_->set_character_stream(character_stream_.get()); |
| 72 parse_info_->set_hash_seed(isolate_->heap()->HashSeed()); | 72 parse_info_->set_hash_seed(isolate_->heap()->HashSeed()); |
| 73 parse_info_->set_is_named_expression(shared_->is_named_expression()); | 73 parse_info_->set_is_named_expression(shared_->is_named_expression()); |
| 74 parse_info_->set_compiler_hints(shared_->compiler_hints()); | 74 parse_info_->set_compiler_hints(shared_->compiler_hints()); |
| 75 parse_info_->set_start_position(shared_->start_position()); | 75 parse_info_->set_start_position(shared_->start_position()); |
| 76 parse_info_->set_end_position(shared_->end_position()); | 76 parse_info_->set_end_position(shared_->end_position()); |
| 77 parse_info_->set_unicode_cache(unicode_cache_.get()); | 77 parse_info_->set_unicode_cache(unicode_cache_.get()); |
| 78 parse_info_->set_language_mode(shared_->language_mode()); | 78 parse_info_->set_language_mode(shared_->language_mode()); |
| 79 parse_info_->set_function_literal_num(shared_->function_literal_num()); |
| 79 | 80 |
| 80 parser_.reset(new Parser(parse_info_.get())); | 81 parser_.reset(new Parser(parse_info_.get())); |
| 81 Handle<ScopeInfo> outer_scope_info( | 82 Handle<ScopeInfo> outer_scope_info( |
| 82 handle(ScopeInfo::cast(shared_->outer_scope_info()))); | 83 handle(ScopeInfo::cast(shared_->outer_scope_info()))); |
| 83 parser_->DeserializeScopeChain(parse_info_.get(), | 84 parser_->DeserializeScopeChain(parse_info_.get(), |
| 84 outer_scope_info->length() > 0 | 85 outer_scope_info->length() > 0 |
| 85 ? MaybeHandle<ScopeInfo>(outer_scope_info) | 86 ? MaybeHandle<ScopeInfo>(outer_scope_info) |
| 86 : MaybeHandle<ScopeInfo>()); | 87 : MaybeHandle<ScopeInfo>()); |
| 87 | 88 |
| 88 Handle<String> name(String::cast(shared_->name())); | 89 Handle<String> name(String::cast(shared_->name())); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 if (!source_.is_null()) { | 252 if (!source_.is_null()) { |
| 252 i::GlobalHandles::Destroy(Handle<Object>::cast(source_).location()); | 253 i::GlobalHandles::Destroy(Handle<Object>::cast(source_).location()); |
| 253 source_ = Handle<String>::null(); | 254 source_ = Handle<String>::null(); |
| 254 } | 255 } |
| 255 | 256 |
| 256 status_ = CompileJobStatus::kInitial; | 257 status_ = CompileJobStatus::kInitial; |
| 257 } | 258 } |
| 258 | 259 |
| 259 } // namespace internal | 260 } // namespace internal |
| 260 } // namespace v8 | 261 } // namespace v8 |
| OLD | NEW |