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

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

Issue 2626783003: [turbofan] Enable inlining based on SharedFunctionInfo. (Closed)
Patch Set: Rebased. Created 3 years, 10 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 | « no previous file | src/compiler/js-inlining.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 #ifndef V8_COMPILER_JS_INLINING_H_ 5 #ifndef V8_COMPILER_JS_INLINING_H_
6 #define V8_COMPILER_JS_INLINING_H_ 6 #define V8_COMPILER_JS_INLINING_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 10
(...skipping 18 matching lines...) Expand all
29 local_zone_(local_zone), 29 local_zone_(local_zone),
30 info_(info), 30 info_(info),
31 jsgraph_(jsgraph), 31 jsgraph_(jsgraph),
32 source_positions_(source_positions) {} 32 source_positions_(source_positions) {}
33 33
34 // Reducer interface, eagerly inlines everything. 34 // Reducer interface, eagerly inlines everything.
35 Reduction Reduce(Node* node) final; 35 Reduction Reduce(Node* node) final;
36 36
37 // Can be used by inlining heuristics or by testing code directly, without 37 // Can be used by inlining heuristics or by testing code directly, without
38 // using the above generic reducer interface of the inlining machinery. 38 // using the above generic reducer interface of the inlining machinery.
39 Reduction ReduceJSCall(Node* node, Handle<JSFunction> function); 39 Reduction ReduceJSCall(Node* node);
40 40
41 private: 41 private:
42 CommonOperatorBuilder* common() const; 42 CommonOperatorBuilder* common() const;
43 JSOperatorBuilder* javascript() const; 43 JSOperatorBuilder* javascript() const;
44 SimplifiedOperatorBuilder* simplified() const; 44 SimplifiedOperatorBuilder* simplified() const;
45 Graph* graph() const; 45 Graph* graph() const;
46 JSGraph* jsgraph() const { return jsgraph_; } 46 JSGraph* jsgraph() const { return jsgraph_; }
47 47
48 Zone* const local_zone_; 48 Zone* const local_zone_;
49 CompilationInfo* info_; 49 CompilationInfo* info_;
50 JSGraph* const jsgraph_; 50 JSGraph* const jsgraph_;
51 SourcePositionTable* const source_positions_; 51 SourcePositionTable* const source_positions_;
52 52
53 bool DetermineCallTarget(Node* node,
54 Handle<SharedFunctionInfo>& shared_info_out);
55 void DetermineCallContext(Node* node, Node*& context_out,
56 Handle<TypeFeedbackVector>& feedback_vector_out);
57
53 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state, 58 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state,
54 int parameter_count, 59 int parameter_count,
55 FrameStateType frame_state_type, 60 FrameStateType frame_state_type,
56 Handle<SharedFunctionInfo> shared); 61 Handle<SharedFunctionInfo> shared);
57 62
58 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state); 63 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state);
59 64
60 Reduction InlineCall(Node* call, Node* new_target, Node* context, 65 Reduction InlineCall(Node* call, Node* new_target, Node* context,
61 Node* frame_state, Node* start, Node* end, 66 Node* frame_state, Node* start, Node* end,
62 Node* exception_target, 67 Node* exception_target,
63 const NodeVector& uncaught_subcalls); 68 const NodeVector& uncaught_subcalls);
64 }; 69 };
65 70
66 } // namespace compiler 71 } // namespace compiler
67 } // namespace internal 72 } // namespace internal
68 } // namespace v8 73 } // namespace v8
69 74
70 #endif // V8_COMPILER_JS_INLINING_H_ 75 #endif // V8_COMPILER_JS_INLINING_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698