| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |