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

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

Issue 2858933004: [turbofan] Lower monomorphic loads during graph building.
Patch Set: Prune headers Created 3 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/bytecode-graph-builder.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/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 26 matching lines...) Expand all
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); 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 Handle<Context> native_context() const;
47 48
48 Zone* const local_zone_; 49 Zone* const local_zone_;
49 CompilationInfo* info_; 50 CompilationInfo* info_;
50 JSGraph* const jsgraph_; 51 JSGraph* const jsgraph_;
51 SourcePositionTable* const source_positions_; 52 SourcePositionTable* const source_positions_;
52 53
53 bool DetermineCallTarget(Node* node, 54 bool DetermineCallTarget(Node* node,
54 Handle<SharedFunctionInfo>& shared_info_out); 55 Handle<SharedFunctionInfo>& shared_info_out);
55 void DetermineCallContext(Node* node, Node*& context_out, 56 void DetermineCallContext(Node* node, Node*& context_out,
56 Handle<FeedbackVector>& feedback_vector_out); 57 Handle<FeedbackVector>& feedback_vector_out);
57 58
58 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state, 59 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state,
59 int parameter_count, BailoutId bailout_id, 60 int parameter_count, BailoutId bailout_id,
60 FrameStateType frame_state_type, 61 FrameStateType frame_state_type,
61 Handle<SharedFunctionInfo> shared); 62 Handle<SharedFunctionInfo> shared);
62 63
63 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state); 64 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state);
64 65
65 Reduction InlineCall(Node* call, Node* new_target, Node* context, 66 Reduction InlineCall(Node* call, Node* new_target, Node* context,
66 Node* frame_state, Node* start, Node* end, 67 Node* frame_state, Node* start, Node* end,
67 Node* exception_target, 68 Node* exception_target,
68 const NodeVector& uncaught_subcalls); 69 const NodeVector& uncaught_subcalls);
69 }; 70 };
70 71
71 } // namespace compiler 72 } // namespace compiler
72 } // namespace internal 73 } // namespace internal
73 } // namespace v8 74 } // namespace v8
74 75
75 #endif // V8_COMPILER_JS_INLINING_H_ 76 #endif // V8_COMPILER_JS_INLINING_H_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698