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

Side by Side Diff: src/compiler/js-inlining.cc

Issue 663373003: 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
« no previous file with comments | « src/compiler.cc ('k') | src/full-codegen.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ast.h"
6 #include "src/ast-numbering.h"
5 #include "src/compiler/access-builder.h" 7 #include "src/compiler/access-builder.h"
6 #include "src/compiler/ast-graph-builder.h" 8 #include "src/compiler/ast-graph-builder.h"
7 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
8 #include "src/compiler/generic-node-inl.h" 10 #include "src/compiler/generic-node-inl.h"
9 #include "src/compiler/graph-inl.h" 11 #include "src/compiler/graph-inl.h"
10 #include "src/compiler/graph-visualizer.h" 12 #include "src/compiler/graph-visualizer.h"
11 #include "src/compiler/js-inlining.h" 13 #include "src/compiler/js-inlining.h"
12 #include "src/compiler/js-intrinsic-builder.h" 14 #include "src/compiler/js-intrinsic-builder.h"
13 #include "src/compiler/js-operator.h" 15 #include "src/compiler/js-operator.h"
14 #include "src/compiler/node-aux-data-inl.h" 16 #include "src/compiler/node-aux-data-inl.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 jsgraph_->graph()->VisitNodeInputsFromEnd(&visitor); 58 jsgraph_->graph()->VisitNodeInputsFromEnd(&visitor);
57 } 59 }
58 60
59 61
60 // TODO(sigurds) Find a home for this function and reuse it everywhere (esp. in 62 // TODO(sigurds) Find a home for this function and reuse it everywhere (esp. in
61 // test cases, where similar code is currently duplicated). 63 // test cases, where similar code is currently duplicated).
62 static void Parse(Handle<JSFunction> function, CompilationInfoWithZone* info) { 64 static void Parse(Handle<JSFunction> function, CompilationInfoWithZone* info) {
63 CHECK(Parser::Parse(info)); 65 CHECK(Parser::Parse(info));
64 CHECK(Rewriter::Rewrite(info)); 66 CHECK(Rewriter::Rewrite(info));
65 CHECK(Scope::Analyze(info)); 67 CHECK(Scope::Analyze(info));
68 CHECK(AstNumbering::Renumber(info->function(), info->zone()));
66 CHECK(Compiler::EnsureDeoptimizationSupport(info)); 69 CHECK(Compiler::EnsureDeoptimizationSupport(info));
67 } 70 }
68 71
69 72
70 // A facade on a JSFunction's graph to facilitate inlining. It assumes the 73 // A facade on a JSFunction's graph to facilitate inlining. It assumes the
71 // that the function graph has only one return statement, and provides 74 // that the function graph has only one return statement, and provides
72 // {UnifyReturn} to convert a function graph to that end. 75 // {UnifyReturn} to convert a function graph to that end.
73 class Inlinee { 76 class Inlinee {
74 public: 77 public:
75 Inlinee(Node* start, Node* end) : start_(start), end_(end) {} 78 Inlinee(Node* start, Node* end) : start_(start), end_(end) {}
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 info_->shared_info()->DebugName()->ToCString().get()); 498 info_->shared_info()->DebugName()->ToCString().get());
496 } 499 }
497 NodeProperties::ReplaceWithValue(call_node, r.first, r.second); 500 NodeProperties::ReplaceWithValue(call_node, r.first, r.second);
498 call_node->RemoveAllInputs(); 501 call_node->RemoveAllInputs();
499 DCHECK_EQ(0, call_node->UseCount()); 502 DCHECK_EQ(0, call_node->UseCount());
500 } 503 }
501 } 504 }
502 } 505 }
503 } 506 }
504 } // namespace v8::internal::compiler 507 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698