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

Side by Side Diff: src/compiler/simd-scalar-lowering.h

Issue 2490973002: [turbofan] Fix -Wsign-compare warnings. (Closed)
Patch Set: fix dcheck Created 4 years, 1 month 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/int64-lowering.cc ('k') | src/compiler/simd-scalar-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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_SIMD_SCALAR_LOWERING_H_ 5 #ifndef V8_COMPILER_SIMD_SCALAR_LOWERING_H_
6 #define V8_COMPILER_SIMD_SCALAR_LOWERING_H_ 6 #define V8_COMPILER_SIMD_SCALAR_LOWERING_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph.h" 9 #include "src/compiler/graph.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 12 matching lines...) Expand all
23 23
24 void LowerGraph(); 24 void LowerGraph();
25 25
26 int GetParameterCountAfterLowering(); 26 int GetParameterCountAfterLowering();
27 27
28 private: 28 private:
29 enum class State : uint8_t { kUnvisited, kOnStack, kVisited }; 29 enum class State : uint8_t { kUnvisited, kOnStack, kVisited };
30 30
31 enum class SimdType : uint8_t { kInt32, kFloat32 }; 31 enum class SimdType : uint8_t { kInt32, kFloat32 };
32 32
33 static const size_t kMaxLanes = 4; 33 static const int kMaxLanes = 4;
34 34
35 struct Replacement { 35 struct Replacement {
36 Node* node[kMaxLanes]; 36 Node* node[kMaxLanes];
37 SimdType type; // represents what input type is expected 37 SimdType type; // represents what input type is expected
38 }; 38 };
39 39
40 Zone* zone() const { return zone_; } 40 Zone* zone() const { return zone_; }
41 Graph* graph() const { return graph_; } 41 Graph* graph() const { return graph_; }
42 MachineOperatorBuilder* machine() const { return machine_; } 42 MachineOperatorBuilder* machine() const { return machine_; }
43 CommonOperatorBuilder* common() const { return common_; } 43 CommonOperatorBuilder* common() const { return common_; }
(...skipping 25 matching lines...) Expand all
69 Signature<MachineRepresentation>* signature_; 69 Signature<MachineRepresentation>* signature_;
70 Node* placeholder_; 70 Node* placeholder_;
71 int parameter_count_after_lowering_; 71 int parameter_count_after_lowering_;
72 }; 72 };
73 73
74 } // namespace compiler 74 } // namespace compiler
75 } // namespace internal 75 } // namespace internal
76 } // namespace v8 76 } // namespace v8
77 77
78 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_ 78 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/int64-lowering.cc ('k') | src/compiler/simd-scalar-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698