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

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

Issue 2135973003: [interpreter] Widen set of applied binary op reductions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-checkpoint-typed-lowering-6
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 | « 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"
(...skipping 17 matching lines...) Expand all
28 class SimplifiedOperatorBuilder; 28 class SimplifiedOperatorBuilder;
29 29
30 30
31 // Lowers JS-level operators to simplified operators based on types. 31 // Lowers JS-level operators to simplified operators based on types.
32 class JSTypedLowering final : public AdvancedReducer { 32 class JSTypedLowering final : public AdvancedReducer {
33 public: 33 public:
34 // Flags that control the mode of operation. 34 // Flags that control the mode of operation.
35 enum Flag { 35 enum Flag {
36 kNoFlags = 0u, 36 kNoFlags = 0u,
37 kDeoptimizationEnabled = 1u << 0, 37 kDeoptimizationEnabled = 1u << 0,
38 kDisableBinaryOpReduction = 1u << 1, 38 kDisableIntegerBinaryOpReduction = 1u << 1,
39 kTypeFeedbackEnabled = 1u << 2, 39 kTypeFeedbackEnabled = 1u << 2,
40 }; 40 };
41 typedef base::Flags<Flag> Flags; 41 typedef base::Flags<Flag> Flags;
42 42
43 JSTypedLowering(Editor* editor, CompilationDependencies* dependencies, 43 JSTypedLowering(Editor* editor, CompilationDependencies* dependencies,
44 Flags flags, JSGraph* jsgraph, Zone* zone); 44 Flags flags, JSGraph* jsgraph, Zone* zone);
45 ~JSTypedLowering() final {} 45 ~JSTypedLowering() final {}
46 46
47 Reduction Reduce(Node* node) final; 47 Reduction Reduce(Node* node) final;
48 48
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 TypeCache const& type_cache_; 113 TypeCache const& type_cache_;
114 }; 114 };
115 115
116 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) 116 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags)
117 117
118 } // namespace compiler 118 } // namespace compiler
119 } // namespace internal 119 } // namespace internal
120 } // namespace v8 120 } // namespace v8
121 121
122 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ 122 #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