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

Side by Side Diff: src/compiler/tail-call-optimization.h

Issue 2416243002: Make unittests work in component build (Closed)
Patch Set: updates Created 4 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
« no previous file with comments | « src/compiler/state-values-utils.h ('k') | src/compiler/typed-optimization.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_COMPILER_TAIL_CALL_OPTIMIZATION_H_ 5 #ifndef V8_COMPILER_TAIL_CALL_OPTIMIZATION_H_
6 #define V8_COMPILER_TAIL_CALL_OPTIMIZATION_H_ 6 #define V8_COMPILER_TAIL_CALL_OPTIMIZATION_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 #include "src/globals.h"
9 10
10 namespace v8 { 11 namespace v8 {
11 namespace internal { 12 namespace internal {
12 namespace compiler { 13 namespace compiler {
13 14
14 // Forward declarations. 15 // Forward declarations.
15 class CommonOperatorBuilder; 16 class CommonOperatorBuilder;
16 class Graph; 17 class Graph;
17 18
18 19
19 // Performs tail call optimization by replacing certain combinations of Return 20 // Performs tail call optimization by replacing certain combinations of Return
20 // and Call nodes with a single TailCall. 21 // and Call nodes with a single TailCall.
21 class TailCallOptimization final : public Reducer { 22 class V8_EXPORT_PRIVATE TailCallOptimization final : public Reducer {
22 public: 23 public:
23 TailCallOptimization(CommonOperatorBuilder* common, Graph* graph) 24 TailCallOptimization(CommonOperatorBuilder* common, Graph* graph)
24 : common_(common), graph_(graph) {} 25 : common_(common), graph_(graph) {}
25 26
26 Reduction Reduce(Node* node) final; 27 Reduction Reduce(Node* node) final;
27 28
28 private: 29 private:
29 CommonOperatorBuilder* common() const { return common_; } 30 CommonOperatorBuilder* common() const { return common_; }
30 Graph* graph() const { return graph_; } 31 Graph* graph() const { return graph_; }
31 32
32 CommonOperatorBuilder* const common_; 33 CommonOperatorBuilder* const common_;
33 Graph* const graph_; 34 Graph* const graph_;
34 }; 35 };
35 36
36 } // namespace compiler 37 } // namespace compiler
37 } // namespace internal 38 } // namespace internal
38 } // namespace v8 39 } // namespace v8
39 40
40 #endif // V8_COMPILER_TAIL_CALL_OPTIMIZATION_H_ 41 #endif // V8_COMPILER_TAIL_CALL_OPTIMIZATION_H_
OLDNEW
« no previous file with comments | « src/compiler/state-values-utils.h ('k') | src/compiler/typed-optimization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698