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

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

Issue 2820603002: Revert of Merged: Squashed multiple commits. (Closed)
Patch Set: Created 3 years, 8 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-native-context-specialization.cc ('k') | 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 29 matching lines...) Expand all
40 #define DECLARE_METHOD(Name) Type* Name(Type* type); 40 #define DECLARE_METHOD(Name) Type* Name(Type* type);
41 SIMPLIFIED_NUMBER_UNOP_LIST(DECLARE_METHOD) 41 SIMPLIFIED_NUMBER_UNOP_LIST(DECLARE_METHOD)
42 #undef DECLARE_METHOD 42 #undef DECLARE_METHOD
43 43
44 // Number binary operators. 44 // Number binary operators.
45 #define DECLARE_METHOD(Name) Type* Name(Type* lhs, Type* rhs); 45 #define DECLARE_METHOD(Name) Type* Name(Type* lhs, Type* rhs);
46 SIMPLIFIED_NUMBER_BINOP_LIST(DECLARE_METHOD) 46 SIMPLIFIED_NUMBER_BINOP_LIST(DECLARE_METHOD)
47 SIMPLIFIED_SPECULATIVE_NUMBER_BINOP_LIST(DECLARE_METHOD) 47 SIMPLIFIED_SPECULATIVE_NUMBER_BINOP_LIST(DECLARE_METHOD)
48 #undef DECLARE_METHOD 48 #undef DECLARE_METHOD
49 49
50 // Check operators.
51 Type* CheckFloat64Hole(Type* type);
52 Type* CheckNumber(Type* type);
53
54 Type* TypeTypeGuard(const Operator* sigma_op, Type* input); 50 Type* TypeTypeGuard(const Operator* sigma_op, Type* input);
55 51
56 enum ComparisonOutcomeFlags { 52 enum ComparisonOutcomeFlags {
57 kComparisonTrue = 1, 53 kComparisonTrue = 1,
58 kComparisonFalse = 2, 54 kComparisonFalse = 2,
59 kComparisonUndefined = 4 55 kComparisonUndefined = 4
60 }; 56 };
61 57
62 Type* singleton_false() const { return singleton_false_; } 58 Type* singleton_false() const { return singleton_false_; }
63 Type* singleton_true() const { return singleton_true_; } 59 Type* singleton_true() const { return singleton_true_; }
(...skipping 25 matching lines...) Expand all
89 Type* singleton_the_hole_; 85 Type* singleton_the_hole_;
90 Type* signed32ish_; 86 Type* signed32ish_;
91 Type* unsigned32ish_; 87 Type* unsigned32ish_;
92 }; 88 };
93 89
94 } // namespace compiler 90 } // namespace compiler
95 } // namespace internal 91 } // namespace internal
96 } // namespace v8 92 } // namespace v8
97 93
98 #endif // V8_COMPILER_OPERATION_TYPER_H_ 94 #endif // V8_COMPILER_OPERATION_TYPER_H_
OLDNEW
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/operation-typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698