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

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

Issue 2087693003: [turbofan] Sync typing of addition in operation typer with static typer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 Type* singleton_the_hole() { return singleton_the_hole_; } 54 Type* singleton_the_hole() { return singleton_the_hole_; }
55 55
56 private: 56 private:
57 typedef base::Flags<ComparisonOutcomeFlags> ComparisonOutcome; 57 typedef base::Flags<ComparisonOutcomeFlags> ComparisonOutcome;
58 58
59 ComparisonOutcome Invert(ComparisonOutcome); 59 ComparisonOutcome Invert(ComparisonOutcome);
60 Type* Invert(Type*); 60 Type* Invert(Type*);
61 Type* FalsifyUndefined(ComparisonOutcome); 61 Type* FalsifyUndefined(ComparisonOutcome);
62 62
63 Type* Rangify(Type*); 63 Type* Rangify(Type*);
64 Type* AddRanger(RangeType* lhs, RangeType* rhs); 64 Type* AddRanger(double lhs_min, double lhs_max, double rhs_min,
65 double rhs_max);
65 Type* SubtractRanger(RangeType* lhs, RangeType* rhs); 66 Type* SubtractRanger(RangeType* lhs, RangeType* rhs);
66 Type* MultiplyRanger(Type* lhs, Type* rhs); 67 Type* MultiplyRanger(Type* lhs, Type* rhs);
67 Type* ModulusRanger(RangeType* lhs, RangeType* rhs); 68 Type* ModulusRanger(RangeType* lhs, RangeType* rhs);
68 69
69 Zone* zone() { return zone_; } 70 Zone* zone() { return zone_; }
70 71
71 Zone* zone_; 72 Zone* zone_;
72 TypeCache const& cache_; 73 TypeCache const& cache_;
73 74
74 Type* singleton_false_; 75 Type* singleton_false_;
75 Type* singleton_true_; 76 Type* singleton_true_;
76 Type* singleton_the_hole_; 77 Type* singleton_the_hole_;
77 }; 78 };
78 79
79 } // namespace compiler 80 } // namespace compiler
80 } // namespace internal 81 } // namespace internal
81 } // namespace v8 82 } // namespace v8
82 83
83 #endif // V8_COMPILER_OPERATION_TYPER_H_ 84 #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