| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 6354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6365 FunctionLiteral* function = target_info.function(); | 6365 FunctionLiteral* function = target_info.function(); |
| 6366 | 6366 |
| 6367 // The following conditions must be checked again after re-parsing, because | 6367 // The following conditions must be checked again after re-parsing, because |
| 6368 // earlier the information might not have been complete due to lazy parsing. | 6368 // earlier the information might not have been complete due to lazy parsing. |
| 6369 nodes_added = function->ast_node_count(); | 6369 nodes_added = function->ast_node_count(); |
| 6370 if (nodes_added > Min(FLAG_max_inlined_nodes, kUnlimitedMaxInlinedNodes)) { | 6370 if (nodes_added > Min(FLAG_max_inlined_nodes, kUnlimitedMaxInlinedNodes)) { |
| 6371 TraceInline(target, caller, "target AST is too large [late]"); | 6371 TraceInline(target, caller, "target AST is too large [late]"); |
| 6372 return false; | 6372 return false; |
| 6373 } | 6373 } |
| 6374 AstProperties::Flags* flags(function->flags()); | 6374 AstProperties::Flags* flags(function->flags()); |
| 6375 if (flags->Contains(kDontInline) || flags->Contains(kDontOptimize)) { | 6375 if (flags->Contains(kDontInline) || function->dont_optimize()) { |
| 6376 TraceInline(target, caller, "target contains unsupported syntax [late]"); | 6376 TraceInline(target, caller, "target contains unsupported syntax [late]"); |
| 6377 return false; | 6377 return false; |
| 6378 } | 6378 } |
| 6379 | 6379 |
| 6380 // If the function uses the arguments object check that inlining of functions | 6380 // If the function uses the arguments object check that inlining of functions |
| 6381 // with arguments object is enabled and the arguments-variable is | 6381 // with arguments object is enabled and the arguments-variable is |
| 6382 // stack allocated. | 6382 // stack allocated. |
| 6383 if (function->scope()->arguments() != NULL) { | 6383 if (function->scope()->arguments() != NULL) { |
| 6384 if (!FLAG_inline_arguments) { | 6384 if (!FLAG_inline_arguments) { |
| 6385 TraceInline(target, caller, "target uses arguments object"); | 6385 TraceInline(target, caller, "target uses arguments object"); |
| (...skipping 3353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9739 if (ShouldProduceTraceOutput()) { | 9739 if (ShouldProduceTraceOutput()) { |
| 9740 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 9740 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 9741 } | 9741 } |
| 9742 | 9742 |
| 9743 #ifdef DEBUG | 9743 #ifdef DEBUG |
| 9744 graph_->Verify(false); // No full verify. | 9744 graph_->Verify(false); // No full verify. |
| 9745 #endif | 9745 #endif |
| 9746 } | 9746 } |
| 9747 | 9747 |
| 9748 } } // namespace v8::internal | 9748 } } // namespace v8::internal |
| OLD | NEW |