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

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

Issue 2753543009: [compiler] Add more tests for monotonicity of typing. (Closed)
Patch Set: Created 3 years, 9 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 | test/unittests/compiler/typer-unittest.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
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 // Forward declarations. 14 // Forward declarations.
15 class Isolate; 15 class Isolate;
16 class RangeType; 16 class RangeType;
17 class Zone; 17 class Zone;
18 18
19 namespace compiler { 19 namespace compiler {
20 20
21 // Forward declarations. 21 // Forward declarations.
22 class Operator; 22 class Operator;
23 class Type; 23 class Type;
24 class TypeCache; 24 class TypeCache;
25 25
26 class OperationTyper { 26 class V8_EXPORT_PRIVATE OperationTyper {
27 public: 27 public:
28 OperationTyper(Isolate* isolate, Zone* zone); 28 OperationTyper(Isolate* isolate, Zone* zone);
29 29
30 // Typing Phi. 30 // Typing Phi.
31 Type* Merge(Type* left, Type* right); 31 Type* Merge(Type* left, Type* right);
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);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 Type* singleton_the_hole_; 85 Type* singleton_the_hole_;
86 Type* signed32ish_; 86 Type* signed32ish_;
87 Type* unsigned32ish_; 87 Type* unsigned32ish_;
88 }; 88 };
89 89
90 } // namespace compiler 90 } // namespace compiler
91 } // namespace internal 91 } // namespace internal
92 } // namespace v8 92 } // namespace v8
93 93
94 #endif // V8_COMPILER_OPERATION_TYPER_H_ 94 #endif // V8_COMPILER_OPERATION_TYPER_H_
OLDNEW
« no previous file with comments | « no previous file | test/unittests/compiler/typer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698