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

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: 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
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 7793 matching lines...) Expand 10 before | Expand all | Expand 10 after
7815 TraceInline(target, caller, "cumulative AST node limit reached"); 7816 TraceInline(target, caller, "cumulative AST node limit reached");
7816 return false; 7817 return false;
7817 } 7818 }
7818 7819
7819 // Parse and allocate variables. 7820 // Parse and allocate variables.
7820 CompilationInfo target_info(target, zone()); 7821 CompilationInfo target_info(target, zone());
7821 // Use the same AstValueFactory for creating strings in the sub-compilation 7822 // Use the same AstValueFactory for creating strings in the sub-compilation
7822 // step, but don't transfer ownership to target_info. 7823 // step, but don't transfer ownership to target_info.
7823 target_info.SetAstValueFactory(top_info()->ast_value_factory(), false); 7824 target_info.SetAstValueFactory(top_info()->ast_value_factory(), false);
7824 Handle<SharedFunctionInfo> target_shared(target->shared()); 7825 Handle<SharedFunctionInfo> target_shared(target->shared());
7825 if (!Parser::Parse(&target_info) || !Scope::Analyze(&target_info)) { 7826 if (!Parser::Parse(&target_info) || !Scope::Analyze(&target_info) ||
7827 !AstNumbering::Renumber(&target_info)) {
7826 if (target_info.isolate()->has_pending_exception()) { 7828 if (target_info.isolate()->has_pending_exception()) {
7827 // Parse or scope error, never optimize this function. 7829 // Parse or scope error, never optimize this function.
7828 SetStackOverflow(); 7830 SetStackOverflow();
7829 target_shared->DisableOptimization(kParseScopeError); 7831 target_shared->DisableOptimization(kParseScopeError);
7830 } 7832 }
7831 TraceInline(target, caller, "parse failure"); 7833 TraceInline(target, caller, "parse failure");
7832 return false; 7834 return false;
7833 } 7835 }
7834 7836
7835 if (target_info.scope()->num_heap_slots() > 0) { 7837 if (target_info.scope()->num_heap_slots() > 0) {
(...skipping 4697 matching lines...) Expand 10 before | Expand all | Expand 10 after
12533 if (ShouldProduceTraceOutput()) { 12535 if (ShouldProduceTraceOutput()) {
12534 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12536 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12535 } 12537 }
12536 12538
12537 #ifdef DEBUG 12539 #ifdef DEBUG
12538 graph_->Verify(false); // No full verify. 12540 graph_->Verify(false); // No full verify.
12539 #endif 12541 #endif
12540 } 12542 }
12541 12543
12542 } } // namespace v8::internal 12544 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698