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

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

Issue 2006353003: [turbofan] Avoid unnecessary copying of nodes during inlining. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Don't use one EmptyFrameState cross functions, that gets mutated during inlining. Created 4 years, 6 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/js-graph.cc ('k') | 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/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/graph-reducer.h" 9 #include "src/compiler/graph-reducer.h"
10 10
(...skipping 18 matching lines...) Expand all
29 jsgraph_(jsgraph) {} 29 jsgraph_(jsgraph) {}
30 30
31 // Reducer interface, eagerly inlines everything. 31 // Reducer interface, eagerly inlines everything.
32 Reduction Reduce(Node* node) final; 32 Reduction Reduce(Node* node) final;
33 33
34 // Can be used by inlining heuristics or by testing code directly, without 34 // Can be used by inlining heuristics or by testing code directly, without
35 // using the above generic reducer interface of the inlining machinery. 35 // using the above generic reducer interface of the inlining machinery.
36 Reduction ReduceJSCall(Node* node, Handle<JSFunction> function); 36 Reduction ReduceJSCall(Node* node, Handle<JSFunction> function);
37 37
38 private: 38 private:
39 Zone* local_zone_; 39 Graph* graph() const;
40 JSGraph* jsgraph() const { return jsgraph_; }
41
42 Zone* const local_zone_;
40 CompilationInfo* info_; 43 CompilationInfo* info_;
41 JSGraph* jsgraph_; 44 JSGraph* const jsgraph_;
42 45
43 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state, 46 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state,
44 int parameter_count, 47 int parameter_count,
45 FrameStateType frame_state_type, 48 FrameStateType frame_state_type,
46 Handle<SharedFunctionInfo> shared); 49 Handle<SharedFunctionInfo> shared);
47 50
48 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state); 51 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state);
49 52
50 Reduction InlineCall(Node* call, Node* new_target, Node* context, 53 Reduction InlineCall(Node* call, Node* new_target, Node* context,
51 Node* frame_state, Node* start, Node* end); 54 Node* frame_state, Node* start, Node* end);
52 }; 55 };
53 56
54 } // namespace compiler 57 } // namespace compiler
55 } // namespace internal 58 } // namespace internal
56 } // namespace v8 59 } // namespace v8
57 60
58 #endif // V8_COMPILER_JS_INLINING_H_ 61 #endif // V8_COMPILER_JS_INLINING_H_
OLDNEW
« no previous file with comments | « src/compiler/js-graph.cc ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698