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

Side by Side Diff: src/compiler/operation-typer.h

Issue 2202413002: [turbofan] Improve typing rule for modulus. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Some cleanup plus use type feedback properly. 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/operation-typer.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_OPERATION_TYPER_H_ 5 #ifndef V8_COMPILER_OPERATION_TYPER_H_
6 #define V8_COMPILER_OPERATION_TYPER_H_ 6 #define V8_COMPILER_OPERATION_TYPER_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 ComparisonOutcome Invert(ComparisonOutcome); 61 ComparisonOutcome Invert(ComparisonOutcome);
62 Type* Invert(Type*); 62 Type* Invert(Type*);
63 Type* FalsifyUndefined(ComparisonOutcome); 63 Type* FalsifyUndefined(ComparisonOutcome);
64 64
65 Type* Rangify(Type*); 65 Type* Rangify(Type*);
66 Type* AddRanger(double lhs_min, double lhs_max, double rhs_min, 66 Type* AddRanger(double lhs_min, double lhs_max, double rhs_min,
67 double rhs_max); 67 double rhs_max);
68 Type* SubtractRanger(RangeType* lhs, RangeType* rhs); 68 Type* SubtractRanger(RangeType* lhs, RangeType* rhs);
69 Type* MultiplyRanger(Type* lhs, Type* rhs); 69 Type* MultiplyRanger(Type* lhs, Type* rhs);
70 Type* ModulusRanger(RangeType* lhs, RangeType* rhs);
71 70
72 Zone* zone() { return zone_; } 71 Zone* zone() { return zone_; }
73 72
74 Zone* zone_; 73 Zone* zone_;
75 TypeCache const& cache_; 74 TypeCache const& cache_;
76 75
77 Type* singleton_false_; 76 Type* singleton_false_;
78 Type* singleton_true_; 77 Type* singleton_true_;
79 Type* singleton_the_hole_; 78 Type* singleton_the_hole_;
80 }; 79 };
81 80
82 } // namespace compiler 81 } // namespace compiler
83 } // namespace internal 82 } // namespace internal
84 } // namespace v8 83 } // namespace v8
85 84
86 #endif // V8_COMPILER_OPERATION_TYPER_H_ 85 #endif // V8_COMPILER_OPERATION_TYPER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/operation-typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698