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

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

Issue 986073003: [TurboFan] Calculate precise ranges for bitwise-or with positive input ranges. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Split the bitwise-or type derivation into a separate function. Created 5 years, 7 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/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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_TYPER_H_ 5 #ifndef V8_COMPILER_TYPER_H_
6 #define V8_COMPILER_TYPER_H_ 6 #define V8_COMPILER_TYPER_H_
7 7
8 #include "src/compiler/graph.h" 8 #include "src/compiler/graph.h"
9 #include "src/types.h" 9 #include "src/types.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 // Forward declarations. 15 // Forward declarations.
16 class LazyTypeCache; 16 class LazyTypeCache;
17 17
18 18
19 struct IntType {
20 int32_t min;
21 int32_t max;
22 IntType(int32_t min, int32_t max) : min(min), max(max) {}
23 };
24
25 IntType JSBitwiseOrIntType(IntType lhs, IntType rhs);
26
27
19 class Typer { 28 class Typer {
20 public: 29 public:
21 Typer(Isolate* isolate, Graph* graph, MaybeHandle<Context> context); 30 Typer(Isolate* isolate, Graph* graph, MaybeHandle<Context> context);
22 ~Typer(); 31 ~Typer();
23 32
24 void Run(); 33 void Run();
25 34
26 Graph* graph() { return graph_; } 35 Graph* graph() { return graph_; }
27 MaybeHandle<Context> context() { return context_; } 36 MaybeHandle<Context> context() { return context_; }
28 Zone* zone() { return graph_->zone(); } 37 Zone* zone() { return graph_->zone(); }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 LazyTypeCache* cache_; 72 LazyTypeCache* cache_;
64 73
65 DISALLOW_COPY_AND_ASSIGN(Typer); 74 DISALLOW_COPY_AND_ASSIGN(Typer);
66 }; 75 };
67 76
68 } // namespace compiler 77 } // namespace compiler
69 } // namespace internal 78 } // namespace internal
70 } // namespace v8 79 } // namespace v8
71 80
72 #endif // V8_COMPILER_TYPER_H_ 81 #endif // V8_COMPILER_TYPER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698