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

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

Issue 2819653002: 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
50 Type* TypeTypeGuard(const Operator* sigma_op, Type* input); 54 Type* TypeTypeGuard(const Operator* sigma_op, Type* input);
51 55
52 enum ComparisonOutcomeFlags { 56 enum ComparisonOutcomeFlags {
53 kComparisonTrue = 1, 57 kComparisonTrue = 1,
54 kComparisonFalse = 2, 58 kComparisonFalse = 2,
55 kComparisonUndefined = 4 59 kComparisonUndefined = 4
56 }; 60 };
57 61
58 Type* singleton_false() const { return singleton_false_; } 62 Type* singleton_false() const { return singleton_false_; }
59 Type* singleton_true() const { return singleton_true_; } 63 Type* singleton_true() const { return singleton_true_; }
(...skipping 25 matching lines...) Expand all
85 Type* singleton_the_hole_; 89 Type* singleton_the_hole_;
86 Type* signed32ish_; 90 Type* signed32ish_;
87 Type* unsigned32ish_; 91 Type* unsigned32ish_;
88 }; 92 };
89 93
90 } // namespace compiler 94 } // namespace compiler
91 } // namespace internal 95 } // namespace internal
92 } // namespace v8 96 } // namespace v8
93 97
94 #endif // V8_COMPILER_OPERATION_TYPER_H_ 98 #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