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

Side by Side Diff: src/compiler/js-call-reducer.h

Issue 2115513002: [turbofan] Introduce CheckIf simplified operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/effect-control-linearizer.cc ('k') | src/compiler/js-call-reducer.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 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_JS_CALL_REDUCER_H_ 5 #ifndef V8_COMPILER_JS_CALL_REDUCER_H_
6 #define V8_COMPILER_JS_CALL_REDUCER_H_ 6 #define V8_COMPILER_JS_CALL_REDUCER_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/graph-reducer.h" 9 #include "src/compiler/graph-reducer.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 // Forward declarations. 15 // Forward declarations.
16 class CommonOperatorBuilder; 16 class CommonOperatorBuilder;
17 class JSGraph; 17 class JSGraph;
18 class JSOperatorBuilder; 18 class JSOperatorBuilder;
19 19 class SimplifiedOperatorBuilder;
20 20
21 // Performs strength reduction on {JSCallConstruct} and {JSCallFunction} nodes, 21 // Performs strength reduction on {JSCallConstruct} and {JSCallFunction} nodes,
22 // which might allow inlining or other optimizations to be performed afterwards. 22 // which might allow inlining or other optimizations to be performed afterwards.
23 class JSCallReducer final : public Reducer { 23 class JSCallReducer final : public Reducer {
24 public: 24 public:
25 // Flags that control the mode of operation. 25 // Flags that control the mode of operation.
26 enum Flag { 26 enum Flag {
27 kNoFlags = 0u, 27 kNoFlags = 0u,
28 kDeoptimizationEnabled = 1u << 0, 28 kDeoptimizationEnabled = 1u << 0,
29 }; 29 };
(...skipping 15 matching lines...) Expand all
45 45
46 MaybeHandle<Context> GetNativeContext(Node* node); 46 MaybeHandle<Context> GetNativeContext(Node* node);
47 47
48 Graph* graph() const; 48 Graph* graph() const;
49 Flags flags() const { return flags_; } 49 Flags flags() const { return flags_; }
50 JSGraph* jsgraph() const { return jsgraph_; } 50 JSGraph* jsgraph() const { return jsgraph_; }
51 Isolate* isolate() const; 51 Isolate* isolate() const;
52 MaybeHandle<Context> native_context() const { return native_context_; } 52 MaybeHandle<Context> native_context() const { return native_context_; }
53 CommonOperatorBuilder* common() const; 53 CommonOperatorBuilder* common() const;
54 JSOperatorBuilder* javascript() const; 54 JSOperatorBuilder* javascript() const;
55 SimplifiedOperatorBuilder* simplified() const;
55 56
56 JSGraph* const jsgraph_; 57 JSGraph* const jsgraph_;
57 Flags const flags_; 58 Flags const flags_;
58 MaybeHandle<Context> const native_context_; 59 MaybeHandle<Context> const native_context_;
59 }; 60 };
60 61
61 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags) 62 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags)
62 63
63 } // namespace compiler 64 } // namespace compiler
64 } // namespace internal 65 } // namespace internal
65 } // namespace v8 66 } // namespace v8
66 67
67 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ 68 #endif // V8_COMPILER_JS_CALL_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-call-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698