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

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

Issue 2271973003: [turbofan] Use ObjectIsReceiver directly for inlining. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/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 20 matching lines...) Expand all
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 CommonOperatorBuilder* common() const; 39 CommonOperatorBuilder* common() const;
40 JSOperatorBuilder* javascript() const; 40 JSOperatorBuilder* javascript() const;
41 SimplifiedOperatorBuilder* simplified() const;
41 Graph* graph() const; 42 Graph* graph() const;
42 JSGraph* jsgraph() const { return jsgraph_; } 43 JSGraph* jsgraph() const { return jsgraph_; }
43 44
44 Zone* const local_zone_; 45 Zone* const local_zone_;
45 CompilationInfo* info_; 46 CompilationInfo* info_;
46 JSGraph* const jsgraph_; 47 JSGraph* const jsgraph_;
47 48
48 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state, 49 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state,
49 int parameter_count, 50 int parameter_count,
50 FrameStateType frame_state_type, 51 FrameStateType frame_state_type,
51 Handle<SharedFunctionInfo> shared); 52 Handle<SharedFunctionInfo> shared);
52 53
53 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state); 54 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state);
54 55
55 Reduction InlineCall(Node* call, Node* new_target, Node* context, 56 Reduction InlineCall(Node* call, Node* new_target, Node* context,
56 Node* frame_state, Node* start, Node* end); 57 Node* frame_state, Node* start, Node* end);
57 }; 58 };
58 59
59 } // namespace compiler 60 } // namespace compiler
60 } // namespace internal 61 } // namespace internal
61 } // namespace v8 62 } // namespace v8
62 63
63 #endif // V8_COMPILER_JS_INLINING_H_ 64 #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