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

Side by Side Diff: src/hydrogen.cc

Issue 668143003: Move BailoutReason and flags computation to post-pass (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/cpu-profiler.cc ('k') | src/log.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 7825 matching lines...) Expand 10 before | Expand all | Expand 10 after
7836 Min(FLAG_max_inlined_source_size, kUnlimitedMaxInlinedSourceSize)) { 7836 Min(FLAG_max_inlined_source_size, kUnlimitedMaxInlinedSourceSize)) {
7837 TraceInline(target, caller, "target text too big"); 7837 TraceInline(target, caller, "target text too big");
7838 return kNotInlinable; 7838 return kNotInlinable;
7839 } 7839 }
7840 7840
7841 // Target must be inlineable. 7841 // Target must be inlineable.
7842 if (!target_shared->IsInlineable()) { 7842 if (!target_shared->IsInlineable()) {
7843 TraceInline(target, caller, "target not inlineable"); 7843 TraceInline(target, caller, "target not inlineable");
7844 return kNotInlinable; 7844 return kNotInlinable;
7845 } 7845 }
7846 if (target_shared->DisableOptimizationReason() != kNoReason) { 7846 if (target_shared->disable_optimization_reason() != kNoReason) {
7847 TraceInline(target, caller, "target contains unsupported syntax [early]"); 7847 TraceInline(target, caller, "target contains unsupported syntax [early]");
7848 return kNotInlinable; 7848 return kNotInlinable;
7849 } 7849 }
7850 7850
7851 int nodes_added = target_shared->ast_node_count(); 7851 int nodes_added = target_shared->ast_node_count();
7852 return nodes_added; 7852 return nodes_added;
7853 } 7853 }
7854 7854
7855 7855
7856 bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target, 7856 bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target,
(...skipping 4882 matching lines...) Expand 10 before | Expand all | Expand 10 after
12739 if (ShouldProduceTraceOutput()) { 12739 if (ShouldProduceTraceOutput()) {
12740 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12740 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12741 } 12741 }
12742 12742
12743 #ifdef DEBUG 12743 #ifdef DEBUG
12744 graph_->Verify(false); // No full verify. 12744 graph_->Verify(false); // No full verify.
12745 #endif 12745 #endif
12746 } 12746 }
12747 12747
12748 } } // namespace v8::internal 12748 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/cpu-profiler.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698