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

Side by Side Diff: src/compiler/js-inlining.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 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-numbering.h"
5 #include "src/compiler/access-builder.h" 6 #include "src/compiler/access-builder.h"
6 #include "src/compiler/ast-graph-builder.h" 7 #include "src/compiler/ast-graph-builder.h"
7 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
8 #include "src/compiler/generic-node-inl.h" 9 #include "src/compiler/generic-node-inl.h"
9 #include "src/compiler/graph-inl.h" 10 #include "src/compiler/graph-inl.h"
10 #include "src/compiler/graph-visualizer.h" 11 #include "src/compiler/graph-visualizer.h"
11 #include "src/compiler/js-inlining.h" 12 #include "src/compiler/js-inlining.h"
12 #include "src/compiler/js-operator.h" 13 #include "src/compiler/js-operator.h"
13 #include "src/compiler/node-aux-data-inl.h" 14 #include "src/compiler/node-aux-data-inl.h"
14 #include "src/compiler/node-matchers.h" 15 #include "src/compiler/node-matchers.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 jsgraph_->graph()->VisitNodeInputsFromEnd(&visitor); 51 jsgraph_->graph()->VisitNodeInputsFromEnd(&visitor);
51 } 52 }
52 53
53 54
54 // TODO(sigurds) Find a home for this function and reuse it everywhere (esp. in 55 // TODO(sigurds) Find a home for this function and reuse it everywhere (esp. in
55 // test cases, where similar code is currently duplicated). 56 // test cases, where similar code is currently duplicated).
56 static void Parse(Handle<JSFunction> function, CompilationInfoWithZone* info) { 57 static void Parse(Handle<JSFunction> function, CompilationInfoWithZone* info) {
57 CHECK(Parser::Parse(info)); 58 CHECK(Parser::Parse(info));
58 CHECK(Rewriter::Rewrite(info)); 59 CHECK(Rewriter::Rewrite(info));
59 CHECK(Scope::Analyze(info)); 60 CHECK(Scope::Analyze(info));
61 CHECK(AstNumbering::Renumber(info));
60 CHECK(Compiler::EnsureDeoptimizationSupport(info)); 62 CHECK(Compiler::EnsureDeoptimizationSupport(info));
61 } 63 }
62 64
63 65
64 // A facade on a JSFunction's graph to facilitate inlining. It assumes the 66 // A facade on a JSFunction's graph to facilitate inlining. It assumes the
65 // that the function graph has only one return statement, and provides 67 // that the function graph has only one return statement, and provides
66 // {UnifyReturn} to convert a function graph to that end. 68 // {UnifyReturn} to convert a function graph to that end.
67 class Inlinee { 69 class Inlinee {
68 public: 70 public:
69 Inlinee(Node* start, Node* end) : start_(start), end_(end) {} 71 Inlinee(Node* start, Node* end) : start_(start), end_(end) {}
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 AddClosureToFrameState(node, function); 439 AddClosureToFrameState(node, function);
438 NodeProperties::ReplaceFrameStateInput(node, outer_frame_state); 440 NodeProperties::ReplaceFrameStateInput(node, outer_frame_state);
439 } 441 }
440 } 442 }
441 443
442 inlinee.InlineAtCall(jsgraph_, call_node); 444 inlinee.InlineAtCall(jsgraph_, call_node);
443 } 445 }
444 } 446 }
445 } 447 }
446 } // namespace v8::internal::compiler 448 } // namespace v8::internal::compiler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698