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

Side by Side Diff: src/hydrogen.cc

Issue 23817003: Propagate bailout and dont_optimize reasons to cpu-profiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comments addressed Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/objects.h » ('j') | src/objects.h » ('J')
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 // 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 6340 matching lines...) Expand 10 before | Expand all | Expand 10 after
6351 FunctionLiteral* function = target_info.function(); 6351 FunctionLiteral* function = target_info.function();
6352 6352
6353 // The following conditions must be checked again after re-parsing, because 6353 // The following conditions must be checked again after re-parsing, because
6354 // earlier the information might not have been complete due to lazy parsing. 6354 // earlier the information might not have been complete due to lazy parsing.
6355 nodes_added = function->ast_node_count(); 6355 nodes_added = function->ast_node_count();
6356 if (nodes_added > Min(FLAG_max_inlined_nodes, kUnlimitedMaxInlinedNodes)) { 6356 if (nodes_added > Min(FLAG_max_inlined_nodes, kUnlimitedMaxInlinedNodes)) {
6357 TraceInline(target, caller, "target AST is too large [late]"); 6357 TraceInline(target, caller, "target AST is too large [late]");
6358 return false; 6358 return false;
6359 } 6359 }
6360 AstProperties::Flags* flags(function->flags()); 6360 AstProperties::Flags* flags(function->flags());
6361 if (flags->Contains(kDontInline) || flags->Contains(kDontOptimize)) { 6361 if (flags->Contains(kDontInline) || function->dont_optimize()) {
6362 TraceInline(target, caller, "target contains unsupported syntax [late]"); 6362 TraceInline(target, caller, "target contains unsupported syntax [late]");
6363 return false; 6363 return false;
6364 } 6364 }
6365 6365
6366 // If the function uses the arguments object check that inlining of functions 6366 // If the function uses the arguments object check that inlining of functions
6367 // with arguments object is enabled and the arguments-variable is 6367 // with arguments object is enabled and the arguments-variable is
6368 // stack allocated. 6368 // stack allocated.
6369 if (function->scope()->arguments() != NULL) { 6369 if (function->scope()->arguments() != NULL) {
6370 if (!FLAG_inline_arguments) { 6370 if (!FLAG_inline_arguments) {
6371 TraceInline(target, caller, "target uses arguments object"); 6371 TraceInline(target, caller, "target uses arguments object");
(...skipping 3342 matching lines...) Expand 10 before | Expand all | Expand 10 after
9714 if (ShouldProduceTraceOutput()) { 9714 if (ShouldProduceTraceOutput()) {
9715 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 9715 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
9716 } 9716 }
9717 9717
9718 #ifdef DEBUG 9718 #ifdef DEBUG
9719 graph_->Verify(false); // No full verify. 9719 graph_->Verify(false); // No full verify.
9720 #endif 9720 #endif
9721 } 9721 }
9722 9722
9723 } } // namespace v8::internal 9723 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698