Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: src/compiler/js-inlining.cc

Issue 2645403002: [Compiler] Enable use of seperate zones for parsing and compiling. (Closed)
Patch Set: Add back header Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/js-inlining.h" 5 #include "src/compiler/js-inlining.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/compilation-info.h" 8 #include "src/compilation-info.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/compiler/all-nodes.h" 10 #include "src/compiler/all-nodes.h"
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 TRACE( 543 TRACE(
544 "Inlining %s into %s regardless of surrounding try-block to catcher " 544 "Inlining %s into %s regardless of surrounding try-block to catcher "
545 "#%d:%s\n", 545 "#%d:%s\n",
546 shared_info->DebugName()->ToCString().get(), 546 shared_info->DebugName()->ToCString().get(),
547 info_->shared_info()->DebugName()->ToCString().get(), 547 info_->shared_info()->DebugName()->ToCString().get(),
548 exception_target->id(), exception_target->op()->mnemonic()); 548 exception_target->id(), exception_target->op()->mnemonic());
549 } 549 }
550 } 550 }
551 551
552 ParseInfo parse_info(shared_info); 552 ParseInfo parse_info(shared_info);
553 CompilationInfo info(&parse_info, Handle<JSFunction>::null()); 553 CompilationInfo info(parse_info.zone(), &parse_info,
554 Handle<JSFunction>::null());
554 if (info_->is_deoptimization_enabled()) info.MarkAsDeoptimizationEnabled(); 555 if (info_->is_deoptimization_enabled()) info.MarkAsDeoptimizationEnabled();
555 info.MarkAsOptimizeFromBytecode(); 556 info.MarkAsOptimizeFromBytecode();
556 557
557 if (!Compiler::EnsureBytecode(&info)) { 558 if (!Compiler::EnsureBytecode(&info)) {
558 TRACE("Not inlining %s into %s because bytecode generation failed\n", 559 TRACE("Not inlining %s into %s because bytecode generation failed\n",
559 shared_info->DebugName()->ToCString().get(), 560 shared_info->DebugName()->ToCString().get(),
560 info_->shared_info()->DebugName()->ToCString().get()); 561 info_->shared_info()->DebugName()->ToCString().get());
561 if (info_->isolate()->has_pending_exception()) { 562 if (info_->isolate()->has_pending_exception()) {
562 info_->isolate()->clear_pending_exception(); 563 info_->isolate()->clear_pending_exception();
563 } 564 }
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 726
726 CommonOperatorBuilder* JSInliner::common() const { return jsgraph()->common(); } 727 CommonOperatorBuilder* JSInliner::common() const { return jsgraph()->common(); }
727 728
728 SimplifiedOperatorBuilder* JSInliner::simplified() const { 729 SimplifiedOperatorBuilder* JSInliner::simplified() const {
729 return jsgraph()->simplified(); 730 return jsgraph()->simplified();
730 } 731 }
731 732
732 } // namespace compiler 733 } // namespace compiler
733 } // namespace internal 734 } // namespace internal
734 } // namespace v8 735 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698