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

Side by Side Diff: src/hydrogen.cc

Issue 636403003: Assign bailout and type feedback IDs in a post-pass (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/full-codegen.cc ('k') | src/parser.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
11 #include "src/allocation-site-scopes.h" 11 #include "src/allocation-site-scopes.h"
12 #include "src/ast-numbering.h"
12 #include "src/full-codegen.h" 13 #include "src/full-codegen.h"
13 #include "src/hydrogen-bce.h" 14 #include "src/hydrogen-bce.h"
14 #include "src/hydrogen-bch.h" 15 #include "src/hydrogen-bch.h"
15 #include "src/hydrogen-canonicalize.h" 16 #include "src/hydrogen-canonicalize.h"
16 #include "src/hydrogen-check-elimination.h" 17 #include "src/hydrogen-check-elimination.h"
17 #include "src/hydrogen-dce.h" 18 #include "src/hydrogen-dce.h"
18 #include "src/hydrogen-dehoist.h" 19 #include "src/hydrogen-dehoist.h"
19 #include "src/hydrogen-environment-liveness.h" 20 #include "src/hydrogen-environment-liveness.h"
20 #include "src/hydrogen-escape-analysis.h" 21 #include "src/hydrogen-escape-analysis.h"
21 #include "src/hydrogen-gvn.h" 22 #include "src/hydrogen-gvn.h"
(...skipping 7801 matching lines...) Expand 10 before | Expand all | Expand 10 after
7823 TraceInline(target, caller, "cumulative AST node limit reached"); 7824 TraceInline(target, caller, "cumulative AST node limit reached");
7824 return false; 7825 return false;
7825 } 7826 }
7826 7827
7827 // Parse and allocate variables. 7828 // Parse and allocate variables.
7828 CompilationInfo target_info(target, zone()); 7829 CompilationInfo target_info(target, zone());
7829 // Use the same AstValueFactory for creating strings in the sub-compilation 7830 // Use the same AstValueFactory for creating strings in the sub-compilation
7830 // step, but don't transfer ownership to target_info. 7831 // step, but don't transfer ownership to target_info.
7831 target_info.SetAstValueFactory(top_info()->ast_value_factory(), false); 7832 target_info.SetAstValueFactory(top_info()->ast_value_factory(), false);
7832 Handle<SharedFunctionInfo> target_shared(target->shared()); 7833 Handle<SharedFunctionInfo> target_shared(target->shared());
7833 if (!Parser::Parse(&target_info) || !Scope::Analyze(&target_info)) { 7834 if (!Parser::Parse(&target_info) || !Scope::Analyze(&target_info) ||
7835 !AstNumbering::Renumber(target_info.function(), target_info.zone())) {
7834 if (target_info.isolate()->has_pending_exception()) { 7836 if (target_info.isolate()->has_pending_exception()) {
7835 // Parse or scope error, never optimize this function. 7837 // Parse or scope error, never optimize this function.
7836 SetStackOverflow(); 7838 SetStackOverflow();
7837 target_shared->DisableOptimization(kParseScopeError); 7839 target_shared->DisableOptimization(kParseScopeError);
7838 } 7840 }
7839 TraceInline(target, caller, "parse failure"); 7841 TraceInline(target, caller, "parse failure");
7840 return false; 7842 return false;
7841 } 7843 }
7842 7844
7843 if (target_info.scope()->num_heap_slots() > 0) { 7845 if (target_info.scope()->num_heap_slots() > 0) {
(...skipping 4809 matching lines...) Expand 10 before | Expand all | Expand 10 after
12653 if (ShouldProduceTraceOutput()) { 12655 if (ShouldProduceTraceOutput()) {
12654 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12656 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12655 } 12657 }
12656 12658
12657 #ifdef DEBUG 12659 #ifdef DEBUG
12658 graph_->Verify(false); // No full verify. 12660 graph_->Verify(false); // No full verify.
12659 #endif 12661 #endif
12660 } 12662 }
12661 12663
12662 } } // namespace v8::internal 12664 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698