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

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

Powered by Google App Engine
This is Rietveld 408576698