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

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

Issue 2802113003: [turbofan] Introduce a SpeculativeToNumber operator. (Closed)
Patch Set: Paint it green! 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/opcodes.h ('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 21 matching lines...) Expand all
32 32
33 Type* ToPrimitive(Type* type); 33 Type* ToPrimitive(Type* type);
34 34
35 // Helpers for number operation typing. 35 // Helpers for number operation typing.
36 Type* ToNumber(Type* type); 36 Type* ToNumber(Type* type);
37 Type* WeakenRange(Type* current_range, Type* previous_range); 37 Type* WeakenRange(Type* current_range, Type* previous_range);
38 38
39 // Number unary operators. 39 // Number unary operators.
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 SIMPLIFIED_SPECULATIVE_NUMBER_UNOP_LIST(DECLARE_METHOD)
42 #undef DECLARE_METHOD 43 #undef DECLARE_METHOD
43 44
44 // Number binary operators. 45 // Number binary operators.
45 #define DECLARE_METHOD(Name) Type* Name(Type* lhs, Type* rhs); 46 #define DECLARE_METHOD(Name) Type* Name(Type* lhs, Type* rhs);
46 SIMPLIFIED_NUMBER_BINOP_LIST(DECLARE_METHOD) 47 SIMPLIFIED_NUMBER_BINOP_LIST(DECLARE_METHOD)
47 SIMPLIFIED_SPECULATIVE_NUMBER_BINOP_LIST(DECLARE_METHOD) 48 SIMPLIFIED_SPECULATIVE_NUMBER_BINOP_LIST(DECLARE_METHOD)
48 #undef DECLARE_METHOD 49 #undef DECLARE_METHOD
49 50
50 Type* TypeTypeGuard(const Operator* sigma_op, Type* input); 51 Type* TypeTypeGuard(const Operator* sigma_op, Type* input);
51 52
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 Type* singleton_the_hole_; 86 Type* singleton_the_hole_;
86 Type* signed32ish_; 87 Type* signed32ish_;
87 Type* unsigned32ish_; 88 Type* unsigned32ish_;
88 }; 89 };
89 90
90 } // namespace compiler 91 } // namespace compiler
91 } // namespace internal 92 } // namespace internal
92 } // namespace v8 93 } // namespace v8
93 94
94 #endif // V8_COMPILER_OPERATION_TYPER_H_ 95 #endif // V8_COMPILER_OPERATION_TYPER_H_
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/operation-typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698