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

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

Issue 2406623002: Revert of [parser] Deprecate ParseInfo constructor taking closure. (Closed)
Patch Set: Created 4 years, 2 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.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-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 TRACE( 465 TRACE(
466 "Inlining %s into %s regardless of surrounding try-block to catcher " 466 "Inlining %s into %s regardless of surrounding try-block to catcher "
467 "#%d:%s\n", 467 "#%d:%s\n",
468 shared_info->DebugName()->ToCString().get(), 468 shared_info->DebugName()->ToCString().get(),
469 info_->shared_info()->DebugName()->ToCString().get(), 469 info_->shared_info()->DebugName()->ToCString().get(),
470 exception_target->id(), exception_target->op()->mnemonic()); 470 exception_target->id(), exception_target->op()->mnemonic());
471 } 471 }
472 } 472 }
473 473
474 Zone zone(info_->isolate()->allocator()); 474 Zone zone(info_->isolate()->allocator());
475 ParseInfo parse_info(&zone, shared_info); 475 ParseInfo parse_info(&zone, function);
476 CompilationInfo info(&parse_info, function); 476 CompilationInfo info(&parse_info, function);
477 if (info_->is_deoptimization_enabled()) info.MarkAsDeoptimizationEnabled(); 477 if (info_->is_deoptimization_enabled()) info.MarkAsDeoptimizationEnabled();
478 if (info_->is_type_feedback_enabled()) info.MarkAsTypeFeedbackEnabled(); 478 if (info_->is_type_feedback_enabled()) info.MarkAsTypeFeedbackEnabled();
479 if (info_->is_optimizing_from_bytecode()) info.MarkAsOptimizeFromBytecode(); 479 if (info_->is_optimizing_from_bytecode()) info.MarkAsOptimizeFromBytecode();
480 480
481 if (info.is_optimizing_from_bytecode() && !Compiler::EnsureBytecode(&info)) { 481 if (info.is_optimizing_from_bytecode() && !Compiler::EnsureBytecode(&info)) {
482 TRACE("Not inlining %s into %s because bytecode generation failed\n", 482 TRACE("Not inlining %s into %s because bytecode generation failed\n",
483 shared_info->DebugName()->ToCString().get(), 483 shared_info->DebugName()->ToCString().get(),
484 info_->shared_info()->DebugName()->ToCString().get()); 484 info_->shared_info()->DebugName()->ToCString().get());
485 if (info_->isolate()->has_pending_exception()) { 485 if (info_->isolate()->has_pending_exception()) {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 691
692 CommonOperatorBuilder* JSInliner::common() const { return jsgraph()->common(); } 692 CommonOperatorBuilder* JSInliner::common() const { return jsgraph()->common(); }
693 693
694 SimplifiedOperatorBuilder* JSInliner::simplified() const { 694 SimplifiedOperatorBuilder* JSInliner::simplified() const {
695 return jsgraph()->simplified(); 695 return jsgraph()->simplified();
696 } 696 }
697 697
698 } // namespace compiler 698 } // namespace compiler
699 } // namespace internal 699 } // namespace internal
700 } // namespace v8 700 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698