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

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

Issue 1410003002: [turbofan] Remove locally constructed simplified builders. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/js-type-feedback-lowering.cc ('k') | 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/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 #include "src/compiler/simplified-operator.h"
11 10
12 namespace v8 { 11 namespace v8 {
13 namespace internal { 12 namespace internal {
14 13
15 // Forward declarations. 14 // Forward declarations.
16 class Factory; 15 class Factory;
17 16
18 17
19 namespace compiler { 18 namespace compiler {
20 19
21 // Forward declarations. 20 // Forward declarations.
22 class CommonOperatorBuilder; 21 class CommonOperatorBuilder;
23 class JSGraph; 22 class JSGraph;
24 class JSOperatorBuilder; 23 class JSOperatorBuilder;
25 class MachineOperatorBuilder; 24 class MachineOperatorBuilder;
25 class SimplifiedOperatorBuilder;
26 26
27 27
28 // Lowers JS-level operators to simplified operators based on types. 28 // Lowers JS-level operators to simplified operators based on types.
29 class JSTypedLowering final : public AdvancedReducer { 29 class JSTypedLowering final : public AdvancedReducer {
30 public: 30 public:
31 JSTypedLowering(Editor* editor, JSGraph* jsgraph, Zone* zone); 31 JSTypedLowering(Editor* editor, JSGraph* jsgraph, Zone* zone);
32 ~JSTypedLowering() final {} 32 ~JSTypedLowering() final {}
33 33
34 Reduction Reduce(Node* node) final; 34 Reduction Reduce(Node* node) final;
35 35
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const Operator* shift_op); 74 const Operator* shift_op);
75 75
76 Node* Word32Shl(Node* const lhs, int32_t const rhs); 76 Node* Word32Shl(Node* const lhs, int32_t const rhs);
77 77
78 Factory* factory() const; 78 Factory* factory() const;
79 Graph* graph() const; 79 Graph* graph() const;
80 JSGraph* jsgraph() const { return jsgraph_; } 80 JSGraph* jsgraph() const { return jsgraph_; }
81 Isolate* isolate() const; 81 Isolate* isolate() const;
82 JSOperatorBuilder* javascript() const; 82 JSOperatorBuilder* javascript() const;
83 CommonOperatorBuilder* common() const; 83 CommonOperatorBuilder* common() const;
84 SimplifiedOperatorBuilder* simplified() { return &simplified_; } 84 SimplifiedOperatorBuilder* simplified() const;
85 MachineOperatorBuilder* machine() const; 85 MachineOperatorBuilder* machine() const;
86 86
87 // Limits up to which context allocations are inlined. 87 // Limits up to which context allocations are inlined.
88 static const int kFunctionContextAllocationLimit = 16; 88 static const int kFunctionContextAllocationLimit = 16;
89 static const int kBlockContextAllocationLimit = 16; 89 static const int kBlockContextAllocationLimit = 16;
90 90
91 JSGraph* jsgraph_; 91 JSGraph* jsgraph_;
92 SimplifiedOperatorBuilder simplified_;
93 Type* shifted_int32_ranges_[4]; 92 Type* shifted_int32_ranges_[4];
94 }; 93 };
95 94
96 } // namespace compiler 95 } // namespace compiler
97 } // namespace internal 96 } // namespace internal
98 } // namespace v8 97 } // namespace v8
99 98
100 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ 99 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/js-type-feedback-lowering.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698