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

Side by Side Diff: src/compiler/js-typed-lowering.h

Issue 2220573002: [turbofan] Add NumberOperationHint for speculative number operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update comment. 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-typed-lowering.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_TYPED_LOWERING_H_ 5 #ifndef V8_COMPILER_JS_TYPED_LOWERING_H_
6 #define V8_COMPILER_JS_TYPED_LOWERING_H_ 6 #define V8_COMPILER_JS_TYPED_LOWERING_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 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 14
15 // Forward declarations. 15 // Forward declarations.
16 class CompilationDependencies; 16 class CompilationDependencies;
17 class Factory; 17 class Factory;
18 class TypeCache; 18 class TypeCache;
19 19
20 20
21 namespace compiler { 21 namespace compiler {
22 22
23 // Forward declarations. 23 // Forward declarations.
24 class CommonOperatorBuilder; 24 class CommonOperatorBuilder;
25 class JSGraph; 25 class JSGraph;
26 class JSOperatorBuilder; 26 class JSOperatorBuilder;
27 class MachineOperatorBuilder;
27 class SimplifiedOperatorBuilder; 28 class SimplifiedOperatorBuilder;
28 29
29 30
30 // Lowers JS-level operators to simplified operators based on types. 31 // Lowers JS-level operators to simplified operators based on types.
31 class JSTypedLowering final : public AdvancedReducer { 32 class JSTypedLowering final : public AdvancedReducer {
32 public: 33 public:
33 // Flags that control the mode of operation. 34 // Flags that control the mode of operation.
34 enum Flag { 35 enum Flag {
35 kNoFlags = 0u, 36 kNoFlags = 0u,
36 kDeoptimizationEnabled = 1u << 0, 37 kDeoptimizationEnabled = 1u << 0,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 Reduction ReduceJSGeneratorRestoreContinuation(Node* node); 79 Reduction ReduceJSGeneratorRestoreContinuation(Node* node);
79 Reduction ReduceJSGeneratorRestoreRegister(Node* node); 80 Reduction ReduceJSGeneratorRestoreRegister(Node* node);
80 Reduction ReduceCheckMaps(Node* node); 81 Reduction ReduceCheckMaps(Node* node);
81 Reduction ReduceCheckString(Node* node); 82 Reduction ReduceCheckString(Node* node);
82 Reduction ReduceLoadField(Node* node); 83 Reduction ReduceLoadField(Node* node);
83 Reduction ReduceNumberRoundop(Node* node); 84 Reduction ReduceNumberRoundop(Node* node);
84 Reduction ReduceSelect(Node* node); 85 Reduction ReduceSelect(Node* node);
85 Reduction ReduceJSSubtract(Node* node); 86 Reduction ReduceJSSubtract(Node* node);
86 Reduction ReduceJSDivide(Node* node); 87 Reduction ReduceJSDivide(Node* node);
87 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); 88 Reduction ReduceInt32Binop(Node* node, const Operator* intOp);
88 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness, 89 Reduction ReduceUI32Shift(Node* node, Signedness signedness,
89 const Operator* shift_op); 90 const Operator* shift_op);
90 91
91 Factory* factory() const; 92 Factory* factory() const;
92 Graph* graph() const; 93 Graph* graph() const;
93 JSGraph* jsgraph() const { return jsgraph_; } 94 JSGraph* jsgraph() const { return jsgraph_; }
94 Isolate* isolate() const; 95 Isolate* isolate() const;
95 JSOperatorBuilder* javascript() const; 96 JSOperatorBuilder* javascript() const;
96 CommonOperatorBuilder* common() const; 97 CommonOperatorBuilder* common() const;
97 SimplifiedOperatorBuilder* simplified() const; 98 SimplifiedOperatorBuilder* simplified() const;
98 MachineOperatorBuilder* machine() const; 99 MachineOperatorBuilder* machine() const;
(...skipping 10 matching lines...) Expand all
109 TypeCache const& type_cache_; 110 TypeCache const& type_cache_;
110 }; 111 };
111 112
112 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) 113 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags)
113 114
114 } // namespace compiler 115 } // namespace compiler
115 } // namespace internal 116 } // namespace internal
116 } // namespace v8 117 } // namespace v8
117 118
118 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ 119 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698